webref icon indicating copy to clipboard operation
webref copied to clipboard

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

Open jodinathan opened this issue 3 years ago • 1 comments

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?

jodinathan avatar Jan 30 '22 23:01 jodinathan

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

tidoust avatar Jan 31 '22 09:01 tidoust