Opened 11 years ago

Closed 6 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:


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)

svgwebmovetoback.html (1.2 KB) - added by OldGuru 11 years ago.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by OldGuru

Attachment: svgwebmovetoback.html added

comment:1 Changed 11 years ago by Eugene Lazutkin

Milestone: tbd1.5.1
Status: newassigned

comment:2 Changed 11 years ago by Eugene Lazutkin


Bumping from non-existant 1.5.1 to 1.6.

comment:3 Changed 11 years ago by Eugene Lazutkin

Milestone: 1.6future

Shouldn't it be filed with SVGWEB?

comment:4 Changed 6 years ago by dylan

Milestone: future1.11
Resolution: wontfix
Status: assignedclosed
Note: See TracTickets for help on using tickets.