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
"The definition of numbers is also not very accurate in the MathML
recommendation compared to HTML5. One has to check the RelaxNG schemas
and the predefined RelaxNG types to know the exact syntax. Again, it
think it would be best to rely on the HTML5 definitions. For example, <math><mspace width="1E1em" height="10em" mathbackground="red"/></math>
draws a red square in WebKit but Gecko says "1E1em" is invalid.
I agree that MathML should align it's number parsing with HTML5. Looking at the referenced HTML spec, it appears that attributes can only be pos/neg decimal integers/floating point numbers. They can't be hex or octal except in colors. In looking at the MathML spec itself, it doesn't seem to allow hex digits anywhere except in colors (search for "hexadecimal"), so it seems like they are in alignment in at least intent. The RelaxNG schema might be off.
I'm pretty sure that MathML 3 made an attempt to align its basic syntax parsing with HTML5. Of course, it might not have been perfect in doing so.
"fw: Numbers like "5." is allowed in MathML currently, but not in CSS. Can
we align? Resolved to align. Since the values are parsed by CSS, we should
follow the CSS spec (as opposed to HTML)"
Activity
NSoiffer commentedon Mar 4, 2019
I agree that MathML should align it's number parsing with HTML5. Looking at the referenced HTML spec, it appears that attributes can only be pos/neg decimal integers/floating point numbers. They can't be hex or octal except in colors. In looking at the MathML spec itself, it doesn't seem to allow hex digits anywhere except in colors (search for "hexadecimal"), so it seems like they are in alignment in at least intent. The RelaxNG schema might be off.
I'm pretty sure that MathML 3 made an attempt to align its basic syntax parsing with HTML5. Of course, it might not have been perfect in doing so.
fred-wang commentedon May 2, 2019
The definitions are given here ; I think it corresponds to the RelaxNG schema.
https://mathml-refresh.github.io/mathml/chapter2.html#id.2.1.5.1
In particular for "number":
Not that this does not allow values like
1.3139E2.I reopened this since we need to update the specs/relaxng schema and write WPT tests for this.
cc @bkardell
fred-wang commentedon May 16, 2019
See https://lists.w3.org/Archives/Public/public-mathml4/2019May/0006.html
I don't have the minutes from this week.
Keeping "need resolution" for now. I think we agreed someone should go over the list of number attributes and check carefully.
fred-wang commentedon May 20, 2019
"fw: Numbers like "5." is allowed in MathML currently, but not in CSS. Can
we align? Resolved to align. Since the values are parsed by CSS, we should
follow the CSS spec (as opposed to HTML)"
6 remaining items
[-]Align definition of numbers with HTML5[/-][+]Align definition of numbers with CSS[/+]Bug 1575596 - MathML Lengths: Do not accept numbers ending with a dot…
Bug 1575596 - MathML Lengths: Do not accept numbers ending with a dot…
Update MathML tests for lengths now that some numbers are invalid in …
fred-wang commentedon Sep 16, 2019
We have tests for that, so closing.
Bug 1567156 [wpt PR 17908] - Update MathML tests for lengths now that…
Bug 1575596 - MathML Lengths: Do not accept numbers ending with a dot…
Bug 1567156 [wpt PR 17908] - Update MathML tests for lengths now that…
Bug 1567156 [wpt PR 17908] - Update MathML tests for lengths now that…
Bug 1575596 - MathML Lengths: Do not accept numbers ending with a dot…
Bug 1575596 - MathML Lengths: Do not accept numbers ending with a dot…
Bug 1567156 [wpt PR 17908] - Update MathML tests for lengths now that…
Bug 1575596 - MathML Lengths: Do not accept numbers ending with a dot…