-
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
Synchronization with WHATWG HTML5 spec #145
Comments
You will basically have to define somewhere what the layout model for MathML is and that will have to deal with all possible structures (not just those that are valid). Firefox's behavior of saying something to the extent of "invalid markup" should be a non-goal for this. Doing what SVG does (not rendering the subtree) seems reasonable. |
I'm still thinking about the harder issues, but for the simpler ones at the end:
|
I think the idea is to show an example of MathML in HTML5, which does not require xmlns.
Again, I still have no idea what is meant by the vague statement "a way to export any MathML fragment as an XML namespace-well-formed XML fragment". It there anything like that implemented in WebKit and Gecko? The DOM inspector does not seem to do that and view source was removed in https://bugzilla.mozilla.org/show_bug.cgi?id=1365626 ; I don't think HTML5/MathML Core should specify that, it's more a feature that can be implemented as a browser add-on in my opinion. cf the discussion with view source. |
These were rather specific for something that HTML does not specify generally. And also resulted in confusion: w3c/mathml#145.
@fred-wang it's a tooling suggestion. Anyway, I've suggested removing that in whatwg/html#4962. Is that okay with you all? |
@annevk Thanks Anne. Well I guess we haven't really discussed any of the item during a MathML CG meeting so although I'm personally in favor of removing this suggestion I think we should wait that we have consensus on this before merging the change. |
This seems reasonable to me. @davidcarlisle commented as much too on @annevk's link |
These were rather specific for something that HTML does not specify generally. And also resulted in confusion: w3c/mathml#145.
These were rather specific for something that HTML does not specify generally. And also resulted in confusion: w3c/mathml#145.
mglyph and malignmark are mentioned in the HTML5 specifications: https://html.spec.whatwg.org/multipage/parsing.html#tree-construction However, they have never been implemented in browsers and are currently not mentioned in https://mathml-refresh.github.io/mathml-core/#dfn-mathml-core-elements. See also #25 and #181 The ms element is also mentioned in several places but in #120 we decided to keep it in MathML Core and make it behave like an mn. @MathML CG: Can we reach a final decision on #25? Should we then propose the WHATWG to remove the special cases or mglyph and malignmark? Alternatively, we can keep them in MathML Core but make them behave like an mrow. |
Discussed at Aug 17 meeting. |
AFAIK, the core spec never mentioned mglyph/maligngroup/malignmark and so they are currently treated as unknown. No change needed. |
Closing as there does not appear to be anything left to resolve |
cc @bkardell @rwlbuis @emilio @bfgeek @annevk
HTML relationship is defined described here in the MathML Core spec: https://mathml-refresh.github.io/mathml-core/#html-and-svg
MathML relationship is described here in HTML5: https://html.spec.whatwg.org/#mathml
I'm not sure what should happen when a child is "invalid" i.e. the content model of an element is not expected by its parent. For MathML, I think for example WebKit does not create any layout node fro children of token elements that are not HTML contain phrasing content. Probably this constraint is only for validators and the rendering engine should just ignore it (Maybe create an anonymous wrapper if necessary)?
<math>text</math>
is visible in Gecko but WebKit and Igalia's Chromium don't create any text layout text node. I guess we again just want to allow such a text inside math (Maybe wrapped in an anonymous mtext node)? In any case, it seems something that has to be specified in MathML Core, not in HTML5, so we should ask the WHATWG to remove it.@davidcarlisle mentioned it in https://github.com/mathml-refresh/mathml/issues/15#issuecomment-469405242 ; the conclusion from w3c/mathml-core#136 is that we don't want this constraint. So I guess we should ask the WHATWG to remove it.
I'm not sure what is expected from this paragraph? I think people interested in that should probably write WebExtensions to export / XML-serialize MathML content rather than having a vague suggestion in the HTML5 spec? (See similar discussion about the "mathml view source" in https://groups.google.com/forum/#!topic/mozilla.dev.tech.mathml/S0CdPUJuQnY)
I think we should ask the WHATWG to refer to at least MathML Core.
nit: I think the form attribute is optional here and invisible operators should be written as
&#XXXX;
instead as that's otherwise confusing.The text was updated successfully, but these errors were encountered: