w3c / w3c/mathml

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

Open
#12 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css / html5 enhancement MathML-Next
Dominant language
HTML
Stars
82
Forks
23
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the MathML shared-attributes section linked in the issue and compare it with the HTML contenteditable definition. Locate the corresponding shared-attribute list in the MathML4 editors draft, add contenteditable there, and confirm the attribute is listed as valid and available in the DOM.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
Half a day
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.