Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dani31415 opened this issue Feb 15, 2019 · 7 comments
Labels
css / html5 Issues related to CSS or HTML5 interoperability enhancement New feature or request MathML-Next Ideas for future releases

Comments

@dani31415
Copy link

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.

@NSoiffer
Copy link
Contributor

NSoiffer commented Feb 16, 2019 via email

@fred-wang
Copy link

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.

@dani31415
Copy link
Author

dani31415 commented Feb 19, 2019

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?

@davidcarlisle
Copy link
Collaborator

davidcarlisle commented Feb 19, 2019 via email

@davidcarlisle davidcarlisle transferred this issue from w3c/mathml-core Feb 20, 2019
@davidcarlisle davidcarlisle added enhancement New feature or request MathML Core Issues affecting the MathML Core specification labels Feb 20, 2019
@fred-wang
Copy link

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

@fred-wang fred-wang added MathML 4 Issues affecting the MathML 4 specification and removed MathML Core Issues affecting the MathML Core specification labels Feb 22, 2019
@fred-wang fred-wang added the css / html5 Issues related to CSS or HTML5 interoperability label Feb 22, 2019
@fred-wang
Copy link

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).

@fred-wang
Copy link

fred-wang commented Jun 17, 2019

@bkardell said it's likely https://w3c.github.io/editing

@davidcarlisle davidcarlisle added MathML-Next Ideas for future releases and removed MathML 4 Issues affecting the MathML 4 specification labels Jun 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css / html5 Issues related to CSS or HTML5 interoperability enhancement New feature or request MathML-Next Ideas for future releases
Projects
None yet
Development

No branches or pull requests

4 participants