webref
webref copied to clipboard
How can I know the final type of the Event from idlParsed?
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?
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.