Skip to content

Introduce a new WebIDL attribute named Reflect #5881

Open

Description

@nox

This attribute should make CodegenRust.py generate methods for any interface property that reflect an element attribute. This enforces that these methods will never change the state of the element directly instead of through its virtual methods and reduces boilerplate code a lot. To still be able to call them, the generated methods should go in a Reflections trait in the Bindings module.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/bindings

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions