Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename onerror to onicecandidateerror? #47

Open
tidoust opened this issue Apr 26, 2024 · 0 comments
Open

Rename onerror to onicecandidateerror? #47

tidoust opened this issue Apr 26, 2024 · 0 comments

Comments

@tidoust
Copy link
Member

tidoust commented Apr 26, 2024

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.

tidoust added a commit to w3c/strudy that referenced this issue Sep 11, 2024
This duplicates the calls to Strudy in the analysis job: first pass analyzes
the raw crawl results, second pass runs further analyses (not the same ones!)
on the curated crawl results. IDL analyses are now done as part of the second
pass.

The rationale is that some IDL anomalies may be indirectly triggered by another
IDL hiccup that we already identified and reported while doing data curation in
Webref. This makes it at least theoretically possible to end up in a situation
where we detect an anomaly twice (from two different angles). It seems better
to run further IDL analyses on the curated branch instead.

This is particularly needed for the new `noEvent` anomaly, which would
otherwise report problems that our events patching already takes care of.

The `noEvent` anomaly will create two issues next time the job runs:
- one for `HTMLBodyElement.onorientationchange`, already covered in the spec:
  https://compat.spec.whatwg.org/#windoworientation-interface
- one for `RTCIceTransport.onerror`, already tracked in:
  w3c/webrtc-ice#47
dontcallmedom pushed a commit to w3c/strudy that referenced this issue Sep 11, 2024
This duplicates the calls to Strudy in the analysis job: first pass analyzes
the raw crawl results, second pass runs further analyses (not the same ones!)
on the curated crawl results. IDL analyses are now done as part of the second
pass.

The rationale is that some IDL anomalies may be indirectly triggered by another
IDL hiccup that we already identified and reported while doing data curation in
Webref. This makes it at least theoretically possible to end up in a situation
where we detect an anomaly twice (from two different angles). It seems better
to run further IDL analyses on the curated branch instead.

This is particularly needed for the new `noEvent` anomaly, which would
otherwise report problems that our events patching already takes care of.

The `noEvent` anomaly will create two issues next time the job runs:
- one for `HTMLBodyElement.onorientationchange`, already covered in the spec:
  https://compat.spec.whatwg.org/#windoworientation-interface
- one for `RTCIceTransport.onerror`, already tracked in:
  w3c/webrtc-ice#47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant