The default bug view has changed. See this FAQ.

getComputedTextLength() ingnores space as last character

RESOLVED DUPLICATE of bug 319786

Status

()

Core
SVG
RESOLVED DUPLICATE of bug 319786
11 years ago
3 years ago

People

(Reporter: Holger Will, Unassigned)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

11 years ago
if the last character of a text is a space character, it gets ignored by getCoputedTextLength()
(Reporter)

Comment 1

11 years ago
Created attachment 231431 [details]
a simple SVG textbox.

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.

Comment 2

11 years ago
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
Last Resolved: 11 years ago
Resolution: --- → DUPLICATE
(Reporter)

Comment 3

11 years ago
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 ?
(Reporter)

Comment 4

11 years ago
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 !

Updated

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