Why don't self-closing script elements work?

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

What is the reason browsers do not correctly recognize:



        
12条回答
  •  青春惊慌失措
    2020-11-21 04:59

    The people above have already pretty much explained the issue, but one thing that might make things clear is that, though people use
    and such all the time in HTML documents, any / in such a position is basically ignored, and only used when trying to make something both parseable as XML and HTML. Try

    foo

    , for example, and you get a regular paragraph.

提交回复
热议问题