Closed Bug 782148 Opened 12 years ago Closed 11 years ago

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

Categories

(Core :: SVG, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jonnew, Unassigned)

References

Details

Attachments

(1 file)

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: 11 years ago
Depends on: svgtext
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.