| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../js/resources/js-test-pre.js"></script> |
| 3 <script> | 3 <script> |
| 4 description('Tests that classList works on non HTMLElements'); | 4 description('Tests that classList works on non HTMLElements'); |
| 5 | 5 |
| 6 var htmlElement = document.createElement('div'); | 6 var htmlElement = document.createElement('div'); |
| 7 htmlElement.setAttribute('class', 'foo'); | 7 htmlElement.setAttribute('class', 'foo'); |
| 8 shouldBeTrue('htmlElement.classList instanceof DOMTokenList'); | 8 shouldBeTrue('htmlElement.classList instanceof DOMTokenList'); |
| 9 | 9 |
| 10 var svgElement = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); | 10 var svgElement = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); |
| 11 svgElement.setAttribute('class', 'foo'); | 11 svgElement.setAttribute('class', 'foo'); |
| 12 shouldBeTrue('svgElement.classList instanceof DOMTokenList'); | 12 shouldBeTrue('svgElement.classList instanceof DOMTokenList'); |
| 13 | 13 |
| 14 | 14 |
| 15 var xmlElement = document.createElementNS('http://www.example.com', 'xml'); | 15 var xmlElement = document.createElementNS('http://www.example.com', 'xml'); |
| 16 xmlElement.setAttribute('class', 'foo'); | 16 xmlElement.setAttribute('class', 'foo'); |
| 17 shouldBeTrue('xmlElement.classList instanceof DOMTokenList'); | 17 shouldBeTrue('xmlElement.classList instanceof DOMTokenList'); |
| 18 | 18 |
| 19 </script> | 19 </script> |
| 20 <script src="../../js/resources/js-test-post.js"></script> | |
| OLD | NEW |