OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
3 <title>DOM IDL tests</title> | 3 <title>DOM IDL tests</title> |
4 <script src=/resources/testharness.js></script> | 4 <script src=/resources/testharness.js></script> |
5 <script src=/resources/testharnessreport.js></script> | 5 <script src=/resources/testharnessreport.js></script> |
6 <script src=/resources/WebIDLParser.js></script> | 6 <script src=/resources/WebIDLParser.js></script> |
7 <script src=/resources/idlharness.js></script> | 7 <script src=/resources/idlharness.js></script> |
8 | 8 |
9 <h1>DOM IDL tests</h1> | 9 <h1>DOM IDL tests</h1> |
10 <div id=log></div> | 10 <div id=log></div> |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 const unsigned short DOCUMENT_TYPE_NODE = 10; | 205 const unsigned short DOCUMENT_TYPE_NODE = 10; |
206 const unsigned short DOCUMENT_FRAGMENT_NODE = 11; | 206 const unsigned short DOCUMENT_FRAGMENT_NODE = 11; |
207 const unsigned short NOTATION_NODE = 12; // historical | 207 const unsigned short NOTATION_NODE = 12; // historical |
208 readonly attribute unsigned short nodeType; | 208 readonly attribute unsigned short nodeType; |
209 readonly attribute DOMString nodeName; | 209 readonly attribute DOMString nodeName; |
210 | 210 |
211 readonly attribute DOMString baseURI; | 211 readonly attribute DOMString baseURI; |
212 | 212 |
213 readonly attribute boolean isConnected; | 213 readonly attribute boolean isConnected; |
214 readonly attribute Document? ownerDocument; | 214 readonly attribute Document? ownerDocument; |
| 215 Node getRootNode(optional GetRootNodeOptions options); |
215 readonly attribute Node? parentNode; | 216 readonly attribute Node? parentNode; |
216 readonly attribute Element? parentElement; | 217 readonly attribute Element? parentElement; |
217 boolean hasChildNodes(); | 218 boolean hasChildNodes(); |
218 [SameObject] readonly attribute NodeList childNodes; | 219 [SameObject] readonly attribute NodeList childNodes; |
219 readonly attribute Node? firstChild; | 220 readonly attribute Node? firstChild; |
220 readonly attribute Node? lastChild; | 221 readonly attribute Node? lastChild; |
221 readonly attribute Node? previousSibling; | 222 readonly attribute Node? previousSibling; |
222 readonly attribute Node? nextSibling; | 223 readonly attribute Node? nextSibling; |
223 | 224 |
224 attribute DOMString? nodeValue; | 225 attribute DOMString? nodeValue; |
(...skipping 16 matching lines...) Expand all Loading... |
241 DOMString? lookupPrefix(DOMString? namespace); | 242 DOMString? lookupPrefix(DOMString? namespace); |
242 DOMString? lookupNamespaceURI(DOMString? prefix); | 243 DOMString? lookupNamespaceURI(DOMString? prefix); |
243 boolean isDefaultNamespace(DOMString? namespace); | 244 boolean isDefaultNamespace(DOMString? namespace); |
244 | 245 |
245 Node insertBefore(Node node, Node? child); | 246 Node insertBefore(Node node, Node? child); |
246 Node appendChild(Node node); | 247 Node appendChild(Node node); |
247 Node replaceChild(Node node, Node child); | 248 Node replaceChild(Node node, Node child); |
248 Node removeChild(Node child); | 249 Node removeChild(Node child); |
249 }; | 250 }; |
250 | 251 |
| 252 dictionary GetRootNodeOptions { |
| 253 boolean composed = false; |
| 254 }; |
251 | 255 |
252 [Constructor, | 256 [Constructor, |
253 Exposed=Window] | 257 Exposed=Window] |
254 interface Document : Node { | 258 interface Document : Node { |
255 [SameObject] readonly attribute DOMImplementation implementation; | 259 [SameObject] readonly attribute DOMImplementation implementation; |
256 readonly attribute DOMString URL; | 260 readonly attribute DOMString URL; |
257 readonly attribute DOMString documentURI; | 261 readonly attribute DOMString documentURI; |
258 readonly attribute DOMString origin; | 262 readonly attribute DOMString origin; |
259 readonly attribute DOMString compatMode; | 263 readonly attribute DOMString compatMode; |
260 readonly attribute DOMString characterSet; | 264 readonly attribute DOMString characterSet; |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 Range: ['document.createRange()', 'detachedRange'], | 589 Range: ['document.createRange()', 'detachedRange'], |
586 NodeIterator: ['document.createNodeIterator(document.body, NodeFilter.SHOW_A
LL, null, false)'], | 590 NodeIterator: ['document.createNodeIterator(document.body, NodeFilter.SHOW_A
LL, null, false)'], |
587 TreeWalker: ['document.createTreeWalker(document.body, NodeFilter.SHOW_ALL,
null, false)'], | 591 TreeWalker: ['document.createTreeWalker(document.body, NodeFilter.SHOW_ALL,
null, false)'], |
588 NodeList: ['document.querySelectorAll("script")'], | 592 NodeList: ['document.querySelectorAll("script")'], |
589 HTMLCollection: ['document.body.children'], | 593 HTMLCollection: ['document.body.children'], |
590 DOMTokenList: ['document.body.classList'], | 594 DOMTokenList: ['document.body.classList'], |
591 }); | 595 }); |
592 }); | 596 }); |
593 idlArray.test(); | 597 idlArray.test(); |
594 </script> | 598 </script> |
OLD | NEW |