开发者

getElementsByTagName gives us the same result for IE and Firefox

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> &nbsp; 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>

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜