1<!DOCTYPE html [ 2<!ENTITY ent1 'foo'> 3<!ENTITY ent2 'foo<br/>'> 4<!ELEMENT html (head, body)> 5<!ATTLIST html xmlns CDATA #IMPLIED> 6<!ELEMENT head (title,script*)> 7<!ELEMENT script (#PCDATA)> 8<!ATTLIST script 9 src CDATA #IMPLIED 10 type CDATA #IMPLIED 11 charset CDATA #IMPLIED> 12<!ELEMENT title (#PCDATA)> 13<!ELEMENT body (p)> 14<!ATTLIST body onload CDATA #IMPLIED> 15<!ELEMENT p (#PCDATA|br)*> 16<!ELEMENT br EMPTY> 17]> 18<html xmlns='http://www.w3.org/1999/xhtml'> 19<head> 20<title>replaceWholeText sample</title> 21<script type='text/javascript' src='selfxhtml.js'></script><script charset='UTF-8' type='text/javascript' src='normalizecharacters06.js'></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head> 22<body onload="loadComplete()"> 23<p>bar</p> 24</body> 25</html> 26