Is it wrong to place the [removed] tag after the </body> tag?

前端 未结 8 997
长情又很酷
长情又很酷 2020-11-22 06:12

How wrong is it to place the script tag after the closing tag of the body (). ?


  ....
  
     ....
  <         


        
8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 06:32

    Procedurally insert "element script" after "element body" is "parse error" by recommended process by W3C. In "Tree Construction" create error and run "tokenize again" to process that content. So it's like additional step. Only then can be runned "Script Execution" - see scheme process.

    Anything else "parse error". Switch the "insertion mode" to "in body" and reprocess the token.

    Technically by browser it's internal process, how they mark and optimize it.

    I hope I helped somebody.

提交回复
热议问题