Event Handlers vs. Event Listener and implicit call to open()
#225
Labels
category: enhancement
https://www.w3.org/policies/process/#class-3
Needs Edits
https://speced.github.io/spec-maintenance/about/
Priority: Soon
https://speced.github.io/spec-maintenance/about/
Milestone
The spec currently states the following (emphasis mine):
This means that, if
output
is aMIDIOutput
object, the following snippet (setting an event handler) opens the port:but the following (adding an event listener) doesn't:
It seems like we need to state that both ways open the port, for Web Compat reasons.
https://html.spec.whatwg.org/multipage/webappapis.html#event-handlers
https://dom.spec.whatwg.org/#concept-event-listener
The text was updated successfully, but these errors were encountered: