Skip to content

MathMLElement doesn't reflect attributes for more specific elements #159

Open
@Jamesernator

Description

@Jamesernator

Generally in HTML when an element has attributes other than the global attributes it has a more specific interface allowing those attributes to be reflected, for example <link> has HTMLLinkElement, or h1-h6 have HTMLHeadingElement.

Currently MathML core only specifies a single MathMLElement which can only reflect mathml global attributes, despite there existing multiple elements with additional attributes:

  • <mo>
  • <mspace>
  • <mfrac>
  • <mpadded>
  • <munderover>
  • <mtd>

I would propose that those elements should get their own interfaces with the appropriate attribute reflection.

As an example for <mo> this would allow setting el.form = "infix" rather than using .setAttribute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions