OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
esprehn
2014/09/04 20:00:46
Add <!DOCTYPE html>,
remove <head>, Body> and <ht
dmazzoni
2014/09/05 00:19:13
Done.
| |
2 <head> | |
3 <script src="../resources/js-test.js"></script> | |
4 </head> | |
5 <body> | |
6 | |
7 <!-- Nodes inside a canvas get an AXNodeObject, not an AXRenderObject. --> | |
8 <canvas> | |
9 <div id=node2></div> | |
10 </canvas> | |
11 | |
12 <script> | |
13 description("Ensure that if we have an AXNodeObject with a raw pointer to a Node, the accessible object gets correctly detached if we adopt the node into a new document."); | |
14 | |
15 // This triggers an asynchronous accessibility notification. | |
16 document.getElementById("node2").setAttribute("aria-label", "Label"); | |
17 | |
18 // Adopt the node into a new document, then garbage-collect it. | |
19 // Make sure the notification doesn't try to access the invalid node. | |
20 document.implementation.createDocument("", null).adoptNode(node2); | |
21 gc(); | |
22 </script> | |
23 | |
24 </body> | |
25 </html> | |
OLD | NEW |