SVG textNode.getNumberOfChars reports 0 when it hasn't been attached to the document

RESOLVED FIXED

Status

()

defect
RESOLVED FIXED
7 years ago
6 years ago

People

(Reporter: jonnew, Unassigned)

Tracking

Trunk
x86_64
Windows 7
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.75 Safari/537.1

Steps to reproduce:

1. Dynamically create an SVG node, an SVG text node, and a text element
2. Add the text "hello" to the text element, and append the text element to the text node, and the text node to the svg node.
3. On the text node call getNumberOfChars()


Actual results:

The method returns 0.


Expected results:

The method should return 5, the number of characters in "hello"
Component: Untriaged → SVG
Product: Firefox → Core
Version: 17 Branch → Trunk
Attachment #651223 - Attachment mime type: text/plain → text/html
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Depends on: svgtext
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.