This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29486 - html and head elements should not get attributes or at least not new ones
Summary: html and head elements should not get attributes or at least not new ones
Status: RESOLVED MOVED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: CR HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Robin Berjon
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-19 03:52 UTC by Nick Levinson
Modified: 2016-04-28 16:20 UTC (History)
2 users (show)

See Also:


Attachments

Description Nick Levinson 2016-02-19 03:52:22 UTC
There seems to be a mild trend toward adding attributes into the html and head start tags (for example, the Open Graph protocol alone may require at least three). However, the charset must be completely declared within the first 1,024 characters of the file. As of yet, I don't think that's a conflict, but if anyone else wants to require more to be written into those 1024 bytes then we could have a problem. Possibly two solutions exist: get rid of the 1024-byte limit (I suppose there's a reason for it and that should be checked) or limit what can be required within that byte count. The most vulnerable are, I think, the html and head opening tags with new attributes and the doctype declaration if we again require a long one (it's shorter now than it was for HTML4). For example, I think putting the dir, lang, and translate attributes into the html element is either required or recommended when I'm not clear why putting all three into the opening body tag wouldn't suffice for all purposes, since the head element's content is, as far as I know, always left-to-right, in English, and not translated and therefore those attributes are irrelevant for the head element's content. I've already proposed to the Open Graph developers (https://groups.google.com/forum/#!topic/open-graph-protocol/e-ryeBShGY4) an alternative solution to requiring that their several attributes be added to the head opening tag (they can accept declarations being in link or meta tags preceding other tags using OGP), although the size of the installed base may make deprecation difficult or at least very slow.
Comment 1 LĂ©onie Watson 2016-04-28 16:20:48 UTC
Moved to HTML on Github:
https://github.com/w3c/html/issues/305