最近遇到一个问题:在firefox下获取不到页面上的dom对象。后来查明原因是因为注释的问题。
原来的注释:<!------------archer-----**-----begin------------>
而firefox不支持在注释里面出现两个连续的减号。
查了一下HTML4的定义,其中也规定了应该避免在注释里面出现两个连续的减号。
原文如下:
A common error is to include a string of hyphens ("---") within a comment. Authors should avoid putting two or more adjacent hyphens inside comments.
原来的注释:<!------------archer-----**-----begin------------>
而firefox不支持在注释里面出现两个连续的减号。
查了一下HTML4的定义,其中也规定了应该避免在注释里面出现两个连续的减号。
原文如下:
A common error is to include a string of hyphens ("---") within a comment. Authors should avoid putting two or more adjacent hyphens inside comments.