OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta name='author' title='Google' href='http://www.google.com'> | 4 <meta name='author' title='Google' href='http://www.google.com'> |
5 <meta name='assert' content='getElement* API in document should not leak any nod
e in shadow tree.'> | 5 <meta name='assert' content='getElement* API in document should not leak any nod
e in shadow tree.'> |
6 <link rel='help' href='https://w3c.github.io/webcomponents/spec/shadow/'> | 6 <link rel='help' href='https://w3c.github.io/webcomponents/spec/shadow/'> |
7 <script src='/resources/testharness.js'></script> | 7 <script src='/resources/testharness.js'></script> |
8 <script src='/resources/testharnessreport.js'></script> | 8 <script src='/resources/testharnessreport.js'></script> |
9 </head> | 9 </head> |
10 <body> | 10 <body> |
11 | 11 |
12 <!-- This template will be filled in '#doc', '#host-open', and '#host-closed' b
elow --> | 12 <!-- This template will be filled in '#doc', '#host-open', and '#host-closed' be
low --> |
13 <template id='domtree-template'> | 13 <template id='domtree-template'> |
14 <span id='foo'></span> | 14 <span id='foo'></span> |
15 <div class='bar'></div> | 15 <div class='bar'></div> |
16 <form name='baz'></form> | 16 <form name='baz'></form> |
17 <my-element></my-element> | 17 <my-element></my-element> |
18 </template> | 18 </template> |
19 | 19 |
20 <div id='doc'> | 20 <div id='doc'> |
21 <div id='host-open'></div> | 21 <div id='host-open'></div> |
22 <div id='host-closed'></div> | 22 <div id='host-closed'></div> |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 165 |
166 assert_equals(hostClosed.getElementsByTagName('linearGradient').length, 0); | 166 assert_equals(hostClosed.getElementsByTagName('linearGradient').length, 0); |
167 assert_equals(hostClosed.getElementsByTagNameNS('*', 'linearGradient').lengt
h, 0); | 167 assert_equals(hostClosed.getElementsByTagNameNS('*', 'linearGradient').lengt
h, 0); |
168 assert_equals(hostClosed.getElementsByTagNameNS('http://www.w3.org/2000/svg'
, 'linearGradient').length, 0); | 168 assert_equals(hostClosed.getElementsByTagNameNS('http://www.w3.org/2000/svg'
, 'linearGradient').length, 0); |
169 assert_equals(hostClosed.getElementsByTagNameNS('http://www.w3.org/1999/xhtm
l', 'linearGradient').length, 0); | 169 assert_equals(hostClosed.getElementsByTagNameNS('http://www.w3.org/1999/xhtm
l', 'linearGradient').length, 0); |
170 | 170 |
171 // ShadowRoot isn't an Element, does not have getElementsByTagNameNS(). | 171 // ShadowRoot isn't an Element, does not have getElementsByTagNameNS(). |
172 }, 'getElementsByTagNameNS() should not leak nodes in shadow tree'); | 172 }, 'getElementsByTagNameNS() should not leak nodes in shadow tree'); |
173 </script> | 173 </script> |
174 </html> | 174 </html> |
OLD | NEW |