Closed Bug 538965 Opened 15 years ago Closed 14 years ago

MathML mfenced: whitespaces in open/close attributes are not collapsed

Categories

(Core :: MathML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b8

People

(Reporter: fredw, Assigned: Ms2ger)

References

Details

(Whiteboard: [good first bug])

Attachments

(3 files, 2 obsolete files)

Attached file testcase
The MathML REC says: "The "opening-fence" and "closing-fence" are arbitrary strings. (Since they are used as the content of mo elements, any whitespace they contain will be trimmed and collapsed as described in Section 2.4.6 Collapsing Whitespace in Input.) " This is not currently the case (see attachment).
If someone wants to work on this bug, I guess nsAutoString::CompressWhitespace should do the job: https://developer.mozilla.org/En/NsAutoString#CompressWhitespace Also, a reftest layout/reftests/mathml/mfenced-2* should be add (see also the related bugs: bug 553918 and bug 537916)
Some preparatory cleanup: now that new is infallible, nsMathMLmfencedFrame::CreateFencesAndSeparators can't fail.
Assignee: nobody → Ms2ger
Status: NEW → ASSIGNED
Attachment #466021 - Flags: review?(karlt)
Attachment #466022 - Flags: review?(karlt)
Attachment #466021 - Flags: review?(karlt) → review+
Blocks: 553918
Comment on attachment 466022 [details] [diff] [review] Patch b: Compress whitespace (v1) Great, thanks!
Attachment #466022 - Flags: review?(karlt) → review+
Attachment #466021 - Flags: approval2.0?
Comment on attachment 466022 [details] [diff] [review] Patch b: Compress whitespace (v1) Requesting approval for a simple correctness fix, with plenty of reftests.
Attachment #466022 - Flags: approval2.0?
Attachment #466021 - Flags: approval2.0? → approval2.0+
Attachment #466022 - Flags: approval2.0? → approval2.0+
Attachment #466021 - Attachment is obsolete: true
Attachment #466022 - Attachment is obsolete: true
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: