html <-- $root '-- body +-- h2 | <-- ($img used to be here but not anymore) +-- img '-- img a <-- $new_parent '-- img <-- $img #### html <-- $root '-- body +-- h2 +-- a <-- $new_parent ($img used to be here but not anymore) +-- img '-- img img <-- $img #### html <-- $root '-- body +-- h2 +-- a <-- $new_parent | '-- img <-- $img +-- img '-- img