test_bug1072116.html (815B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=1072116 5 --> 6 <head> 7 <title>Test for Bug 1072116</title> 8 <script src="/tests/SimpleTest/SimpleTest.js"></script> 9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 10 </head> 11 <body> 12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1072116">Mozilla Bug 1072116</a> 13 <p id="display"></p> 14 <div id="content" style="display: none"> 15 16 </div> 17 <pre id="test"> 18 <script type="application/javascript"> 19 20 /** Test for Bug 1072116 */ 21 var attr = document.createAttribute("c"); 22 23 var xpathExpr = document.createExpression('a', null); 24 25 let isAlive = false; 26 try { 27 xpathExpr.evaluate(attr, null, null, null, null); 28 } catch(e) { 29 isAlive = true; 30 } 31 32 ok(isAlive, "Still alive \\o/"); 33 34 </script> 35 </pre> 36 </body> 37 </html>