[Javascript] deleting all options

Scott Reynen scott at randomchaos.com
Wed Feb 1 11:56:25 CST 2006


On Feb 1, 2006, at 11:32 AM, Paul Novitski wrote:

> Basically, I inserted HTML markup into a div and found that the  
> div's firstChild and hasChildNodes came back null.  I tried walking  
> the DOM using getElementsByTagName("*") and couldn't find the tags  
> I had just inserted, even though the inserted markup was rendered  
> by the browser just fine.

Here are a couple articles about IE's buggy handling of innerHTML:

http://www.quirksmode.org/bugreports/archives/2004/11/ 
innerhtml_and_t.html
http://www.quirksmode.org/blog/archives/2005/12/xmlhttp_notes_c.html  
[scroll to "Explorer - responseText and forms"]

Peace,
Scott



More information about the Javascript mailing list