- From: François Daoust via GitHub <sysbot+gh@w3.org>
- Date: Fri, 26 Apr 2024 13:46:43 +0000
- To: public-webrtc@w3.org
tidoust has just created a new issue for https://github.com/w3c/webrtc-ice: == Rename `onerror` to `onicecandidateerror`? == I bumped into the definition of [`RTCIceTransport.onerror`](https://w3c.github.io/webrtc-ice/#rtcicetransport-interface-definition*) while analyzing event handler attributes and events that specs define (context in https://github.com/w3c/webref/issues/1216). The Web Platform Design Principles (implicitly) [recommend to name event handler attributes after the event type](https://www.w3.org/TR/design-principles/#always-add-event-handlers). The HTML spec also has: > [...] the event handler is exposed through a name, which is a string that always starts with "on" and is followed by the name of the event for which the handler is intended. > https://html.spec.whatwg.org/multipage/webappapis.html#event-handler-attributes The `RTCIceTransport.onerror` attribute seems to be the only event handler attribute throughout the web platform whose name does not follow that convention. I'm wondering whether the mismatch was intended and whether the attribute could be renamed to `onicecandidateerror`. Please view or discuss this issue at https://github.com/w3c/webrtc-ice/issues/47 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 26 April 2024 13:46:44 UTC