| OLD | NEW |
| (Empty) |
| 1 <?xml version="1.0" encoding="utf-8"?> | |
| 2 <html xmlns="http://www.w3.org/1999/xhtml"> | |
| 3 <head> | |
| 4 <title>HTMLScriptElement.text</title> | |
| 5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-script-text"/
> | |
| 6 <script src="../../../../../../resources/testharness.js"/> | |
| 7 <script src="../../../../../../resources/testharnessreport.js"/> | |
| 8 </head> | |
| 9 <body> | |
| 10 <div id="log"></div> | |
| 11 <script> | |
| 12 <x>7;</x> | |
| 13 <![CDATA[ | |
| 14 var x = "y"; | |
| 15 ]]> | |
| 16 </script> | |
| 17 <script> | |
| 18 var script; | |
| 19 setup(function() { | |
| 20 script = document.body.getElementsByTagName("script")[0]; | |
| 21 }) | |
| 22 test(function() { | |
| 23 assert_equals(script.text, '\n\n\n var x = "y";\n\n') | |
| 24 assert_equals(script.textContent, '\n7;\n\n var x = "y";\n\n') | |
| 25 }, "Getter with CDATA section") | |
| 26 </script> | |
| 27 </body> | |
| 28 </html> | |
| OLD | NEW |