querySelector and querySelectorAll for HTML5DOMElement
querySelector and querySelectorAll for HTML5DOMElement

getElementById is not supported by DOMNode. Thus, wherever it is used in querySelectorAll method, node's ownerDocument is accessed first. This way, querySelector and querySelectorAll methods are added to this class.
ivopetkov/html5-dom-document-php