| OLD | NEW |
| 1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
| 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" | 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" |
| 4 [ | 4 [ |
| 5 <!ENTITY tree "<span id='first_element_child' style='font-weight:bold;'>unknown.
</span>"> | 5 <!ENTITY tree "<span id='first_element_child' style='font-weight:bold;'>unknown.
</span>"> |
| 6 ]> | 6 ]> |
| 7 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | 7 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 8 <head> | 8 <head> |
| 9 <title>Entity References</title> | 9 <title>Entity References</title> |
| 10 <script src="../../../../resources/testharness.js"></script> | 10 <script src="/resources/testharness.js"></script> |
| 11 <script src="../../../../resources/testharnessreport.js"></script> | 11 <script src="/resources/testharnessreport.js"></script> |
| 12 </head> | 12 </head> |
| 13 <body> | 13 <body> |
| 14 <h1>Test of Entity References</h1> | 14 <h1>Test of Entity References</h1> |
| 15 <div id="log"></div> | 15 <div id="log"></div> |
| 16 <p id="parentEl">The result of this test is &tree;</p> | 16 <p id="parentEl">The result of this test is &tree;</p> |
| 17 <script><![CDATA[ | 17 <script><![CDATA[ |
| 18 test(function() { | 18 test(function() { |
| 19 var parentEl = document.getElementById("parentEl") | 19 var parentEl = document.getElementById("parentEl") |
| 20 var fec = parentEl.firstElementChild; | 20 var fec = parentEl.firstElementChild; |
| 21 assert_true(!!fec) | 21 assert_true(!!fec) |
| 22 assert_equals(fec.nodeType, 1) | 22 assert_equals(fec.nodeType, 1) |
| 23 assert_equals(fec.getAttribute("id"), "first_element_child") | 23 assert_equals(fec.getAttribute("id"), "first_element_child") |
| 24 }) | 24 }) |
| 25 ]]></script> | 25 ]]></script> |
| 26 </body> | 26 </body> |
| 27 </html> | 27 </html> |
| OLD | NEW |