开发者

Reserved word 'script' embedded in id tag - id can't be referenced

This is a new one on me.

In FF 3.6.3, use of the word 'script' in a tag id seems to make the id return null when searched on with document.getElementById.

Thus document.getElementById("blah_script") returns null from <div id="blah_script">开发者_高级运维;</div>.

Understood that 'script' in general is a reserved word, but I didn't know it was so spooky that a mass-adopted browser would care if it was in a tag id with a preceding expression for disambiguation.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜