[whatwg/webidl] Change enum syntax to reflect real constraints (Issue #1545)

martinthomson created an issue (whatwg/webidl#1545)

### What is the issue with the Web IDL Standard?

@marcoscaceres noted that there are constraints on implementations that mean that enums can't contain certain characters.  For instance, "." caused problems in WebKit because the string is converted to a C++ constant name.  I imagine that "foo" and "FOO" together in the same enum might also lead to bad outcomes, as would "foo-bar" and "foo_bar".

This probably hasn't caused a problem so far because people do sensible things. Task here is to work out what the real constraints are and document them.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1545
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/1545@github.com>

Received on Tuesday, 25 November 2025 04:12:51 UTC