Simply takes any camel cased properties from the element definition and checks if a lowercased version exists on the instance of it (the tag).
This works because parse5 normalises attributes, such that fooBar becomes foobar. So if we have a property named fooBar and our parse5 node has foobar, we know it was originally written as <our-el fooBar>.
Fixes #58.
Simply takes any camel cased properties from the element definition and checks if a lowercased version exists on the instance of it (the tag).
This works because parse5 normalises attributes, such that
fooBar
becomesfoobar
. So if we have a property namedfooBar
and our parse5 node hasfoobar
, we know it was originally written as<our-el fooBar>
.