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

Side by Side Diff: third_party/WebKit/LayoutTests/html/text_level_semantics/a-ping-no-crash.xhtml

Issue 2883833002: net: Do not sniff XHTML content (Closed)
Patch Set: Update tests Created 3 years, 7 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
OLDNEW
1 <html xmlns="http://www.w3.org/1999/xhtml"> 1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head> 2 <head>
3 <script><![CDATA[ 3 <script><![CDATA[
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
7 } 7 }
8 8
9 function crash() 9 function crash()
10 { 10 {
11 cur_obj = document.createElement('a'); 11 cur_obj = document.createElement('a');
12 eval('cur_obj.search = false;'); 12 eval('cur_obj.search = false;');
13 eval('cur_obj.hostname = navigator;'); 13 eval('cur_obj.hostname = navigator;');
14 eval('cur_obj.ping = false;'); 14 eval('cur_obj.ping = false;');
15 e_value = eval('cur_obj.click();'); 15 e_value = eval('cur_obj.click();');
16 if (window.testRunner) 16 if (window.testRunner)
17 testRunner.notifyDone(); 17 testRunner.notifyDone();
18 } 18 }
19 ]]></script> 19 ]]></script>
20 </head> 20 </head>
21 <body onload="crash();"> 21 <body onload="crash();">
22 </body> 22 </body>
23 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698