diff options
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/parser/xhtml-innerhtml-null-byte-first.xhtml')
-rw-r--r-- | third_party/WebKit/LayoutTests/fast/parser/xhtml-innerhtml-null-byte-first.xhtml | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/parser/xhtml-innerhtml-null-byte-first.xhtml b/third_party/WebKit/LayoutTests/fast/parser/xhtml-innerhtml-null-byte-first.xhtml index 400a586..e17bc3d 100644 --- a/third_party/WebKit/LayoutTests/fast/parser/xhtml-innerhtml-null-byte-first.xhtml +++ b/third_party/WebKit/LayoutTests/fast/parser/xhtml-innerhtml-null-byte-first.xhtml @@ -1,22 +1,22 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/Strict.dtd">
-<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>XHTML innerHTML null byte test</title>
- <script><![CDATA[
- if (window.testRunner)
- testRunner.dumpAsText();
- ]]></script>
- </head>
- <body>
- <p id="p0">FAIL: No exception raised.</p>
- <script><![CDATA[
- try {
- document.getElementById("p0").innerHTML = "\x00FAIL: Nulls mishandled.";
- } catch(e) {
- document.getElementById("p0").innerHTML = "PASS: An exception was raised, no crashing.";
- if (e.code != DOMException.SYNTAX_ERR)
- console.log("Unexpected error thrown: " + e.name + ": " + e.message);
- }
- ]]></script>
- </body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/Strict.dtd"> +<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>XHTML innerHTML null byte test</title> + <script><![CDATA[ + if (window.testRunner) + testRunner.dumpAsText(); + ]]></script> + </head> + <body> + <p id="p0">FAIL: No exception raised.</p> + <script><![CDATA[ + try { + document.getElementById("p0").innerHTML = "\x00FAIL: Nulls mishandled."; + } catch(e) { + document.getElementById("p0").innerHTML = "PASS: An exception was raised, no crashing."; + if (e.code != DOMException.SYNTAX_ERR) + console.log("Unexpected error thrown: " + e.name + ": " + e.message); + } + ]]></script> + </body> +</html> |