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