PC Review


Reply
Thread Tools Rate Thread

<DT> missing closing tag in innerHTML

 
 
Shaohua Li
Guest
Posts: n/a
 
      8th Jan 2008
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using InnerHtml to build up div Mike P Microsoft ASP .NET 1 9th Apr 2008 12:57 PM
innerHTML not working sling blade Microsoft ASP .NET 8 14th Feb 2005 03:10 AM
How to set innerHTML of an asp Label control moondaddy Microsoft ASP .NET 1 2nd Apr 2004 10:07 AM
innerhtml manipulation m miller Microsoft ASP .NET 5 5th Mar 2004 01:24 PM
innerHTML and images loading nick Windows XP Internet Explorer 1 20th Sep 2003 10:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:36 PM.