Convert attr-name
to attrName
when referencing in data.
#71
Labels
Milestone
attr-name
to attrName
when referencing in data.
#71
parse5
enforces the HTML specification and converts both attributes and@
-prefixed properties to lowercase(is referenced inside
my-component
asattrname
andpropname
respectively).First reported by @voxpelli: #62 (comment)
I don’t know if we necessarily want to add to the parsing complexity but a nice workaround could be to convert dash names to camelcase:
e.g.
@prop-name
would be referenced aspropName
andattr-name
would be referenced asattrName
Open for discussion here!
The text was updated successfully, but these errors were encountered: