haikuwebkit/LayoutTests/fast/dom/innerHTML-escaping-attribut...

19 lines
468 B
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html>
<head>
<meta charset="utf-8">
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
<script>
function getContent() {
var regx=new RegExp('&nbsp;','gi');
if (document.body.innerHTML.search("&nbsp;&nbsp;'&quot;") < 0)
document.write("FAIL: <xmp>" + document.body.innerHTML + "</xmp>");
else
document.write("PASS<p>");
}
</script>
</head>
<body onload="getContent()"><div id="div" foo="&nbsp; '&quot;"></div></body></html>