| OLD | NEW |
| 1 <!-- quirks mode --> | 1 <!-- quirks mode --> |
| 2 | 2 |
| 3 <script src="../../fast/js/resources/js-test-pre.js"></script> | 3 <script src="../../fast/js/resources/js-test-pre.js"></script> |
| 4 | 4 |
| 5 <style> | 5 <style> |
| 6 .casesensitive { border: 1px solid red; } | 6 .casesensitive { border: 1px solid red; } |
| 7 </style> | 7 </style> |
| 8 | 8 |
| 9 <iframe id="standards-mode"></iframe> | 9 <iframe id="standards-mode"></iframe> |
| 10 | 10 |
| 11 <script> | 11 <script> |
| 12 description('Bug 257221: Moving an element from a standards mode document to a q
uirks mode one should handle the case difference of the id and class attributes'
); | 12 description('Bug 257221: Moving an element from a standards mode document to a q
uirks mode one should handle the case difference of the id and class attributes'
); |
| 13 | 13 |
| 14 var iframeDoc = document.getElementById('standards-mode').contentDocument; | 14 var iframeDoc = document.getElementById('standards-mode').contentDocument; |
| 15 | 15 |
| 16 iframeDoc.open(); | 16 iframeDoc.open(); |
| 17 iframeDoc.write('<!DOCTYPE html><div id="caseSensitive" class="caseSensitive">ca
seSensitive</div>'); | 17 iframeDoc.write('<!DOCTYPE html><div id="caseSensitive" class="caseSensitive">ca
seSensitive</div>'); |
| 18 iframeDoc.close(); | 18 iframeDoc.close(); |
| 19 | 19 |
| 20 div = iframeDoc.getElementById('caseSensitive'); | 20 div = iframeDoc.getElementById('caseSensitive'); |
| 21 document.body.appendChild(div); | 21 document.body.appendChild(div); |
| 22 shouldBe('document.querySelector("#caseSensitive")', 'div'); | 22 shouldBe('document.querySelector("#caseSensitive")', 'div'); |
| 23 shouldBe('document.getElementById("caseSensitive")', 'div'); | 23 shouldBe('document.getElementById("caseSensitive")', 'div'); |
| 24 shouldBeEqualToString('getComputedStyle(div).borderTopWidth', '1px'); | 24 shouldBeEqualToString('getComputedStyle(div).borderTopWidth', '1px'); |
| 25 </script> | 25 </script> |
| 26 | 26 |
| 27 <script src="../../fast/js/resources/js-test-post.js"></script> | |
| OLD | NEW |