nodeType
8 and getElementsByTagName
Late night MSN sessions…
<form>
does not imply<body>
in IE6
interesting
it’s worse…
<!DOCTYPE html> <title>001</title> <style> div { position:relative; } form { width:40em; } </style> <div> <form> <p>test </form> </div>
innerHTML
for that:
<HTML><HEAD><TITLE>001</TITLE> <STYLE> div { position:relative; } form { width:40em; } </STYLE> <FORM></HEAD> <BODY> <DIV> <P>test </FORM></P></DIV></BODY></HTML>
ah, totally IE
the contents of the div are invisible
hmm…
o well
debugging that sucks
emulating it might be cool
building IE again
the thought of it hurts my brains
javascript:alert(document.getElementsByTagName("!")[0].nodeValue)
you’re so crazy
try that in a document that has a doctype declaration, with IE
heh
Later on:
how can a node that isnodeType
8 be returned bygetElementsByTagName
?
euh, good question
In reality, this post is about conversation markup. Although the various bits pointed out are quite interesting as well.