mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Implement Document's supported property names closer to the spec
Our implementation was errantly matching HTML tags other than the list specified by the spec. For example, a <meta name=title> tag would be a match for document.title. For example, bandcamp will dynamically update its title when audio is played as follows: document.title = "▶︎ " + document.title; And bandcamp also has a <meta name=title> tag. The result was that the title would become "▶︎ [object HTMLMetaElement]".
This commit is contained in:
parent
8ff3cd6d76
commit
43e55668eb
Notes:
sideshowbarker
2024-07-17 02:06:40 +09:00
Author: https://github.com/trflynn89
Commit: 43e55668eb
Pull-request: https://github.com/SerenityOS/serenity/pull/23758
Reviewed-by: https://github.com/kalenikaliaksandr ✅
5 changed files with 76 additions and 59 deletions
|
@ -1,4 +1,4 @@
|
|||
Submit <FORM >
|
||||
Submit <FORM >
|
||||
document.bob === document.forms[0]: true
|
||||
<BUTTON id="fred" >
|
||||
img element with name 'foo' and id 'bar':
|
||||
|
@ -14,3 +14,4 @@ obj element with name 'greg' and id 'banana':
|
|||
<OBJECT id="banana" >
|
||||
goodbye greg/banana
|
||||
no more greg or banana: true, true
|
||||
meta tag does not match: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue