| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html><head> | 2 <html><head> |
| 3 <meta charset='utf-8'> | 3 <meta charset='utf-8'> |
| 4 <title>getElementsByClassName</title> | 4 <title>getElementsByClassName</title> |
| 5 <meta content="handle unicode chars" name="description"> | 5 <meta content="handle unicode chars" name="description"> |
| 6 <link href="https://dom.spec.whatwg.org/#dom-document-getelementsbyclassname
" rel="help"> | 6 <link href="https://dom.spec.whatwg.org/#dom-document-getelementsbyclassname
" rel="help"> |
| 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 <div id="log"></div> | 11 <div id="log"></div> |
| 12 <div> | 12 <div> |
| 13 <div> | 13 <div> |
| 14 <a class="ΔЙあ叶葉 말 link" href="#foo">ΔЙあ叶葉 말 link</a> | 14 <a class="ΔЙあ叶葉 말 link" href="#foo">ΔЙあ叶葉 말 link</a> |
| 15 </div> | 15 </div> |
| 16 <b class="text">text</b> | 16 <b class="text">text</b> |
| 17 </div> | 17 </div> |
| 18 <div class="ΔЙあ叶葉 קم">ΔЙあ叶葉 קم</div> | 18 <div class="ΔЙあ叶葉 קم">ΔЙあ叶葉 קم</div> |
| 19 | 19 |
| 20 <script type="text/javascript"> | 20 <script type="text/javascript"> |
| 21 test(function() | 21 test(function() |
| 22 { | 22 { |
| 23 var collection = document.getElementsByClassName("ΔЙあ叶葉"); | 23 var collection = document.getElementsByClassName("ΔЙあ叶葉"); |
| 24 assert_equals(collection.length, 2); | 24 assert_equals(collection.length, 2); |
| 25 assert_equals(collection[0].parentNode.nodeName, "DIV"); | 25 assert_equals(collection[0].parentNode.nodeName, "DIV"); |
| 26 assert_equals(collection[1].parentNode.nodeName, "BODY"); | 26 assert_equals(collection[1].parentNode.nodeName, "BODY"); |
| 27 }, "handle unicode chars"); | 27 }, "handle unicode chars"); |
| 28 </script> | 28 </script> |
| 29 | 29 |
| 30 </body></html> | 30 </body></html> |
| OLD | NEW |