bernhard Posted June 29, 2017 Share Posted June 29, 2017 hi, just checked a new sites html validation and came across lots of those errors: but it's exactly what the docs say: is it a problem of the validator? i thought custom attributes are fine for html5? has anybody more information about that for me please? thank you guys! Link to comment Share on other sites More sharing options...
jacmaes Posted June 29, 2017 Share Posted June 29, 2017 You should be able to use the "data-uk–*" prefix and have it pass the HTML validation. See the docs here, under the "Component usage" heading: https://getuikit.com/docs/javascript I understand that according to the spec, HTML5 custom data attributes should be prefixed as such, with "data-*": https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/data-* 5 Link to comment Share on other sites More sharing options...
bernhard Posted June 29, 2017 Author Share Posted June 29, 2017 thank you jacmaes, would be interesting to know why uikit does not mention that more prominent... maybe they just don't care too much about html validation? 2 Link to comment Share on other sites More sharing options...
jacmaes Posted June 29, 2017 Share Posted June 29, 2017 12 minutes ago, bernhard said: would be interesting to know why uikit does not mention that more prominent... maybe they just don't care too much about html validation? I'm wondering the same thing... Seems strange coming from such a dedicated team. 3 Link to comment Share on other sites More sharing options...
Juergen Posted November 25, 2017 Share Posted November 25, 2017 Changing from UIKit 2 to 3 - in the previous version they use the data prefix, but now.... more than strange Link to comment Share on other sites More sharing options...
szabesz Posted November 26, 2017 Share Posted November 26, 2017 (edited) 11 hours ago, Juergen said: Changing from UIKit 2 to 3 - in the previous version they use the data prefix, but now.... more than strange On 6/29/2017 at 12:25 PM, jacmaes said: You should be able to use the "data-uk–*" prefix and have it pass the HTML validation. See the docs here, under the "Component usage" heading: https://getuikit.com/docs/javascript Also the changelog: https://getuikit.com/changelog "3.0.0 beta 3 (January 17, 2017) Add support for data-uk- prefixed component attributes" But they keep fighting it as they tend to miss some tests of the "support" of data- prefix as the changelog lists various fixes regarding this issue. If they themselves were to use it as a default we would we see less bugs, I guess. Edited November 26, 2017 by szabesz typo 2 Link to comment Share on other sites More sharing options...
Recommended Posts