Closed Bug 1724477 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 29930 - [mathml] Fix parsing of <mo> text content.

Categories

(Core :: MathML, task, P4)

task

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 29930 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/29930
Details from upstream follow.

b'Fr\xc3\xa9d\xc3\xa9ric Wang <fwang@igalia.com>' wrote:

[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>&#0x2211;\<!-- 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/3076234
WPT-Export-Revision: 149078c3b60298d769b6c346b6e01117073dc543

Component: web-platform-tests → MathML
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

FAIL: 1

Chrome

FAIL: 1

Safari

FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/mathml/presentation-markup/operators/mo-single-char-and-children.html: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0cc2fcd13377
[wpt PR 29930] - [mathml] Fix parsing of <mo> text content., a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.