Add support for shadow DOM.