Implemented some Qt DOM API functions in script space.