Space is incorrectly ignored when adding text to <svg:text>

RESOLVED FIXED in mozilla12

Status

()

Core
SVG
RESOLVED FIXED
6 years ago
5 years ago

People

(Reporter: Jesse Ruderman, Assigned: Robert Longson)

Tracking

(Blocks: 1 bug)

Trunk
mozilla12
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

6 years ago
Created attachment 588332 [details]
testcase (clicking should have no effect)
Confirmed. Same behavior at least as far back as Firefox 3.5.16, so not a regression, at least not a recent one.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20101130 Firefox/3.5.16
OS: Mac OS X → All
Hardware: x86_64 → All
(Assignee)

Updated

6 years ago
Assignee: nobody → longsonr
(Assignee)

Comment 2

6 years ago
Created attachment 588486 [details] [diff] [review]
patch
Attachment #588486 - Flags: review?(dholbert)
Comment on attachment 588486 [details] [diff] [review]
patch

Looks great!

One suggestion -- a brief comment would be helpful above or inside SetWhitespaceHandling(), just to be clear up-front what it's trying to do.

Something like
> // Trim whitespace up to the first non-whitespace frame
> // and after the last non-whitespace frame.

r=me with that
Attachment #588486 - Flags: review?(dholbert) → review+
(Assignee)

Comment 4

6 years ago
pushed https://hg.mozilla.org/integration/mozilla-inbound/rev/256c57537507
Flags: in-testsuite+
Target Milestone: --- → mozilla12
https://hg.mozilla.org/mozilla-central/rev/256c57537507
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
(Reporter)

Updated

5 years ago
Blocks: 373610
You need to log in before you can comment on or make changes to this bug.