| OLD | NEW |
| 1 <html xmlns="http://www.w3.org/1999/xhtml"> | 1 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 2 <body> | 2 <body> |
| 3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../js/resources/js-test-pre.js"></script> |
| 4 <script> | 4 <script> |
| 5 <![CDATA[ | 5 <![CDATA[ |
| 6 description("Test that appropriate exceptions are thrown when adding children to
a ProcessingInstruction."); | 6 description("Test that appropriate exceptions are thrown when adding children to
a ProcessingInstruction."); |
| 7 var pi = document.createProcessingInstruction('target', 'data'); | 7 var pi = document.createProcessingInstruction('target', 'data'); |
| 8 shouldThrow("pi.appendChild(null)", "'Error: HierarchyRequestError: DOM Exceptio
n 3'"); | 8 shouldThrow("pi.appendChild(null)", "'HierarchyRequestError: A Node was inserted
somewhere it doesn\\'t belong.'"); |
| 9 var div = document.createElement('div'); | 9 var div = document.createElement('div'); |
| 10 shouldThrow("pi.appendChild(div)", "'Error: HierarchyRequestError: DOM Exception
3'"); | 10 shouldThrow("pi.appendChild(div)", "'HierarchyRequestError: A Node was inserted
somewhere it doesn\\'t belong.'"); |
| 11 var textNode = document.createTextNode('sometext'); | 11 var textNode = document.createTextNode('sometext'); |
| 12 shouldThrow("pi.appendChild(textNode)", "'Error: HierarchyRequestError: DOM Exce
ption 3'"); | 12 shouldThrow("pi.appendChild(textNode)", "'HierarchyRequestError: A Node was inse
rted somewhere it doesn\\'t belong.'"); |
| 13 ]]> | 13 ]]> |
| 14 </script> | 14 </script> |
| 15 <script src="../js/resources/js-test-post.js"></script> | 15 <script src="../js/resources/js-test-post.js"></script> |
| 16 </body> | 16 </body> |
| 17 </html> | 17 </html> |
| OLD | NEW |