Streaming live at 10am (PST)

Why are there so many reserved names for custom attributes?


#1

Every time I need/want to use a custom element attribute it's a reserved name. It's pretty annoying when trying to work with 3rd party API or working with inputs and trying to do type=hidden (hint)


#2

What's the reason why we can't use onclick attributes?


#3

Hi @Randy, thanks for the question. The onclick custom attribute is reserved for security reasons, however there is a workaround that may help, see this article here:

I hope this helps!


#4