Skip to content

Add contenteditable to the list of attributes shared by all MathML elements #12

Open

Description

@dani31415

Since contenteditable (HTML spec) is a valid attribute for any HTML element, it make sense to add it to the list of attributes shared by all MathML elements (MathML spec).

I do not assume any specific behavior for the UA when the contenteditable is present. The only requirement is that the attribute be valid and available in the DOM. From this point of view, this has a null impact on any implementation of MathML. For example, the current implementation of MathML on Firefox allows a clumsy edition of formulas when contenteditable is inherited as true.

The attribute contenteditable can be used a as convenient way to express that some parts of a formula are (or are not) editable. This is an HTML5 friendly way to allow blanks inside a Math formula (for example, it is easy to imagine a fill-the-blank math questionnaire), respect to an alternative solution based on an maction.

Activity

  1. NSoiffer commented on Feb 16, 2019

    @NSoiffer
    Contributor
  2. fred-wang commented on Feb 19, 2019

    @fred-wang

    I believe this kind of extension with vague implementation requirement should go to the bigger MathML 4 spec https://github.com/mathml-refresh/mathml , not the MathML core spec.

  3. dani31415 commented on Feb 19, 2019

    @dani31415
    Author

    The issue does not require implementation. The vagueness does not came from the MathML implementation but from the browser itself.

    You can enable contenteditable currently in Firefox and affects also MathML Whether you want it or not, contenteditable is there and inherited from any parent that sets it.

    That the issue should be part of MathML 4, that's probably true. Do you know whether it is possible to move issues in github?

  4. davidcarlisle commented on Feb 19, 2019

    @davidcarlisle
    Collaborator
  5. added
    enhancement
    MathML Core
    on Feb 20, 2019
  6. fred-wang commented on Feb 20, 2019

    @fred-wang

    @davidcarlisle please remove the "core" tag for now.

  7. added
    MathML 4
    css / html5
    and removed
    MathML Core
    on Feb 22, 2019
  8. fred-wang commented on Jun 13, 2019

    @fred-wang

    cc @bkardell @rwlbuis

    Content editable is in the IDL https://html.spec.whatwg.org/multipage/interaction.html#elementcontenteditable so this relates a bit to w3c/mathml-core#129

    The native HTML editing features of browsers is not really actively developed and has many interoperability issues. So it would be annoying to me to introduce MathML editing that will likely to have the same problem, be more complex and even less supported.

    However, @javifernandez mentioned to me some weeks ago that there is a spec to allow web developers to override the editing commands (delete, insert, etc) and implement their own in Javascript. So it makes sense for me to specify/implement a default/trivial/interoperable behavior (e.g. ignoring all editing commands) and let web developers implement their custom math editing in Javascript.

    If we are interested in interoperability of non-native features, people from the CG could also specify all the DOM transforms for MathML editing outside the core spec (e.g. a dedicated MathML editing module).

  9. fred-wang commented on Jun 17, 2019

    @fred-wang
  10. added
    MathML-Next
    and removed
    MathML 4
    on Jun 26, 2022
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

    MathML-Nextcss / html5enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions