when I opened a webpage and try to parse tags manually, I found a tag is
missing in innerHTML. Here is a demo:
<html>
<head><title>test</title></head>
<body>
<dl>
<dt>demo info</dt>
<dd>
blahblah
</dd>
</dl>
<script>
alert(document.body.innerHTML);
</script>
</body></html>
-------------------------------------
the body's innerHTML is:
<DL>
<DT>demo info
<DD>blahblah </DD></DL>
<SCRIPT>
alert(document.body.innerHTML);
</SCRIPT>
as you can see, the <DT>'s closing tag is missing. and in MSDN it says DT
needs a closing tag.
Is this a bug of IE's html parsing engine? Thanks.
Best regards.
|