Why don't self-closing script elements work?

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

What is the reason browsers do not correctly recognize:



        
12条回答
  •  你的背包
    2020-11-21 05:04

    XHTML 1 specification says:

    С.3. Element Minimization and Empty Element Content

    Given an empty instance of an element whose content model is not EMPTY (for example, an empty title or paragraph) do not use the minimized form (e.g. use

    and not

    ).

    XHTML DTD specifies script elements as:

    
    
    

提交回复
热议问题