You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MathML 4Issues affecting the MathML 4 specificationMathML CoreIssues affecting the MathML Core specificationcompatibilityIssues affecting backward compatibilitycss / html5Issues related to CSS or HTML5 interoperability
I know that @kohlhase likes this element but I wonder if it is very useful in a modern web context where you can create your own JS effect. Maybe this should just be removed from MathML core and polyfill provided.
I don't think it should be deprecated in full mathml, we still need to support MathML in environments without JavaScript (Word Processors being a notable example with current MathML support) but I wouldn't have a problem with dropping it from core, presumably by the time you have specified its interaction with CSS and Javascript you have pretty much specified the required polyfill to go from a full mathml expression with maction, to a mathml core plus javascript polyfill equivalent.
we still need to support MathML in environments without JavaScript (Word Processors being a notable example with current MathML support)
That is interesting. I would like to learn more about this aspect of MathML. Which WP are you thinking of? Are you aware of any WPs that are actively maintained that use this feature?
Let me add my view (I agree that the current situation is problematic, and am open to any reasonable resolution)
I know that @kohlhase likes this element but I wonder if it is very useful in a modern web context where you can create your own JS effect.
Well I do (see below) and I don't (lots and lots of reasons, including that it is quite under-specified and looks like a solution from the early 2000s).
I mainly see maction as an attempt to make MathML interactive, which should be much more used.
<maction> provides a way to storing precomputed "alternative representations" in presentation MathML (the children) which can then be used in many ways (including JS). I agree that the semantics element could also be used instead for this aspect.
I think my preferred solution would be to keep maction in core but defined as to render the first child only, with the rest as if by css display:none
That way there is a hook for moving interaction between web platform and other implementations of mathml.
The full spec could make all actiontypes optional (already the case in mathml3) and can explicitly note that in an implementation of mathml core it is the responsibility of the page to implement any interaction via JavaScript.
probably that would mean deprecating the selection attribute and instead putting the default selection first.
MathML 4Issues affecting the MathML 4 specificationMathML CoreIssues affecting the MathML Core specificationcompatibilityIssues affecting backward compatibilitycss / html5Issues related to CSS or HTML5 interoperability
Activity
fred-wang commentedon Feb 22, 2019
For maction actiontype="input", this is related to @dani31415 's proposal in #12
Other actiontypes like toggle, tooltip or status line could be implemented with JS like what MathJax do, so I'm sure people could write polyfill.
Also note that maction actiontype="statusline" is a small security issue, since it known to be used to deceive people (e.g. to hide a "bad" URL).
davidcarlisle commentedon Feb 22, 2019
I don't think it should be deprecated in full mathml, we still need to support MathML in environments without JavaScript (Word Processors being a notable example with current MathML support) but I wouldn't have a problem with dropping it from core, presumably by the time you have specified its interaction with CSS and Javascript you have pretty much specified the required polyfill to go from a full mathml expression with maction, to a mathml core plus javascript polyfill equivalent.
physikerwelt commentedon Feb 22, 2019
That is interesting. I would like to learn more about this aspect of MathML. Which WP are you thinking of? Are you aware of any WPs that are actively maintained that use this feature?
physikerwelt commentedon Feb 25, 2019
See also #12
physikerwelt commentedon Feb 25, 2019
Link from Murray Sargent https://blogs.msdn.microsoft.com/murrays/2017/03/19/editing-math-using-mathml-for-speech/
kohlhase commentedon Mar 7, 2019
Let me add my view (I agree that the current situation is problematic, and am open to any reasonable resolution)
Well I do (see below) and I don't (lots and lots of reasons, including that it is quite under-specified and looks like a solution from the early 2000s).
I mainly see
mactionas an attempt to make MathML interactive, which should be much more used.<maction>provides a way to storing precomputed "alternative representations" in presentation MathML (the children) which can then be used in many ways (including JS). I agree that thesemanticselement could also be used instead for this aspect.davidcarlisle commentedon Mar 7, 2019
I think my preferred solution would be to keep maction in core but defined as to render the first child only, with the rest as if by css display:none
That way there is a hook for moving interaction between web platform and other implementations of mathml.
The full spec could make all actiontypes optional (already the case in mathml3) and can explicitly note that in an implementation of mathml core it is the responsibility of the page to implement any interaction via JavaScript.
probably that would mean deprecating the selection attribute and instead putting the default selection first.
kohlhase commentedon Mar 7, 2019
this is also what I would prefer.
fred-wang commentedon Mar 14, 2019
OK, that makes sense. Just to be more slightly more accurate the proposal would be to:
davidcarlisle commentedon Mar 14, 2019
Yes @fred-wang I think that is all core needs here, thanks.
fred-wang commentedon Jun 4, 2019
Resolved on 2019/06//03 as in #26 (comment)
Core spec has been updated: https://mathml-refresh.github.io/mathml-core/#enlivening
5 remaining items
Add tests to check that legacy maction/semantics elements are treated…
Add tests to check that legacy maction/semantics elements are treated…
fred-wang commentedon Sep 17, 2019
Tested by
https://w3c-test.org/mathml/presentation-markup/mrow/legacy-mrow-like-elements-001.html
https://w3c-test.org/mathml/presentation-markup/mrow/legacy-mrow-like-elements-002.html
so closing.
Bug 1581788 [wpt PR 19118] - Add tests to check that legacy maction/s…
Bug 1581788 [wpt PR 19118] - Add tests to check that legacy maction/s…
Bug 1581788 [wpt PR 19118] - Add tests to check that legacy maction/s…
Bug 1581788 [wpt PR 19118] - Add tests to check that legacy maction/s…
Bug 1581788 [wpt PR 19118] - Add tests to check that legacy maction/s…
Bug 1581788 [wpt PR 19118] - Add tests to check that legacy maction/s…