HTML version 4 vs 5

Is there any way to avoid HTML 5 parser? My application has the following doctype type:

DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" 

And I want it to be interpreted using HTML4 definitions, not HTML5

EDIT:

My question is to solve this problem: Chrome popup. Fill in this field

0
html html-parsing
Apr 12 2018-11-11T00:
source share
3 answers

New answer based on updated question:

These are not HTML HTML parsing rules that you encounter, they are HTML 5 attribute support. No, you cannot override this. If you do not want to use new things in HTML 5 - do not use them in your document!




Original answer:

No no.

HTML 5 parsing rules are basically "What browsers have been doing for the past decade and a half anyway."

This simply allows us to avoid the excellent SGML features with limited language support (and validators that pass them as valid).

+3
Apr 12 '11 at 15:08
source share

You have nothing to do with HTML 4 and HTML 5 (and not even their parsers). This is due to the fact that you invented your own non-standard attributes (which you should not have done in the first place), and now new standardized attributes (or attributes in the standardization process) collide with them.

See also my answer to your other question .

0
Apr 13 2018-11-11T00:
source share

Thanks U Everything, but especially thanks to the college who knew how to solve my problem:

http://www.w3.org/TR/html5/association-of-controls-and-forms.html#attr-fs-formnovalidate

You can disable validation on the form.

0
Apr 13 2018-11-11T00:
source share



All Articles