Skip to content

Question on WebIDL #37710

@brettz9

Description

@brettz9

Hi,

In https://webidl.spec.whatwg.org/ , while I see reference to specific prescribed class strings on interface prototypes, I don't see any prescribed behavior for class strings on objects which implement an interface.

Do you know if that is up to the spec to specify in some manner? I'm specifically wondering whether CryptoKey objects, by their WebIDL implies a specific class string (presumably "CryptoKey", if so).

If this is not implied in WebIDL, why is it not (as it should be useful to have such a consistent means available for detection in userland)? Should it not at least be encouraged somewhere for objects implementing an interface to define them?

I asked this at https://stackoverflow.com/questions/74950202/webidl-object-class-strings , but received no reply, so wondering if you might be able to address here given your WebIDL tests.

Thanks!

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