| <!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">
|
| <title>XHTML innerHTML null byte test</title>
|
| <p id="p0">FAIL: No exception raised.</p>
|
| document.getElementById("p0").innerHTML = "\x00FAIL: Nulls mishandled.";
|
| 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);
|