mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02:00
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]".
18 lines
457 B
Plaintext
18 lines
457 B
Plaintext
Submit <FORM >
|
|
document.bob === document.forms[0]: true
|
|
<BUTTON id="fred" >
|
|
img element with name 'foo' and id 'bar':
|
|
<IMG id="bar" >
|
|
img element with id 'baz', but no name:
|
|
baz === undefined: true
|
|
Multiple elements with name 'foo':
|
|
foos.length = 2
|
|
<IMG id="bar" >
|
|
<FORM >
|
|
obj element with name 'greg' and id 'banana':
|
|
<OBJECT id="banana" >
|
|
<OBJECT id="banana" >
|
|
goodbye greg/banana
|
|
no more greg or banana: true, true
|
|
meta tag does not match: true
|