Bug 63118
Summary: | getComputedTextLength doesn't work for tspan element | ||
---|---|---|---|
Product: | WebKit | Reporter: | Egor Nepomnyaschih <enepomnyaschih> |
Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WORKSFORME | ||
Severity: | Normal | CC: | enepomnyaschih, krit, zimmermann |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | Windows XP | ||
URL: | http://www.carto.net/neumann/webkitsvgbugs/text-dom-01-f.svg |
Egor Nepomnyaschih
1) Visit http://www.carto.net/neumann/webkitsvgbugs/text-dom-01-f.svg in Safari 5.0.5
2) Run command javascript:alert(document.getElementById("testText").childNodes[1].getComputedTextLength())
Expected result: 11
Actual result: 0
Works properly in Chrome 12 and Firefox 4.
Related topics: https://bugs.webkit.org/show_bug.cgi?id=12290 and https://bugs.webkit.org/show_bug.cgi?id=15622 (they are about "text" element, not "tspan").
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Dirk Schulze
Please check tests in a nightly builds before opening a bug report. Also, if it works in Chrome it is very likely that it is fixed in trunk. That is the case for your bug. Thanks.