4

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

Comments
  • 1
    Do you mean the attribute names or values?
  • 0
    @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
  • 0
  • 2
    Here is better link because devrant didnt recognised the -* as an part of the link: https://fckaf.de/ryb
  • 0
    > The name must not contain any capital letters.

    🤔
  • 0
    @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.
Add Comment