Opened 8 years ago
Closed 5 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: |
Description
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 5 years ago by
Milestone: | tbd → 1.12 |
---|---|
Resolution: | → patchwelcome |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Given that no one has shown interest in creating a patch in the past 2+ years, I'm closing this as patchwelcome.