-
Notifications
You must be signed in to change notification settings - Fork 19
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
Align definition of space characters with HTML5 #21
Comments
This is for MathML 4 but I think we eventually want to move the space definition to MathML Core. |
If using an html parser we should match html for whitespace, also I think we could probably always include U+000C in any mathml-specified white space handling for whitespace collapse etc, however any change in wording here needs to accommodate xml parsing, we can't can't change xml parse rules so for example
is going to parse as text content in an mfrac if using an xml parser, and so be invalid. |
What what it's worth... according to this whatwg doc, "Form feed characters are discouraged in XML 1.1". So saying don't use U+000C shouldn't be a big deal. |
Resolved in 29/4/19 meeting to align with HTML5. |
cc @bkardell I reopened this since we to update the specs and to write WPT tests. I expect browsers already treat spaces as HTML5. |
Resolution:
|
CSS definition is "A newline, U+0009 CHARACTER TABULATION, or U+0020 SPACE. " And newline is So it seems CSS agrees with HTML, if we take preprocessing into account. |
I believe in MathML Core this is only used for attribute trimming ( w3c/mathml-core#165 ), menclose@notation ( #104, #105 ) and maybe text nodes ( #28 ). So I think this is already covered by other issues and can be closed. |
"In MathML, white spaces are understood as XML spaces (U+0020), tabs
(U+0009), line feeds (U+000A), and carriage returns (U+000D) while HTML5
also includes "form feed" (U+000C).
originally reported at https://lists.w3.org/Archives/Public/www-math/2016Aug/0000.html
cc @rwlbuis
The text was updated successfully, but these errors were encountered: