Re: [heycam/webidl] Enums that does not throw? (#893)

> Is there any other specification that does the same thing?

I think this is what pretty much every attribute reflecting an “enumerated” HTML content attribute does. They Web IDL attributes are typed as DOMString, and there are additional rules for their behavior defined in HTML, though many of these cases are a bit more complex (the validity of tokens is potentially dynamic vis a vis other state, if I understand right):

- [§ 2.4.3 Keywords and enumerated attributes](https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#keywords-and-enumerated-attributes)
- [§ 2.7.1 Reflecting content attributes in IDL attributes](https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#reflecting-content-attributes-in-idl-attributes)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/893#issuecomment-643658895

Received on Saturday, 13 June 2020 18:15:55 UTC