Skip to content

Rename onerror to onicecandidateerror? #47

Open
@tidoust

Description

@tidoust

I bumped into the definition of RTCIceTransport.onerror while analyzing event handler attributes and events that specs define (context in w3c/webref#1216).

The Web Platform Design Principles (implicitly) recommend to name event handler attributes after the event type. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions