Re: [csswg-drafts] [cssom] location should be a URL (#9316)

The "location" state item is defined as:
> Specified when created. The [absolute-URL string](https://url.spec.whatwg.org/#absolute-url-string) of the first request of the [CSS style sheet](https://drafts.csswg.org/cssom-1/#css-style-sheet) or null if the CSS style sheet was embedded. Does not change during the lifetime of the CSS style sheet.

This includes a link to the URL spec.

Is this more an issue of how it's represented programmatically than definitionally?

[The `StyleSheet` Interface](https://drafts.csswg.org/cssom-1/#the-stylesheet-interface) represents `href` as `USVString?`.

The spec defines [serialize a URL](https://drafts.csswg.org/cssom-1/#serialize-a-url) and also invokes URL's [URL serializer](https://url.spec.whatwg.org/#concept-url-serializer) for `location` in multiple places.

-- 
GitHub Notification of comment by GPHemsley
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9316#issuecomment-3791068758 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 23 January 2026 16:22:47 UTC