我希望它的HTML4定义不是HTML5的解释
编辑:
我的问题原因是要解决这个问题: Chrome popup请填写此字段
解决方案新的答案基于更新的问题:
它不是您遇到问题的HTML 5解析规则,它支持HTML 5属性。不,你不能重写这个。如果您不想使用HTML 5中的新功能,请不要在文档中使用它们。
原始答案:
不,没有。
HTML 5的解析规则大部分是什么浏览器已经在过去的十五年半了。
这只是让我们远离拥有完美有效的支持有限支持的SGML功能(以及通过它们的验证器有效)。
Is there a way to avoid HTML 5 parser ? My app has the following doctype:
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "www.w3/TR/html4/loose.dtd"And I wish that it's interpreted with HTML4 definitions not HTML5
EDIT:
My question reason is to solve this: Chrome popup Please Fill Out this Field
解决方案New answer based on updated question:
It isn't the HTML 5 parsing rules you have a problem with, it is support for HTML 5 attributes. No, you can't override this. If you don't want to use things that are new in HTML 5 — don't use them in your document!
Original answer:
No, there isn't.
The HTML 5 parsing rules are mostly "What browsers have been doing for the last decade and a half anyway".
This just lets us get away from having perfectly valid SGML features with limited support in the language (and validators which pass them as valid).
更多推荐
HTML版本4和5
发布评论