We are using the getElementsByTagName function to find out domnodes present in the article.
We found that IE and Firefox give different result for broken tag as below.
e.g.
<a href="http://www.yahoo.com">Bypass HTML tags</ a>
Complete 2 Fails
In IE : for above example we will get two nodes 'A' and '/'.
In firefox for a开发者_运维百科bove example we will get one node 'A'.
Both browsers should give same Dom elements.
Thanks in advance
</ a>
is not valid (X)HTML. You want </a>
精彩评论