createHTMLDocument-title.html revision eff69b907ef2cd3a9af0351287a929c66f58e3f6
1<p>Test for a <href="https://bugs.webkit.org/show_bug.cgi?id=30982">bug 30982</a>: createHTMLDocument doesn't escape ampersand and less-than in title.</p> 2<p>Should say PASS:</p> 3<script> 4if (window.layoutTestController) 5 layoutTestController.dumpAsText(); 6 7var result = document.implementation.createHTMLDocument('foo</title>').title; 8document.write((result == 'foo</title>') ? "PASS" : ("FAIL. Title is:<xmp>" + result + "</xmp>")); 9</script> 10