in reply to NOT_FOUND_ERR in insertAfter()
Change the "insert" line to :
and it works.$ele->parentNode->insertAfter($new_ele,$ele);
"insertAfter" is a method for a NODE, not a doc (DOM object).
If I understand it right, the "NOT_FOUND" error was raised because $ele is not a direct child of $doc.
My goal ... to kill off the slow brain cells that are holding me back from synergizing my knowledge of vertically integrated mobile platforms in local cloud-based content management system datafication.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: NOT_FOUND_ERR in insertAfter()
by boftx (Deacon) on Sep 25, 2013 at 05:25 UTC | |
by NetWallah (Canon) on Sep 25, 2013 at 05:34 UTC | |
by Anonymous Monk on Sep 25, 2013 at 05:59 UTC | |
by boftx (Deacon) on Sep 25, 2013 at 06:03 UTC |
In Section
Seekers of Perl Wisdom