-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mathml] Fix parsing of <mo> text content.
Currently MathMLOperatorElement::ParseOperatorContent() relies on Node::HasOneTextChild() to check and parse the text content of an <mo> element. This does not work well if the element contains a comment (e.g. <mo>�x2211;<!-- sum --></mo>) or was constructed dynamically by appending two characters (e.g. <mo>==</mo>). This CL fixes that issue by letting ParseOperatorContent() check the node children directly. Bug: 6606 Change-Id: I5642f2cef254ee0e005b4a0b7e45624a8066e2fe Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3076234 Reviewed-by: Mason Freed <[email protected]> Commit-Queue: Frédéric Wang <[email protected]> Cr-Commit-Position: refs/heads/master@{#909399}
- Loading branch information
1 parent
8558f84
commit 0d1609c
Showing
2 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters