I found out something potentially important and good. It is relevant to test zero, and actually has implications for a lot of other tests.

Consider this mini page, hello.html

<HTML>
<BODY>
<SCRIPT>
document.write('<P>odd</P>');
</script>
</BODY>
</HTML>

Should the inserted <P> have <SCRIPT> in its series of parentNodes as it descends from document?

Here's my edited edbrowse transcript for this. Asterisks signify my input.

* b hello.html
79
4
* jdb
* x1 = document.getElementsByTagName("P")
[object Object]
* x2 = x1[0]
[object Object]
* x2.parentNode.nodeName
script
* x2.parentNode.parentNode.nodeName
body

This is relevant to the acidtests because test zero runs removeChild of the last script. The last script is this:

<script type="text/javascript">document.write('<map name=""><area href="" shape="rect" coords="2,2,4,4" alt="<\'>"><iframe src="empty.png">FAIL<\/iframe><iframe src="empty.txt">FAIL<\/iframe><iframe src="empty.html" id="selectors"><\/iframe><form action="" name="form"><input type=HIDDEN><\/form><table><tr><td><p><\/tbody> <\/table><\/map>');</script>

So it merrily removes all of that stuff inside of document.write. Subsequent tests try to find those elements and they no longer exist!
If script does not occur in the tree of those iframe, form, etc,
then they will be available later on!

Kevin






_______________________________________________
Edbrowse-dev mailing list
[email protected]
http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev

Reply via email to