dom/element: improve #inner_dom and add specs