Why don't self-closing script elements work?

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

What is the reason browsers do not correctly recognize:



        
12条回答
  •  感情败类
    2020-11-21 04:42

    Simply modern answer is because the tag is denoted as mandatory that way

    Tag omission None, both the starting and ending tag are mandatory.

    https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script

提交回复
热议问题