Community
Participate
Working Groups
Build Identifier: 20100917-0705 Example: <video autoplay loop controls></video> 'autoplay' is treated correct. 'loop' and 'controls' trigger a warning 'Undefined attribute value().' Autocompletion offers the string literals 'true' and 'false'. From the HTML5 draft: | The values "true" and "false" are not allowed on boolean attributes. http://dev.w3.org/html5/spec/Overview.html#boolean-attribute That restriction is also consistent with previous SGML based HTML versions (likewise, the corresponding DOM properties also *do* get/set real booleans, which has proven to be mildly confusing). Reproducible: Always
Created attachment 186830 [details] patch
Approved. Please fill out the PMC Review details.
* Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such. Correct markup is generating confusing error markers due to improper content model values. * Is there a work-around? If so, why do you believe the work-around is insufficient? No. Using true/false goes against the specification. * How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added? Existing unit tests have been run in addition to ad hoc testing. * Give a brief technical overview. Who has reviewed this fix? The content model has been updated to follow the spec and adhere to what a boolean attribute is. This required modifying the enumerated values for the attributes loop and controls, which were previously incorrectly set to true/false. What is the risk associated with this fix? Very low.
Well who wrote that spec?! Are they just trying to cause problems for XHTML? :) Just kidding. Guess they have their reasons. And this sounds like a very worth while fix. Thanks,
Resolving. Thanks!