Skip to content

Change enum syntax to reflect real constraints #1545

@martinthomson

Description

@martinthomson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions