Closed StarpTech closed 6 years ago
I‘ve thought about this for stuff where the other fields, e.g., numeric and spaceSeparated, depend on the element that the prop is used on.
I’m not entirely sure about the use for supported
though. Maybe html-element-attributes
is better for that. The spec changes a bit. That project is strict, and I feel property-information should not be too strict.
Hi @wooorm thanks for the pointer. I can handle it with that.
Hi, I think it could be useful to evaluate the property based on a specific tag. In that case we could check if the property is a supported HTML attribute of the tag. It would also allow to handle attributes case-sensitive when a known attribute is applied on a tag which doesn't support it.
The third parameter is optional.