HTML版本4和5

编程入门 行业动态 更新时间:2024-10-17 17:27:55
本文介绍了HTML版本4和5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 有没有办法避免HTML 5解析器? 我的应用程序有以下文档类型:

DOCTYPE HTML PUBLIC - // W3C // DTD HTML 4.01 Transitional / / ENwww.w3/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" "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

本文发布于:2023-11-26 13:33:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1634030.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:版本   HTML

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!