mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:47:35 +00:00
LibWeb: Implement Element.innerText
Reading the property has a few warts (see FIXMEs in the included tests), but with this the timestamps on http://45.33.8.238/ get localized :^) Since the Date() constructor currently ignores all arguments, they don't get localized correctly but are all set to the current time, but hey, it's still progress from a certain point of view.
This commit is contained in:
parent
2f85af2a20
commit
2460980d2c
6 changed files with 86 additions and 1 deletions
15
Base/res/html/misc/innertext_textcontent.html
Normal file
15
Base/res/html/misc/innertext_textcontent.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<html>
|
||||
<head><title>Small test page</title></head>
|
||||
<body bgcolor="#408080" text="#ffffff">
|
||||
<h1 title="This is a heading" >Hello friends!</h1>
|
||||
<p>This is a <b>very small</b> test page :^)</p>
|
||||
<p>Visit the <a title="This is a link" href="http://www.serenityos.org/">SerenityOS home page</a> today!</p>
|
||||
|
||||
<p id="source">
|
||||
<style>#source { color: red; } #text { text-transform: uppercase; }</style>
|
||||
<span id=text>Take a look at<br>how this text<br>is interpreted
|
||||
below.</span>
|
||||
<span style="display:none">HIDDEN TEXT</span>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue