Consider adding a URLString type #1454
Labels
addition/proposal
New features or enhancements
needs implementer interest
Moving the issue forward requires implementers to express interest
What problem are you trying to solve?
While investigating w3ctag/design-principles#303, @ylafon and I wanted to search for all the WebIDL attributes that take URLs across the platform. This is difficult because URL parameters are passed as
USVString
(or sometimesDOMString
), which of course is also used for many other purposes.What solutions exist today?
No response
How would you solve it?
I see two alternatives:
typedef USVString URLString;
in https://webidl.spec.whatwg.org/#common, and encourage fields that want URLs to take that type alias as slightly better documentation. The documentation improvement is fairly small for fields that are already namedurl
orfooURL
.I don't have a strong opinion on the naming bikeshed.
Anything else?
No response
The text was updated successfully, but these errors were encountered: