Is HTML a context-free language?

前端 未结 4 1190
礼貌的吻别
礼貌的吻别 2020-12-07 15:43

Reading some related questions made me think about the theoretical nature of HTML.

I\'m not talking about XHTML-like code here. I\'m talking about stuff like this cr

4条回答
  •  情话喂你
    2020-12-07 16:32

    HTML5 is different from previous HTML versions in that it strictly defines the parsing behaviour of code that isn't completely correct. Pre-HTML5 parsers vary and each do their best to 'guess' the intention of the code author.

提交回复
热议问题