Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: LayoutTests/fast/dom/DOMParser-marquee-crash.html

Issue 919473004: Make DOMParser create documents with a context document set (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: added test Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/DOMParser-marquee-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd"> 2 "http://www.w3.org/TR/html4/loose.dtd">
3 <html> 3 <html>
4 <head> 4 <head>
5 <script> 5 <script>
6 function debug(str) {
7 var c = document.getElementById('console')
8 c.appendChild(document.createTextNode(str + '\n'));
9 }
10
11 function runTests() { 6 function runTests() {
12 if (window.testRunner) testRunner.dumpAsText(); 7 if (window.testRunner) testRunner.dumpAsText();
13 8
14 var parser = new DOMParser(); 9 var parser = new DOMParser();
15 parser.test = "test" 10 parser.parseFromString("<marquee></marquee>", "text/html");
16 } 11 }
17
18 </script> 12 </script>
19 </head> 13 </head>
20 <body onload="runTests();"> 14 <body onload="runTests();">
21 This creates a DOMParser object and tries to assign it to a variable. If the tes t is successful, it should not crash. 15 This creates a DOMParser object and tries to parse a document containing a marqu ee element (implemented in Private JS).
16 If the test is successful, it should not crash.
22 <pre id="console"> 17 <pre id="console">
23 </pre> 18 </pre>
24 </body> 19 </body>
25 </html> 20 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/DOMParser-marquee-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698