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 5895 - Require attributes on <embed> and data-* attributes to be lowercase
Summary: Require attributes on <embed> and data-* attributes to be lowercase
Status: CLOSED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-24 07:53 UTC by Simon Pieters
Modified: 2010-10-04 14:30 UTC (History)
6 users (show)

See Also:


Attachments

Description Simon Pieters 2008-07-24 07:53:33 UTC
For round-trippability and in order to avoid confusion with post-parsing mutations of attributes (the U12345 stuff), attributes on <embed> and data-* attributes should be required to be lowercase (in the ASCII range).

This would also give authors less rope when trying mixed case for data-* attributes in text/html in markup and using the .dataset API.
Comment 1 Ian 'Hixie' Hickson 2008-07-24 08:15:52 UTC
I don't understand what this would mean. How would I phrase this in such a way that authors who are writing HTML wouldn't think it applied to them?
Comment 2 Simon Pieters 2008-07-24 11:11:12 UTC
It does apply to them, but only when using the .dataset API, since, AFAICT, it's case sensitive. No?

<body data-foo=bar>

alert(document.body.dataset.FOO);
Comment 3 Henri Sivonen 2008-07-24 13:37:42 UTC
(In reply to comment #1)
> I don't understand what this would mean. How would I phrase this in such a way
> that authors who are writing HTML wouldn't think it applied to them?

Names of data-* attributes and attributes on the embed element must not contain upper-case ASCII letters. Note: It is impossible to violate this requirement in the text/html serialization. Thus, the requirement concerns the XML serialization and the DOM.
Comment 4 Ian 'Hixie' Hickson 2008-07-25 21:07:41 UTC
I don't really like that but I'll figure something out I guess.