-
Notifications
You must be signed in to change notification settings - Fork 20
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
Clarify MathML integration points #101
Comments
cc @annevk @sideshowbarker @bkardell @rwlbuis I'd like to better align all these definitions (at least Core and WHATWG) and not refer to the validator schema. Some things to consider:
|
I've improved a bit the description of HTML parsing: My proposal is the following:
It seems the only controversial change is whether to allow phrasing content in mi, mo, mn, ms too. Some arguments:
Also this is perhaps a separate discussion, but we might want to allow foreign content in mrow that accept phrasing content (or introduce a foreignObject-like MathML element). Rationale:
|
@sideshowbarker I think this is a bit a separate discussion, but yes it would make sense to have the HTML checker verify validations against the stricter MathML Core spec (perhaps as a default option). As I understand, Apple's concern is about the fact that a stricter MathML could break backward compatibility, so we are implementing these restrictions under a "MathML Core" flag. But in general there should be no problem with improving or extending MathML support. Note that in this case, my proposal is actually to make things more relaxed (see #101 (comment)). |
Personally I'd be in favour of this. The original description of nesting in mathml suggested html be allowed in all token elements but (as far as I recall the conversations) when the actual merge got specified in whatwg/html5 there was a feeling to be cautious at first and restrict the integration points so just allow mtext (or at least only declare that case as valid input) but if there are no real implementation hurdles here then treating all token elements in the same way (and declaring them valid author input) if they have html would be better. |
Just want to be clear about the proposal... Is the proposal to all foreign content at the character level or token level. That is, is this legal: If not, then this isn't a direct replacement for Personally, I like the idea of a new foreign object element, but I think that ship has sailed. |
Yes AFAIK that's currently legal per the HTML spec, so the proposal is to accept it in core too (rather than following the validator) |
…on the particular MathML cases in a note. w3c/mathml#101 w3c/mathml#102
We agree to follow what HTML allows during today's meeting. |
This has the 'need-polyfill' label. What needs to be polyfilled? |
I think this can be removed. |
I'm also removing need tests as we already have some and most are in HTML actually. So we can close this. |
The MathML Core spec defines the following integration points:
https://mathml-refresh.github.io/mathml-core/#othertech
In particular, it relies on the validator schema:
https://github.com/validator/validator/blob/master/schema/.drivers/html5-svg-mathml.rnc#L9
https://github.com/validator/validator/blob/master/schema/.drivers/html5-svg-mathml.rnc#L11
https://github.com/validator/validator/blob/master/schema/.drivers/html5-svg-mathml.rnc#L18
https://github.com/validator/validator/blob/master/schema/.drivers/html5-svg-mathml.rnc#L29
By default MathML4's RelaxNG schema does not allow foreign content in token elements. However, there are suggestions to allow it in Chapter 6:
https://mathml-refresh.github.io/mathml/chapter6.html#world-int-combine-other
Finally, the WHATWG HTML5 spec describes integration points for mi, mo, mn, ms, and mtext, annotation-xml and foreignObject:
https://html.spec.whatwg.org/#mathml
https://html.spec.whatwg.org/#svg-0
MathML WPT Tests:
https://github.com/web-platform-tests/wpt/tree/master/mathml/relations/html5-tree
The text was updated successfully, but these errors were encountered: