- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Mon, 14 Apr 2025 19:02:34 +0000
- To: public-css-archive@w3.org
Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts: == [cssom] `CSSStyleSheetInit` can't default a `DOMString` to null == https://drafts.csswg.org/cssom/#dictdef-cssstylesheetinit ``` dictionary CSSStyleSheetInit { DOMString baseURL = null; (MediaList or DOMString) media = ""; boolean disabled = false; }; ``` But from https://webidl.spec.whatwg.org/#idl-DOMString > **null** is not a value of type [`DOMString`](https://webidl.spec.whatwg.org/#idl-DOMString). To allow **null**, a [nullable](https://webidl.spec.whatwg.org/#dfn-nullable-type) [`DOMString`](https://webidl.spec.whatwg.org/#idl-DOMString), written as `DOMString?` in IDL, needs to be used. So the `= null` doesn't make sense. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12078 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 14 April 2025 19:02:35 UTC