Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@stop names! when i set my data attribute to data-attributeName it took me way too damn long until I finally found out that data-attributeName was converted to data-attributename! It really sucks that all of these hidden rules and traps must be known in working on the front end
-
stop68673yHere is better link because devrant didnt recognised the -* as an part of the link: https://fckaf.de/ryb
-
stop68673y@kwilliams @TeachMeCode from the whatwg standard:
A custom data attribute is an attribute in no namespace whose name starts with the string "data-", has at least one character after the hyphen, is XML-compatible, and contains no ASCII upper alphas.
WHO’S IDEA WAS IT TO CONVERT HTML DATA ATTRIBUTES TO LOWERCASE! I spent SO MUCH TIME on a bug because of this!!! Fuck it’s all about knowing the nuances and tricks of the little web devil who lives in every browser
rant