Why don't self-closing script elements work?

前端 未结 12 2581
攒了一身酷
攒了一身酷 2020-11-21 04:12

What is the reason browsers do not correctly recognize:



        
12条回答
  •  名媛妹妹
    2020-11-21 04:46

    To add to what Brad and squadette have said, the self-closing XML syntax syntax with text/html (HTML syntax + HTML mimetype).

    If your server sends the text/html type in its HTTP headers, even with otherwise properly formed XHTML documents, FF3+ will use its HTML rendering mode which means that

提交回复
热议问题