mshtml: Don't access url in translate_url after freeing it.
[wine/hacks.git] / dlls / mshtml / tests / jstest.html
blob6192f815af39114260135aff857ebe5797ba3e7b
1 <html>
2 <head>
3 <script>
4 function ok(b,m) {
5 return external.ok(b, m);
8 function test_removeAttribute(e) {
9 ok(e.removeAttribute('nonexisting') === false, "removeAttribute('nonexisting') didn't return false");
11 e.title = "title";
12 ok(e.removeAttribute('title') === true, "removeAttribute('title') didn't return true");
13 ok(e.title === "", "e.title = " + e.title);
14 ok(("title" in e) === true, "title is not in e");
16 e["myattr"] = "test";
17 ok(e.removeAttribute('myattr') === true, "removeAttribute('myattr') didn't return true");
18 ok(e["myattr"] === undefined, "e['myattr'] = " + e['myattr']);
19 ok(("myattr" in e) === false, "myattr is in e");
23 function runTest() {
24 obj = new Object();
25 ok(obj === window.obj, "obj !== window.obj");
27 ok(typeof(divid) === "object", "typeof(divid) = " + typeof(divid));
29 test_removeAttribute(document.getElementById("divid"));
30 test_removeAttribute(document.body);
32 external.reportSuccess();
34 </script>
35 <body onload="runTest();">
36 <div id="divid"></div>
37 </body>
38 </html>