Opened 9 years ago

Closed 6 years ago

#16662 closed defect (patchwelcome)

gfx svg getTextWidth fails on IE9

Reported by: Mark DeMichele Owned by: Eugene Lazutkin
Priority: undecided Milestone: 1.13
Component: DojoX GFX Version: 1.8.3
Keywords: Cc:
Blocked By: Blocking:


I'm using IE9 to call getTextWidth while using the svg renderer.

This line throws an exception

_text = _measurementNode.firstChild.nodeValue;

Turns out that firstChild is null. A few lines above that we clone rawNode like this.

_measurementNode = rawNode.cloneNode(true);

Apparently, the cloned node has not children. It's really odd.

Since all this extra code looks like it's a work around for a bug in either IE or FF, maybe the code should be set up so that in IE, it will just call getBBox directly from rawNode and not the cloned node.

I tried this and it seems to work ok.

Change History (1)

comment:1 Changed 6 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Given that no one has shown interest in creating a patch in the past 2+ years, I'm closing this as patchwelcome.

Note: See TracTickets for help on using tickets.