-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'HTMLElement' is not defined when used in markup event handler #6643
Comments
Hi, I would like to work on this issue, can someone guide me further on what needs to be done? |
You need to enhance the list of known globals, see this PR for inspiration: #5601 |
Might be good to go ahead and add SVGElement when I'm guessing we're not wanting this list to be exhaustive as otherwise this list would be quite large, even for just HTML/SVG elements... FYI, my use case is mostly to scope |
Hi, I would like to work on this issue. can I try it? |
|
Thanks @Conduitry |
Hi everyone, I have a question regarding HTMLElement. How can I set it as a global variable. Thanks. |
I'm experiencing the same issue with HTMLCanvasElement now @Conduitry. I can put up a PR in a few minutes. |
Describe the bug
If HTMLElement is used in an event handler, for example:
It produces the following unexpected warning:
If you use
Element
in the handler, no warning is produced:or if you pull the handler into a function within
<script>
Reproduction
REPL
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: