Problem with HTML Parser in IE

后端 未结 9 909
醉梦人生
醉梦人生 2020-12-24 05:56

I am trying to create a dialog box that will appear only if the browser selected is IE (any version) however I get this error:

Message: HTML Parsing E

9条回答
  •  自闭症患者
    2020-12-24 06:35

    You're modifying document while it's being loaded (when browser hasn't "seen" closing tag for this element) . This causes very tricky situation in the parser and in IE it's not allowed.

    IE blog has explanation of this.

    The solution is to modify another element that's earlier in the document and has been loaded completely (where browser already saw closing tag for it).


    BTW: The string is not allowed in

提交回复
热议问题