mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:47:35 +00:00
LibWeb: Implement the document title attribute closer to the spec
The main differences between our current implementation and the spec are: * The title element need not be a child of the head element. * If the title element does not exist, the default value should be the empty string - we currently return a null string. * We've since added AOs for several of the spec steps here, so we do not need to implement those steps inline.
This commit is contained in:
parent
43b3673198
commit
f2a28e83de
4 changed files with 124 additions and 32 deletions
14
Tests/LibWeb/Text/expected/title.txt
Normal file
14
Tests/LibWeb/Text/expected/title.txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
1: ""
|
||||
2a: 0
|
||||
2b: 1
|
||||
2c: "This is a title!"
|
||||
2d: "This is a title!"
|
||||
3: ""
|
||||
4a: 3
|
||||
4b: ""
|
||||
4c: ""
|
||||
4d: ""
|
||||
4e: 3
|
||||
4f: "This is another title!"
|
||||
4g: ""
|
||||
4h: ""
|
Loading…
Add table
Add a link
Reference in a new issue