Why does Eclipse creates warning on HTML script tag?

前端 未结 3 2015

I have a warning on the line including the javascript file.



    
        

        
相关标签:
3条回答
  • 2021-02-19 17:01

    Instead of <!DOCTYPE html>, using this <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    0 讨论(0)
  • 2021-02-19 17:04

    It's the doc type. Eclipse is going to validate the DOM against the DTD. If unknown entities are not clearly defined in the DTD, then Eclipse will raise warnings.

    0 讨论(0)
  • 2021-02-19 17:25

    In the absence of an explicit doctype, you should check if the Property dialog for the file has a page for deciding what doctype to use as a default. HTML5 was only very recently added: http://dev.eclipse.org/mhonarc/lists/wtp-dev/msg07790.html .

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