Bug Tracker

Changes between Version 1 and Version 2 of Ticket #7328, comment 4


Ignore:
Timestamp:
Dec 2, 2010, 6:16:46 PM (10 years ago)
Author:
snover
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7328, comment 4

    v1 v2  
    1 John, your assertion doesn’t make any sense. HTML5 attributes are case-insensitive, and are automatically coerced to lowercase. The spec requires this. `data-foobar` is the same as `data-FOOBAR` or `data-fooBar` or `data-FoObAr`. The current behaviour is backwards from what it should be, according to the spec, and does not match what occurs elsewhere with identical string transformations (in `$.fn.css`, where both `font-size` and `fontSize` work).
     1John, your assertion doesn’t make any sense to me. HTML5 attributes are case-insensitive, and are automatically coerced to lowercase. The spec requires this. `data-foobar` is the same as `data-FOOBAR` or `data-fooBar` or `data-FoObAr`. The current behaviour is backwards from what it should be, according to the spec, and does not match what occurs elsewhere with identical string transformations (in `$.fn.css`, where both `font-size` and `fontSize` work).
    22
    33[http://www.w3.org/TR/html5/elements.html#embedding-custom-non-visible-data-with-the-data-attributes spec reference]