diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
commit | 2aa4a82499d4becd2284cdb482213d541b8804dd (patch) | |
tree | b80bf8bf13c3766139fbacc530efd0dd9d54394c /parser/htmlparser/tests/reftest | |
parent | Initial commit. (diff) | |
download | firefox-upstream.tar.xz firefox-upstream.zip |
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
62 files changed, 1803 insertions, 0 deletions
diff --git a/parser/htmlparser/tests/reftest/bug1636607-1-ref.html b/parser/htmlparser/tests/reftest/bug1636607-1-ref.html new file mode 100644 index 0000000000..b5e24f87a7 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug1636607-1-ref.html @@ -0,0 +1,18 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<style> +div { border: medium solid blue } +span { background: #9090ff; } +span.test::before { + white-space: pre; + content: "\A"; +} +</style> +<p>This document is in <span id="mode"></span> mode.</p> +<p>This is a test for the line height quirk which is present in limited-quirks mode <b>and</b> quirks mode:</p> +<div><span style="font-size: 50%">hello<br>hello</span></div> +<p>This is a test for the hashless hex color quirk which is present in quirks mode <b>only</b>:</p> +<div style="background-color: 9090ff">test</div> + +<script> +document.getElementById("mode").innerText = document.compatMode; +</script> diff --git a/parser/htmlparser/tests/reftest/bug1636607-1.html b/parser/htmlparser/tests/reftest/bug1636607-1.html new file mode 100644 index 0000000000..af2c2cb3e8 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug1636607-1.html @@ -0,0 +1,18 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//FR" "http://www.w3.org/TR/html4/loose.dtd"> +<style> +div { border: medium solid blue } +span { background: #9090ff; } +span.test::before { + white-space: pre; + content: "\A"; +} +</style> +<p>This document is in <span id="mode"></span> mode.</p> +<p>This is a test for the line height quirk which is present in limited-quirks mode <b>and</b> quirks mode:</p> +<div><span style="font-size: 50%">hello<br>hello</span></div> +<p>This is a test for the hashless hex color quirk which is present in quirks mode <b>only</b>:</p> +<div style="background-color: 9090ff">test</div> + +<script> +document.getElementById("mode").innerText = document.compatMode; +</script> diff --git a/parser/htmlparser/tests/reftest/bug1636607-2-ref.html b/parser/htmlparser/tests/reftest/bug1636607-2-ref.html new file mode 100644 index 0000000000..e82fd73824 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug1636607-2-ref.html @@ -0,0 +1,17 @@ +<style> +div { border: medium solid blue } +span { background: #9090ff; } +span.test::before { + white-space: pre; + content: "\A"; +} +</style> +<p>This document is in <span id="mode"></span> mode.</p> +<p>This is a test for the line height quirk which is present in limited-quirks mode <b>and</b> quirks mode:</p> +<div><span style="font-size: 50%">hello<br>hello</span></div> +<p>This is a test for the hashless hex color quirk which is present in quirks mode <b>only</b>:</p> +<div style="background-color: 9090ff">test</div> + +<script> +document.getElementById("mode").innerText = document.compatMode; +</script> diff --git a/parser/htmlparser/tests/reftest/bug1636607-2.html b/parser/htmlparser/tests/reftest/bug1636607-2.html new file mode 100644 index 0000000000..f551df5ac1 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug1636607-2.html @@ -0,0 +1,18 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//FR"> +<style> +div { border: medium solid blue } +span { background: #9090ff; } +span.test::before { + white-space: pre; + content: "\A"; +} +</style> +<p>This document is in <span id="mode"></span> mode.</p> +<p>This is a test for the line height quirk which is present in limited-quirks mode <b>and</b> quirks mode:</p> +<div><span style="font-size: 50%">hello<br>hello</span></div> +<p>This is a test for the hashless hex color quirk which is present in quirks mode <b>only</b>:</p> +<div style="background-color: 9090ff">test</div> + +<script> +document.getElementById("mode").innerText = document.compatMode; +</script> diff --git a/parser/htmlparser/tests/reftest/bug482921-1-ref.html b/parser/htmlparser/tests/reftest/bug482921-1-ref.html new file mode 100644 index 0000000000..71c0f91c08 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug482921-1-ref.html @@ -0,0 +1,27 @@ +<!DOCTYPE html><html><head><title></title><link rel="stylesheet" type="text/css" href="resource://content-accessible/viewsource.css"></head><body id="viewsource" class="wrap highlight"><pre id><span class="doctype"><!DOCTYPE html></span> +<span id></span><span><<span class="start-tag">html</span>></span> +<span id></span><span><<span class="start-tag">head</span>></span> +<span id></span><span><<span class="start-tag">title</span>></span><span>Title</span><span></<span class="end-tag">title</span>></span> +<span id></span><span><<span class="start-tag">script</span>></span> +<span id></span>var lt = "<"; +<span id></span><!-- +<span id></span>var s = "<script>foo</script>"; +<span id></span>--> +<span id></span><span></<span class="end-tag">script</span>></span><span></span><span class="comment"><!-- Comment. --></span> +<span id></span><span><<span class="start-tag">style</span>></span> +<span id></span>/* </foo> */ +<span id></span><span></<span class="end-tag">style</span>></span> +<span id></span><span></<span class="end-tag">head</span>></span> +<span id></span><span><<span class="start-tag">body</span>></span> +<span id></span><span><<span class="start-tag">p</span>></span><span>Entity: <span class="entity"><span>&</span>amp; </span></span><span></<span class="end-tag">p</span>></span> +<span id></span><span><<span class="start-tag">iframe</span>></span><img><span></<span class="end-tag">iframe</span>></span> +<span id></span><span><<span class="start-tag">noscript</span>></span><p>Not para</p><span></<span class="end-tag">noscript</span>></span> +<span id></span><span><<span class="start-tag">svg</span>></span> +<span id></span><span><<span class="start-tag">title</span>></span><span></span><span class="cdata"><![CDATA[bar]]></span><span></span><span></<span class="end-tag">title</span>></span> +<span id></span><span><<span class="start-tag">script</span>></span><span></span><span class="comment"><!-- this is a comment --></span><span></span><span></<span class="end-tag">script</span>></span> +<span id></span><span></<span class="end-tag">svg</span>></span> +<span id></span><span></<span class="end-tag">body</span>></span> +<span id></span><span></<span class="end-tag">html</span>></span> +<span id></span> +</pre> +<!-- View source CSS matches the <pre id> and <span id> elements and produces line numbers. --> diff --git a/parser/htmlparser/tests/reftest/bug482921-1.html b/parser/htmlparser/tests/reftest/bug482921-1.html new file mode 100644 index 0000000000..ca603844f2 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug482921-1.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html> +<head> +<title>Title</title> +<script> +var lt = "<"; +<!-- +var s = "<script>foo</script>"; +--> +</script><!-- Comment. --> +<style> +/* </foo> */ +</style> +</head> +<body> +<p>Entity: & </p> +<iframe><img></iframe> +<noscript><p>Not para</p></noscript> +<svg> +<title><![CDATA[bar]]></title> +<script><!-- this is a comment --></script> +</svg> +</body> +</html> diff --git a/parser/htmlparser/tests/reftest/bug482921-2-ref.html b/parser/htmlparser/tests/reftest/bug482921-2-ref.html new file mode 100644 index 0000000000..d764c70bca --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug482921-2-ref.html @@ -0,0 +1,28 @@ +<!DOCTYPE html><html><head><title></title><link rel="stylesheet" type="text/css" href="resource://content-accessible/viewsource.css"></head><body id="viewsource" class="wrap highlight"><pre id><span class="pi"><?xml version="1.0" encoding="utf-8"?></span> +<span id></span><span class="pi"><?foo bar?></span> +<span id></span><span><<span class="start-tag">html</span>></span> +<span id></span><span><<span class="start-tag">head</span>></span> +<span id></span><span><<span class="start-tag">title</span>></span><span>Title</span><span></<span class="end-tag">title</span>></span> +<span id></span><span><<span class="start-tag">script</span>></span> +<span id></span>var s = "<span><<span class="start-tag">script</span>></span><span>foo</span><span></<span class="end-tag">script</span>></span>"; +<span id></span><span class="comment"><!-- +<span id></span>var s = "<script>foo</script>"; +<span id></span>--></span> +<span id></span><span></<span class="end-tag">script</span>></span><span></span> +<span id></span><span><<span class="start-tag">style</span>></span> +<span id></span>/* <span><<span class="start-tag">foo</span><span>/</span>></span> */ +<span id></span><span></<span class="end-tag">style</span>></span> +<span id></span><span></<span class="end-tag">head</span>></span> +<span id></span><span><<span class="start-tag">body</span>></span> +<span id></span><span><<span class="start-tag">p</span>></span><span>Entity: <span class="entity"><span>&</span>amp; </span></span><span></<span class="end-tag">p</span>></span> +<span id></span><span><<span class="start-tag">iframe</span>></span><span></span><span><<span class="start-tag">img</span>></span><span></<span class="end-tag">iframe</span>></span> +<span id></span><span><<span class="start-tag">noscript</span>></span><span><<span class="start-tag">p</span>></span><span>Not para</span><span></<span class="end-tag">p</span>></span><span></<span class="end-tag">noscript</span>></span> +<span id></span><span><<span class="start-tag">svg</span>></span> +<span id></span><span><<span class="start-tag">title</span>></span><span></span><span class="cdata"><![CDATA[bar]]></span><span></span><span></<span class="end-tag">title</span>></span> +<span id></span><span><<span class="start-tag">script</span>></span><span></span><span class="comment"><!-- this is a comment --></span><span></span><span></<span class="end-tag">script</span>></span> +<span id></span><span></<span class="end-tag">svg</span>></span> +<span id></span><span></<span class="end-tag">body</span>></span> +<span id></span><span></<span class="end-tag">html</span>></span> +<span id></span> +</pre> +<!-- View source CSS matches the <pre id> and <span id> elements and produces line numbers. --> diff --git a/parser/htmlparser/tests/reftest/bug482921-2.xhtml b/parser/htmlparser/tests/reftest/bug482921-2.xhtml new file mode 100644 index 0000000000..4d3f0b6a73 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug482921-2.xhtml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<?foo bar?> +<html> +<head> +<title>Title</title> +<script> +var s = "<script>foo</script>"; +<!-- +var s = "<script>foo</script>"; +--> +</script> +<style> +/* <foo/> */ +</style> +</head> +<body> +<p>Entity: & </p> +<iframe><img></iframe> +<noscript><p>Not para</p></noscript> +<svg> +<title><![CDATA[bar]]></title> +<script><!-- this is a comment --></script> +</svg> +</body> +</html> diff --git a/parser/htmlparser/tests/reftest/bug535530-1-ref.html b/parser/htmlparser/tests/reftest/bug535530-1-ref.html new file mode 100644 index 0000000000..22d0dc0b0b --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug535530-1-ref.html @@ -0,0 +1,2 @@ +<!DOCTYPE html><meta charset=utf-8> +XX&XX XX&nXX XX&noXX XX¬XX XX¬iXX XX¬inXX XX&;XX XX&n;XX XX&no;XX XX¬XX XX¬i;XX XX∉XX diff --git a/parser/htmlparser/tests/reftest/bug535530-1.html b/parser/htmlparser/tests/reftest/bug535530-1.html new file mode 100644 index 0000000000..63f2d8782e --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug535530-1.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +XX&XX +XX&nXX +XX&noXX +XX¬XX +XX¬iXX +XX¬inXX +XX&;XX +XX&n;XX +XX&no;XX +XX¬XX +XX¬i;XX +XX∉XX + diff --git a/parser/htmlparser/tests/reftest/bug535530-2-ref.html b/parser/htmlparser/tests/reftest/bug535530-2-ref.html new file mode 100644 index 0000000000..54c1291218 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug535530-2-ref.html @@ -0,0 +1,17 @@ +<!DOCTYPE html><html><head><title></title><link rel="stylesheet" type="text/css" href="resource://content-accessible/viewsource.css"></head><body id="viewsource" class="wrap highlight"><pre id><span class="doctype"><!DOCTYPE html></span> +<span id></span>XX<span class="error">&</span>XX +<span id></span>XX<span class="error">&</span>nXX +<span id></span>XX<span class="error">&</span>noXX +<span id></span>XX<span class="error entity">&not</span>XX +<span id></span>XX<span class="error entity">&noti</span>XX +<span id></span>XX<span class="error entity">&notin</span>XX +<span id></span>XX<span class="error">&</span>;XX +<span id></span>XX<span class="error">&</span>n;XX +<span id></span>XX<span class="error">&</span>no;XX +<span id></span>XX<span class="entity">&not;</span>XX +<span id></span>XX<span class="error entity">&noti</span>;XX +<span id></span>XX<span class="entity">&notin;</span>XX +<span id></span> +<span id></span> +</pre> +<!-- View source CSS matches the <pre id> and <span id> elements and produces line numbers. --> diff --git a/parser/htmlparser/tests/reftest/bug535530-2.html b/parser/htmlparser/tests/reftest/bug535530-2.html new file mode 100644 index 0000000000..63f2d8782e --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug535530-2.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +XX&XX +XX&nXX +XX&noXX +XX¬XX +XX¬iXX +XX¬inXX +XX&;XX +XX&n;XX +XX&no;XX +XX¬XX +XX¬i;XX +XX∉XX + diff --git a/parser/htmlparser/tests/reftest/bug566280-1-ref.html b/parser/htmlparser/tests/reftest/bug566280-1-ref.html new file mode 100644 index 0000000000..6585cac38f --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug566280-1-ref.html @@ -0,0 +1,2 @@ +<body>hello world + diff --git a/parser/htmlparser/tests/reftest/bug566280-1.html b/parser/htmlparser/tests/reftest/bug566280-1.html Binary files differnew file mode 100644 index 0000000000..3aa60caf34 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug566280-1.html diff --git a/parser/htmlparser/tests/reftest/bug569229-1-ref.xml b/parser/htmlparser/tests/reftest/bug569229-1-ref.xml new file mode 100644 index 0000000000..652f1d7da8 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug569229-1-ref.xml @@ -0,0 +1,2 @@ +<?xml version="1.0" standalone="yes" ?> +<html xmlns="http://www.w3.org/1999/xhtml"><p>abcd</p></html> diff --git a/parser/htmlparser/tests/reftest/bug569229-1.xml b/parser/htmlparser/tests/reftest/bug569229-1.xml new file mode 100644 index 0000000000..2e1ff75603 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug569229-1.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" standalone="yes" ?> +<!DOCTYPE html [ + <!ENTITY inner "<script src='script.js'></script><p>abcd</p>"> + <!ENTITY outer "&inner;"> +]> +<html xmlns="http://www.w3.org/1999/xhtml">&outer;</html> diff --git a/parser/htmlparser/tests/reftest/bug577418-1-ref.html b/parser/htmlparser/tests/reftest/bug577418-1-ref.html new file mode 100644 index 0000000000..ff773d5364 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug577418-1-ref.html @@ -0,0 +1,6 @@ +<!DOCTYPE html> +<style> +html { + background-color: lime; +} +</style> diff --git a/parser/htmlparser/tests/reftest/bug577418-1.html b/parser/htmlparser/tests/reftest/bug577418-1.html new file mode 100644 index 0000000000..cfd53be0a8 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug577418-1.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html style="width:100%;height:100%;margin:0;border:0;overflow:hidden"> +<body style="width:100%;height:100%;margin:0;border:0;overflow:hidden"> +<svg style="width:100%;height:100%"> + <rect height="100%" width="100%" fill="red"/> + <foreignObject> + <html> + <body> + </body> + </html> + </foreignObject> + <rect height="100%" width="100%" fill="lime"/> +</svg> +</body> +</html> diff --git a/parser/htmlparser/tests/reftest/bug582788-1-ref.html b/parser/htmlparser/tests/reftest/bug582788-1-ref.html new file mode 100644 index 0000000000..c1f684807a --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug582788-1-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=utf-8"> +<title>Not ISO-10646</title> +</head> +<body> +<p>Not ISO-10646</p> +</body> +</html> + diff --git a/parser/htmlparser/tests/reftest/bug582788-1.html b/parser/htmlparser/tests/reftest/bug582788-1.html new file mode 100644 index 0000000000..ee31b3de9d --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug582788-1.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="content-type" content="text/html; charset=iso-10646"> +<title>Not ISO-10646</title> +</head> +<body> +<p>Not ISO-10646</p> +</body> +</html> + diff --git a/parser/htmlparser/tests/reftest/bug582940-1-ref.html b/parser/htmlparser/tests/reftest/bug582940-1-ref.html new file mode 100644 index 0000000000..7209c8e69e --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug582940-1-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html class=reftest-wait> +<head> +<meta charset=utf-8> +<title>Fragment nav</title> +<script> +function loaded() { + document.documentElement.removeAttribute("class"); +} +</script> +</head> +<body onload='setTimeout(loaded, 10);'> +<iframe src="frame582940-ref.html#ref"></iframe> +</body> +</html> + diff --git a/parser/htmlparser/tests/reftest/bug582940-1.html b/parser/htmlparser/tests/reftest/bug582940-1.html new file mode 100644 index 0000000000..fd721a8bc3 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug582940-1.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html class=reftest-wait> +<head> +<meta charset=utf-8> +<title>Fragment nav</title> +<script> +function loaded() { + document.documentElement.removeAttribute("class"); +} +</script> +</head> +<body onload='setTimeout(loaded, 10);'> +<iframe src="frame582940.html#ref%20ref"></iframe> +</body> +</html> + diff --git a/parser/htmlparser/tests/reftest/bug592656-1-ref.html b/parser/htmlparser/tests/reftest/bug592656-1-ref.html new file mode 100644 index 0000000000..824d815633 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug592656-1-ref.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> +<head> +<title>document.write() from script-inserted inline scripts and script@onload</title> +</head> +<body> +1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 +</body> +</html> diff --git a/parser/htmlparser/tests/reftest/bug592656-1.html b/parser/htmlparser/tests/reftest/bug592656-1.html new file mode 100644 index 0000000000..769f62f648 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug592656-1.html @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<html> +<head> +<title>document.write() from script-inserted inline scripts and script@onload</title> +</head> +<body> +1 +<script> +function write(num) { + document.write(num + " "); +} +function scriptload() { + document.write("\u003Cscript src='data:text/javascript,write(9)'>\u003C/script> 10 \u003Cscript>write(11)\u003C/script>"); + write(12); +} +function scripterror() { + document.write("\u003Cscript src='data:text/javascript,write(16)'>\u003C/script> 17 \u003Cscript>write(18)\u003C/script>"); + write(19); +} +write(2); +document.write("\u003Cscript src='data:text/javascript,write(3)'>\u003C/script> 4 \u003Cscript>write(5)\u003C/script>"); +var s = document.createElement("script"); +s.textContent = "write(6)"; +document.body.appendChild(s); +write(7); +document.write("\u003Cscript src='data:text/javascript,write(8)' onload='scriptload()'>\u003C/script> 13 \u003Cscript>write(14)\u003C/script>"); +write(15); +document.write(`\u003Cscript src='nosuchscriptoutthere.js' onload='write("fail")' onerror='scripterror()'>\u003C/script> 20 \u003Cscript>write(21)\u003C/script>`); +write(22); +</script> +</body> +</html> diff --git a/parser/htmlparser/tests/reftest/bug599320-1-ref.html b/parser/htmlparser/tests/reftest/bug599320-1-ref.html new file mode 100644 index 0000000000..bb48fe5d25 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug599320-1-ref.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html lang="en"> +<head> +<meta charset=utf-8> +<meta content="width=device-width, initial-scale=1" name="viewport"> +<title>UTF-16 doc</title> +</head> +<body> +<h1>UTF-16 doc</h1> + +<p>Euro sign: €</p> +<p>iframe:</p> +<iframe src=frame599320-1-ref.html width=300 height=400></iframe> + +</body> +</html> + diff --git a/parser/htmlparser/tests/reftest/bug599320-1.html b/parser/htmlparser/tests/reftest/bug599320-1.html Binary files differnew file mode 100644 index 0000000000..590e9126c3 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug599320-1.html diff --git a/parser/htmlparser/tests/reftest/bug608373-1-ref.html b/parser/htmlparser/tests/reftest/bug608373-1-ref.html new file mode 100644 index 0000000000..69fec47d0f --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug608373-1-ref.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> +<head> +</head> +<body> + <iframe src="data:text/html,TEXT"></iframe> +</body> +</html> + diff --git a/parser/htmlparser/tests/reftest/bug608373-1.html b/parser/htmlparser/tests/reftest/bug608373-1.html new file mode 100644 index 0000000000..7bc47552f7 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug608373-1.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html class=reftest-wait> +<head> +<script> +function write() { + document.getElementsByTagName("iframe")[0].contentDocument.write('\u003Cscript src="data:text/javascript,var i = 0;">\u003C\/script>TEXT\u003Cscript>parent.document.documentElement.removeAttribute("class");\u003c/script>'); +} +</script> +</head> +<body onload="write();"> + <iframe></iframe> +</body> +</html> + diff --git a/parser/htmlparser/tests/reftest/bug659763-1-ref.html b/parser/htmlparser/tests/reftest/bug659763-1-ref.html new file mode 100644 index 0000000000..99429bf4e7 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug659763-1-ref.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<iframe src="data:text/html,<i>foo</i>"></iframe> diff --git a/parser/htmlparser/tests/reftest/bug659763-1.html b/parser/htmlparser/tests/reftest/bug659763-1.html new file mode 100644 index 0000000000..46dbde092e --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug659763-1.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<iframe></iframe> +<script> +var iframe = document.getElementsByTagName("iframe")[0]; +var doc = iframe.contentDocument; +doc.open("text/plain"); +doc.write("<i>foo</i>"); +doc.close(); +</script> diff --git a/parser/htmlparser/tests/reftest/bug659763-2-ref.html b/parser/htmlparser/tests/reftest/bug659763-2-ref.html new file mode 100644 index 0000000000..99429bf4e7 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug659763-2-ref.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<iframe src="data:text/html,<i>foo</i>"></iframe> diff --git a/parser/htmlparser/tests/reftest/bug659763-2.html b/parser/htmlparser/tests/reftest/bug659763-2.html new file mode 100644 index 0000000000..c6152193aa --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug659763-2.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<iframe></iframe> +<script> +var iframe = document.getElementsByTagName("iframe")[0]; +var doc = iframe.contentDocument; +doc.open("TEXT/PLAIN"); +doc.write("<i>foo</i>"); +doc.close(); +</script> diff --git a/parser/htmlparser/tests/reftest/bug659763-3-ref.html b/parser/htmlparser/tests/reftest/bug659763-3-ref.html new file mode 100644 index 0000000000..99429bf4e7 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug659763-3-ref.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<iframe src="data:text/html,<i>foo</i>"></iframe> diff --git a/parser/htmlparser/tests/reftest/bug659763-3.html b/parser/htmlparser/tests/reftest/bug659763-3.html new file mode 100644 index 0000000000..bd2ed094bc --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug659763-3.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<iframe></iframe> +<script> +var iframe = document.getElementsByTagName("iframe")[0]; +var doc = iframe.contentDocument; +doc.open("foo/bar"); +doc.write("<i>foo</i>"); +doc.close(); +</script> diff --git a/parser/htmlparser/tests/reftest/bug659763-4-ref.html b/parser/htmlparser/tests/reftest/bug659763-4-ref.html new file mode 100644 index 0000000000..99429bf4e7 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug659763-4-ref.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<iframe src="data:text/html,<i>foo</i>"></iframe> diff --git a/parser/htmlparser/tests/reftest/bug659763-4.html b/parser/htmlparser/tests/reftest/bug659763-4.html new file mode 100644 index 0000000000..5317186351 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug659763-4.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<iframe></iframe> +<script> +var iframe = document.getElementsByTagName("iframe")[0]; +var doc = iframe.contentDocument; +doc.open("text/html"); +doc.write("<i>foo</i>"); +doc.close(); +</script> diff --git a/parser/htmlparser/tests/reftest/bug659763-5-ref.html b/parser/htmlparser/tests/reftest/bug659763-5-ref.html new file mode 100644 index 0000000000..99429bf4e7 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug659763-5-ref.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<iframe src="data:text/html,<i>foo</i>"></iframe> diff --git a/parser/htmlparser/tests/reftest/bug659763-5.html b/parser/htmlparser/tests/reftest/bug659763-5.html new file mode 100644 index 0000000000..23e9fd8e6f --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug659763-5.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<iframe></iframe> +<script> +var iframe = document.getElementsByTagName("iframe")[0]; +var doc = iframe.contentDocument; +doc.open(); +doc.write("<i>foo</i>"); +doc.close(); +</script> diff --git a/parser/htmlparser/tests/reftest/bug659763-6-ref.html b/parser/htmlparser/tests/reftest/bug659763-6-ref.html new file mode 100644 index 0000000000..99429bf4e7 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug659763-6-ref.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<iframe src="data:text/html,<i>foo</i>"></iframe> diff --git a/parser/htmlparser/tests/reftest/bug659763-6.html b/parser/htmlparser/tests/reftest/bug659763-6.html new file mode 100644 index 0000000000..f0a5ea8d3f --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug659763-6.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<iframe></iframe> +<script> +var iframe = document.getElementsByTagName("iframe")[0]; +var doc = iframe.contentDocument; +doc.open("TEXT/HTML"); +doc.write("<i>foo</i>"); +doc.close(); +</script> diff --git a/parser/htmlparser/tests/reftest/bug673094-1-ref.html b/parser/htmlparser/tests/reftest/bug673094-1-ref.html new file mode 100644 index 0000000000..f8f8ce5939 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug673094-1-ref.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<title>bidi in attribute</title> +</head> +<body> +<p>Persian <a href="http://en.wiktionary.org/wiki/%D9%81%D8%A7%D8%B1%D8%B3%DB%8C" title="wikt:فارسی" >فارسی</a></p> +</p> +</body> diff --git a/parser/htmlparser/tests/reftest/bug673094-1.html b/parser/htmlparser/tests/reftest/bug673094-1.html new file mode 100644 index 0000000000..2fbdbfb10d --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug673094-1.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<title>bidi in attribute</title> +</head> +<body> +<p>Persian <a href="http://en.wiktionary.org/wiki/%D9%81%D8%A7%D8%B1%D8%B3%DB%8C" title="wikt:فارسی" >فارسی</a></p> +</p> +</body> diff --git a/parser/htmlparser/tests/reftest/bug696651-1-ref.html b/parser/htmlparser/tests/reftest/bug696651-1-ref.html new file mode 100644 index 0000000000..02f59b7ae6 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug696651-1-ref.html @@ -0,0 +1 @@ +<!DOCTYPE html>CcBbAa diff --git a/parser/htmlparser/tests/reftest/bug696651-1.html b/parser/htmlparser/tests/reftest/bug696651-1.html new file mode 100644 index 0000000000..50a9135aa3 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug696651-1.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<body><script>document.write("\u003cscript>document.write(\"\\u003cscript src='bug696651-external.js'>\\u003c/script>B\"); document.write(\"b\");\u003c/script>A"); document.write("a");</script> diff --git a/parser/htmlparser/tests/reftest/bug696651-2-ref.html b/parser/htmlparser/tests/reftest/bug696651-2-ref.html new file mode 100644 index 0000000000..7999785c09 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug696651-2-ref.html @@ -0,0 +1 @@ +<!DOCTYPE html><iframe src="data:text/html,<!DOCTYPE html>CcBbAa"></iframe> diff --git a/parser/htmlparser/tests/reftest/bug696651-2.html b/parser/htmlparser/tests/reftest/bug696651-2.html new file mode 100644 index 0000000000..2d3515b6af --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug696651-2.html @@ -0,0 +1,6 @@ +<!DOCTYPE html> +<body> +<iframe></iframe> +<script> +var doc = document.getElementsByTagName("iframe")[0].contentDocument; +doc.open(); doc.write("\u003cscript>document.write(\"\\u003cscript src='bug696651-external.js'>\\u003c/script>B\"); document.write(\"b\");\u003c/script>A"); doc.write("a"); doc.close();</script> diff --git a/parser/htmlparser/tests/reftest/bug696651-external.js b/parser/htmlparser/tests/reftest/bug696651-external.js new file mode 100644 index 0000000000..c1c2a8f788 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug696651-external.js @@ -0,0 +1 @@ +document.write("C"); document.write("c"); diff --git a/parser/htmlparser/tests/reftest/bug700260-1-ref.html b/parser/htmlparser/tests/reftest/bug700260-1-ref.html new file mode 100644 index 0000000000..0ba4495a09 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug700260-1-ref.html @@ -0,0 +1,3 @@ + 1 + 2 + 3 diff --git a/parser/htmlparser/tests/reftest/bug700260-1.html b/parser/htmlparser/tests/reftest/bug700260-1.html new file mode 100644 index 0000000000..37d3008347 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug700260-1.html @@ -0,0 +1,3 @@ + 1 + 2 + 3 diff --git a/parser/htmlparser/tests/reftest/bug704667-1-ref.html b/parser/htmlparser/tests/reftest/bug704667-1-ref.html new file mode 100644 index 0000000000..a7a939f3a4 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug704667-1-ref.html @@ -0,0 +1,4 @@ +<!DOCTYPE html><html><head><title></title><link rel="stylesheet" type="text/css" href="resource://content-accessible/viewsource.css"></head><body id="viewsource" class="wrap highlight"><pre id><span class="error comment"><!--></span> <span class="error comment"><!X></span> +<span id></span> +</pre> +<!-- View source CSS matches the <pre id> and <span id> elements and produces line numbers. --> diff --git a/parser/htmlparser/tests/reftest/bug704667-1.html b/parser/htmlparser/tests/reftest/bug704667-1.html new file mode 100644 index 0000000000..553c62b309 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug704667-1.html @@ -0,0 +1 @@ +<!--> <!X> diff --git a/parser/htmlparser/tests/reftest/bug731234-1-ref.html b/parser/htmlparser/tests/reftest/bug731234-1-ref.html new file mode 100644 index 0000000000..897b73ea1b --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug731234-1-ref.html @@ -0,0 +1,30 @@ +<!DOCTYPE html><html><head><title></title><link rel="stylesheet" type="text/css" href="resource://content-accessible/viewsource.css"></head><body id="viewsource" class="wrap highlight"><pre id><span class="doctype"><!DOCTYPE html></span><span> +<span id></span></span><span><<span class="start-tag">body</span>></span><span> +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span></<span class="end-tag">script</span>></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span></<span class="end-tag">script</span> ></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span></<span class="end-tag">script</span> +<span id></span>></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span title="End tag had attributes." class="error"></<span class="end-tag">script</span> <span class="attribute-name">foo</span>></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span title="End tag had attributes." class="error"></<span class="end-tag">script</span> <span class="attribute-name">foo</span>=<a class="attribute-value">bar</a>></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span title="End tag had attributes." class="error"></<span class="end-tag">script</span> <span class="attribute-name">foo</span>="<a class="attribute-value">bar</a>"></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span><!</span><span>--</span><span></<span class="end-tag">script</span>></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span><!</span><span>-- </span><span></<span class="end-tag">script</span>></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span><!</span><span>-- </span><span></<span class="end-tag">script</span> ></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span><!</span><span>-- </span><span></<span class="end-tag">script</span> +<span id></span>></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span><!</span><span>-- </span><span title="End tag had attributes." class="error"></<span class="end-tag">script</span> <span class="attribute-name">foo</span>></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span><!</span><span>-- </span><span title="End tag had attributes." class="error"></<span class="end-tag">script</span> <span class="attribute-name">foo</span>=<a class="attribute-value">bar</a>></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span><!</span><span>-- </span><span title="End tag had attributes." class="error"></<span class="end-tag">script</span> <span class="attribute-name">foo</span>="<a class="attribute-value">bar</a>"></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span><!</span><span>-- -</span><span></<span class="end-tag">script</span>></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span><!</span><span>-- --</span><span></<span class="end-tag">script</span>></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span><!</span><span>-- --></span><span></<span class="end-tag">script</span>></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span><!</span><span>--</span><span><s</span><span>cript> </script> </span><span></<span class="end-tag">script</span>></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span><!</span><span>--</span><span><s</span><span>cript> </script> --></span><span></<span class="end-tag">script</span>></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span><!</span><span>--</span><span><s</span><span>cript </script> --></span><span></<span class="end-tag">script</span>></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span><!</span><span>--</span><span><s</span><span>cript> </script > --></span><span></<span class="end-tag">script</span>></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span><!</span><span>--</span><span><s</span><span>cript> </script foo> --></span><span></<span class="end-tag">script</span>></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span><!</span><span>--</span><span><s</span><span>cript> </script foo=bar> --></span><span></<span class="end-tag">script</span>></span><span>X +<span id></span></span><span><<span class="start-tag">script</span>></span><span></span><span><!</span><span>--</span><span><s</span><span>cript> </script foo="bar"> --></span><span></<span class="end-tag">script</span>></span><span>X +<span id></span></span> +</pre> +<!-- View source CSS matches the <pre id> and <span id> elements and produces line numbers. --> diff --git a/parser/htmlparser/tests/reftest/bug731234-1.html b/parser/htmlparser/tests/reftest/bug731234-1.html new file mode 100644 index 0000000000..313e44cca7 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug731234-1.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<body> +<script></script>X +<script></script >X +<script></script +>X +<script></script foo>X +<script></script foo=bar>X +<script></script foo="bar">X +<script><!--</script>X +<script><!-- </script>X +<script><!-- </script >X +<script><!-- </script +>X +<script><!-- </script foo>X +<script><!-- </script foo=bar>X +<script><!-- </script foo="bar">X +<script><!-- -</script>X +<script><!-- --</script>X +<script><!-- --></script>X +<script><!--<script> </script> </script>X +<script><!--<script> </script> --></script>X +<script><!--<script </script> --></script>X +<script><!--<script> </script > --></script>X +<script><!--<script> </script foo> --></script>X +<script><!--<script> </script foo=bar> --></script>X +<script><!--<script> </script foo="bar"> --></script>X diff --git a/parser/htmlparser/tests/reftest/bug820508-1-ref.html b/parser/htmlparser/tests/reftest/bug820508-1-ref.html new file mode 100644 index 0000000000..e624b16885 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug820508-1-ref.html @@ -0,0 +1,6 @@ +<!DOCTYPE html> +<title>main { display: block; }</title> +<style>div { + border: 2px solid blue; +}</style> +<div>foo</div><div>bar</div> diff --git a/parser/htmlparser/tests/reftest/bug820508-1.html b/parser/htmlparser/tests/reftest/bug820508-1.html new file mode 100644 index 0000000000..60eabee67d --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug820508-1.html @@ -0,0 +1,6 @@ +<!DOCTYPE html> +<title>main { display: block; }</title> +<style>main { + border: 2px solid blue; +}</style> +<main>foo</main><main>bar</main> diff --git a/parser/htmlparser/tests/reftest/bug910588-1-ref.html b/parser/htmlparser/tests/reftest/bug910588-1-ref.html new file mode 100644 index 0000000000..46133dd2c4 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug910588-1-ref.html @@ -0,0 +1,2 @@ +<!DOCTYPE html><html><head><title></title><link rel="stylesheet" type="text/css" href="resource://content-accessible/viewsource.css"></head><body id="viewsource" class="highlight" style="-moz-tab-size: 4"><pre id="line1"><span></span><span class="doctype"><!DOCTYPE html></span><span></span><span><<span class="start-tag">table</span>></span><span></span><span title="Start tag “input” seen in “table”." class="error"><<span class="start-tag">input</span> <span class="attribute-name">type</span>=<a class="attribute-value">hidden</a>></span><span></span><span></<span class="end-tag">table</span>></span><span> +<span id="line2"></span></span></pre></body></html> diff --git a/parser/htmlparser/tests/reftest/bug910588-1.html b/parser/htmlparser/tests/reftest/bug910588-1.html new file mode 100644 index 0000000000..d0f5958582 --- /dev/null +++ b/parser/htmlparser/tests/reftest/bug910588-1.html @@ -0,0 +1 @@ +<!DOCTYPE html><table><input type=hidden></table> diff --git a/parser/htmlparser/tests/reftest/frame582940-ref.html b/parser/htmlparser/tests/reftest/frame582940-ref.html new file mode 100644 index 0000000000..ac665679b5 --- /dev/null +++ b/parser/htmlparser/tests/reftest/frame582940-ref.html @@ -0,0 +1,51 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset=utf-8> +<title>Fragment nav</title> +</head> +<body> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p><a name='ref'>Ref!</a></p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +</body> +</html> + diff --git a/parser/htmlparser/tests/reftest/frame582940.html b/parser/htmlparser/tests/reftest/frame582940.html new file mode 100644 index 0000000000..646b7d5a71 --- /dev/null +++ b/parser/htmlparser/tests/reftest/frame582940.html @@ -0,0 +1,51 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset=utf-8> +<title>Fragment nav</title> +</head> +<body> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p><a name='ref%20ref'>Ref!</a></p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +<p>Filler</p> +</body> +</html> + diff --git a/parser/htmlparser/tests/reftest/frame599320-1-ref.html b/parser/htmlparser/tests/reftest/frame599320-1-ref.html new file mode 100644 index 0000000000..735c368f8b --- /dev/null +++ b/parser/htmlparser/tests/reftest/frame599320-1-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html lang="en"> +<head> +<meta charset=utf-8> +<meta content="width=device-width, initial-scale=1" name="viewport"> +<title>Non-UTF-16 doc</title> +</head> +<body> +<h1>Non-UTF-16 doc</h1> + +<p>Euro sign: €</p> + +</body> +</html> + diff --git a/parser/htmlparser/tests/reftest/frame599320-1.html b/parser/htmlparser/tests/reftest/frame599320-1.html new file mode 100644 index 0000000000..145ee94ba8 --- /dev/null +++ b/parser/htmlparser/tests/reftest/frame599320-1.html @@ -0,0 +1,1092 @@ +<!DOCTYPE html> +<html lang="en"> +<head> +<!-- More than 1 KB of space --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +<meta charset=utf-8> +<meta content="width=device-width, initial-scale=1" name="viewport"> +<title>Non-UTF-16 doc</title> +</head> +<body> +<h1>Non-UTF-16 doc</h1> + +<p>Euro sign: €</p> +<script> +window.onload = function() { + window.requestAnimationFrame(function() { + parent.document.documentElement.removeAttribute("class"); + }); +} +</script> +</body> +</html> + diff --git a/parser/htmlparser/tests/reftest/reftest.list b/parser/htmlparser/tests/reftest/reftest.list new file mode 100644 index 0000000000..837ba05e85 --- /dev/null +++ b/parser/htmlparser/tests/reftest/reftest.list @@ -0,0 +1,28 @@ +random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == bug535530-1.html bug535530-1-ref.html # Bug 1392106 +random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == view-source:bug535530-2.html bug535530-2-ref.html # Bug 1392106 +== bug566280-1.html bug566280-1-ref.html +== bug569229-1.xml bug569229-1-ref.xml +== bug577418-1.html bug577418-1-ref.html +== bug582788-1.html bug582788-1-ref.html +fuzzy-if(skiaContent,0-2,0-5) skip-if(OSX) == bug582940-1.html bug582940-1-ref.html +== bug592656-1.html bug592656-1-ref.html +fuzzy-if(skiaContent,0-1,0-5) == bug599320-1.html bug599320-1-ref.html +fuzzy-if(skiaContent,0-2,0-5) == bug608373-1.html bug608373-1-ref.html +fuzzy-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)&&!layersGPUAccelerated&&!azureSkia,0-73,0-1) == view-source:bug482921-1.html bug482921-1-ref.html +== view-source:bug482921-2.xhtml bug482921-2-ref.html +fuzzy-if(skiaContent,0-2,0-5) random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == bug659763-1.html bug659763-1-ref.html # Bug 1392106 +fuzzy-if(skiaContent,0-1,0-5) random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == bug659763-2.html bug659763-2-ref.html # Bug 1392106 +fuzzy-if(skiaContent,0-1,0-5) random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == bug659763-3.html bug659763-3-ref.html # Bug 1392106 +fuzzy-if(skiaContent,0-2,0-3) random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == bug659763-4.html bug659763-4-ref.html # Bug 1392106 +fuzzy-if(skiaContent,0-1,0-5) random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == bug659763-5.html bug659763-5-ref.html # Bug 1392106 +fuzzy-if(skiaContent,0-1,0-5) random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == bug659763-6.html bug659763-6-ref.html # Bug 1392106 +random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == view-source:bug673094-1.html view-source:bug673094-1-ref.html # Bug 1392106 +== bug696651-1.html bug696651-1-ref.html +== bug696651-2.html bug696651-2-ref.html +== view-source:bug700260-1.html view-source:bug700260-1-ref.html +== view-source:bug704667-1.html bug704667-1-ref.html +== view-source:bug731234-1.html bug731234-1-ref.html +== bug820508-1.html bug820508-1-ref.html +== view-source:bug910588-1.html bug910588-1-ref.html +== bug1636607-1.html bug1636607-1-ref.html +== bug1636607-2.html bug1636607-2-ref.html |