HTML版本4和5 [英] HTML Version 4 vs 5
问题描述
我的应用程序有以下文档类型:
DOCTYPE HTML PUBLIC - // W3C // DTD HTML 4.01 Transitional / / EN
http://www.w3.org/TR/html4/loose.dtd
我希望它的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"
"http://www.w3.org/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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!