firebug returns syntax error in doctype?

后端 未结 2 1749
半阙折子戏
半阙折子戏 2020-12-29 02:46

Why does Firebug return an error in my doctype?

 
         


        
相关标签:
2条回答
  • 2020-12-29 03:17

    DOCTYPE normally is expressed on one line like below. and can cause syntax error

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    

    But even sometimes it will yell about a syntax error when a src attribute is not declared for an element. Firebug can also through this error when a source is not found or is called twice on one page. EX: script/image/link.

    0 讨论(0)
  • 2020-12-29 03:28

    This usually happens because you are loading an HTML document as a script. This is often caused by <script src=""></script> (i.e. a relative URI pointing at the current, HTML, document)) or one of the scripts pointing to a 404 error.

    0 讨论(0)
提交回复
热议问题