Skip to content
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

How can I know the final type of the Event from idlParsed? #469

Open
jodinathan opened this issue Jan 30, 2022 · 1 comment
Open

How can I know the final type of the Event from idlParsed? #469

jodinathan opened this issue Jan 30, 2022 · 1 comment

Comments

@jodinathan
Copy link

take the onmousemove at ed/html.json:

{
  "type": "attribute",
  "name": "onmousemove",
  "idlType": {
    "type": "attribute-type",
    "extAttrs": [],
    "generic": "",
    "nullable": false,
    "union": false,
    "idlType": "EventHandler"
  },
  "extAttrs": [],
  "special": "",
  "readonly": false
}

the idlType is EventHandler, however, can I make a connection to the event type as MouseEvent at ed/uievent.json somehow?

@tidoust
Copy link
Member

tidoust commented Jan 31, 2022

This and other event-related information are being tracked in w3c/reffy#772. One difficulty is that this information only exists in spec prose, making it hard to extract it automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants