Opened 10 years ago
Closed 5 years ago
#11577 closed defect (wontfix)
SVGWEB: moveToBack () throws an error if object has no sibling
Reported by: | OldGuru | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | 1.11 |
Component: | DojoX GFX | Version: | 1.5 |
Keywords: | dojox, gfx, svgweb, moveToBack | Cc: | |
Blocked By: | Blocking: |
Description
If an object is the only object in a Group, calling its moveToBack() method throws error "Invalid child passed to insertBefore". Sometimes, instead of issuing the error, script becomes non-responsive and the drawn shape is not rendered. (test case is attached; the paths to SVGWEB and dojo.js should be adjusted.)
The error occurs in the following snippet in SVGWEB: get an index position for where refChild is
var findResults = this._findChild(refChild); #### findResults is null although refChild is an object #### if (findResults === null) {
TODO: Throw the correct DOM error instead
throw new Error('Invalid child passed to insertBefore');
}
Attachments (1)
Change History (5)
Changed 10 years ago by
Attachment: | svgwebmovetoback.html added |
---|
comment:1 Changed 10 years ago by
Milestone: | tbd → 1.5.1 |
---|---|
Status: | new → assigned |
comment:2 Changed 10 years ago by
Milestone: | 1.5.1 → 1.6 |
---|
comment:4 Changed 5 years ago by
Milestone: | future → 1.11 |
---|---|
Resolution: | → wontfix |
Status: | assigned → closed |
Bumping from non-existant 1.5.1 to 1.6.