Implemented DOM operations