Settings

Theme

HTML is now versionless... since 2011

1 points by INTPnerd 9 years ago · 0 comments · 2 min read


I recently had an interesting conversation about the use of the HTML 4 transitional doctype, and was surprised to find out that it was no longer valid. I thought this website was the official / final say on the matter, but apparently it is both outdated and "just an informative reference", whatever that means: https://www.w3.org/QA/2002/04/valid-dtd-list.html

This is true despite the fact that the best validator I know of, https://validator.w3.org/nu/, agreed this was a valid doctype. But apparently that was a mistake as well, and they recently fixed it so it shows that doctype as an error.

So what does it mean for HTML to be versionless? Here is the best I can understand it. The doctype is not supposed to alter the way the browser behaves. Browsers should continue to support outdated elements, attributes, etc for backwards compatibility and to give the web time to catch up to the latest standards. Authors should stop using them. To the extent browser choose to support outdated stuff, they do so as a single version of HTML, the same way they support "HTML 5" stuff.

But if HTML is now versionless, why are we using the terms HTML 5.1 and 5.2?

References:

https://blog.whatwg.org/html-is-the-new-html5

https://html.spec.whatwg.org/multipage/syntax.html#the-doctype

https://github.com/validator/validator/issues/408

https://github.com/htacg/tidy-html5/issues/466

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection