Closed Bug 346694 Opened 18 years ago Closed 18 years ago

getComputedTextLength() ingnores space as last character

Categories

(Core :: SVG, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 319786

People

(Reporter: holger, Unassigned)

References

Details

Attachments

(1 file)

if the last character of a text is a space character, it gets ignored by getCoputedTextLength()
Attached file a simple SVG textbox. (deleted) —
open the file and click in the textbox, then enter a space followed by any character, see what happens with the text cursor while doing so.
Actually we just don't handle xml:space="preserve" so terminal spaces are compressed to nothing. *** This bug has been marked as a duplicate of 319786 ***
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
no, its not the xml:space bug, as you can see if you enter one space, its still part of the string, if you enter one character after the space, the curser jumps two character forward, and the space is there, i think xml:space is just for collapsing or not collapsing multible spaces to just one space. its not general string normalization. the xml:space is another bug with this textbox, but you can delete it from the file and the bug stays the same. do you mind if i reopen the bug ?
oh, forget what i just posted,i just read up on xml:space , you are in fact right, this is the same as the xml:space bug, sorry !
Blocks: 934525
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: