Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mathml] Bad automatic determination of form due to non-element nodes
Currently, Blink does not implement complete spec rules for determining the form of an <mo> element [1]. It just checks whether there are a nodes before or after the <mo> to calculate whether the form is prefix, infix or postfix. Once we support embellished operators [2], this will require a bigger code refactoring. Meanwhile, this CL fixes the common case where the <mo> has non-element nodes before or after it that must be ignored for the calculation of the form. This is visible on test #24 from Mozilla's MathML test [3] where the prefix/postfix form of "|" are stretchy but the non-stretchy infix form is used because of whitespace text nodes. Bug: 6606, 1121113, 1124301 [1] https://bugs.chromium.org/p/chromium/issues/detail?id=1121113 [2] https://bugs.chromium.org/p/chromium/issues/detail?id=1124298 [3] https://fred-wang.github.io/MathFonts/mozilla_mathml_test/ Change-Id: I42ff3b821d2f2da201b1ff4a4612a8d5756486a8
- Loading branch information