2012-10-05 0:35, Tim Streater wrote:
> And I'm using a frameset with the HTML5 doctype. Any reason why I
> shouldn't? Other than religious reasons, that is.
Well, is there any reason that you should? Other than making the doctype
short, that is.
There is a reason why you shouldn't: when you try validate, you will see
whining like "The frameset element is obsolete. Use the iframe element
and CSS instead, or use server-side includes." This means that it will
be more difficult to see any real markup errors. However, frameset
documents tend to be small. Besides, you can use doctype override.
Regarding the question about any reason you should, I was very recently
shocked by this remark about support to the formnovalidate attribute in
Chrome:
"5.0 (in 6.0 only worked with HTML5 doctype, validation support in 7.0
was disabled and re-enabled in 10.0)"
https://developer.mozilla.org/en-US/docs/HTML/Element/input
The specific incident is old, and you won't probably be using such an
attribute in a frameset document (it could appear in the noframes
section, but that section is just for "Get yourself a new browser, and a
life!" content, isn't it?). But it is a serious symptoms of the
mutability of the "doctype sniffing" disease - and the first case known
to me where browser support to HTML5 features has depended on the use of
the specific "HTML5 doctype" <!doctype html>.
So I guess there's a point in using <!doctype html> whenever your page
contains any HTML5 novelties, just to be "sure" (that is, marginally
less uncertain).
--
Yucca,
http://www.cs.tut.fi/~jkorpela/