mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00: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]".
11 lines
190 B
HTML
11 lines
190 B
HTML
<head>
|
|
<title>foo</title>
|
|
<meta name="title" content="bar" />
|
|
</head>
|
|
<script src="include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
println(document.title);
|
|
});
|
|
</script>
|