This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
http://url.spec.whatwg.org/#interface-urlutils "The protocol attribute must run these steps:" I assume that is missing an "on getting" or some such. Same applies to the others.
It's kind of intentional and this is by far not the only place this criticism would apply. Maybe it's time to change this though.
Domenic, are you planning on encouraging a style for attribute/method definitions down the road? I'm tempted to hold of fixing this until IDL is revised to be more clear about data properties vs getters/setters, etc.
That seems like a good idea, although I agree with Hixie that a quick clarification would be good in the meantime. I am also not sure how important encouraging such stylistic clarifications are? I mean, yes, it would be nice if everyone followed a template for "on getting, run these steps"; "on setting, run these steps", but you can pretty much understand the existing specs already. (I think my pipe dream would be that IDL moves away from `attribute x` vs. `readonly attribute x`, instead declaring `get x` and/or `set x` separately, and that the description for `get x()` contains the getter algorithm, and for `set x(value)` contains the setter algorithm. But that's an even bigger ask, again for not too much added value.)
Yeah, I think that pipe dream is how I'd like to have it too. There's too much disconnect at the moment which is confusing to developers.
https://github.com/whatwg/url/commit/c11b36de8637abc9107f33ebb31abea176533846