             ProcessExternalResources : ['script']#, 'frame', 'iframe'] # TODO:
             MutationEvents : '2.0'
             QuerySelector : false
-        @wrapDOMMethods(@jsdom.dom.level3.html)
+        toWrap = @createWrappedObjectList(@jsdom.dom.level3.html)
+        @wrapDOM(toWrap)
         @addDefaultHandlers(@jsdom.dom.level3.core)
         @setLanguageProcessor(@jsdom.dom.level3.core)
+        @on 'DOMPropertyUpdate', (update) ->
+            console.log "DOMPropertyUpdate"
+        @on 'DOMUpdate', (update) ->
+            console.log "DOMUpdate"
 
     addDefaultHandlers : (core) ->
         browser = @browser

        argStr = argStr.replace(/\s$/, '')
        console.log(parentName + '.' + method + '(' + argStr + ')')

module.exports = JSDOMWrapper

                    console.log "Script succeeded"
                catch e
                    console.log "Script failed: #{e}"
                    console.log e
                    console.log e.stack

    wrapDOM : (toWrap) ->
        isDOMNode = (node) ->
            (typeof node.ELEMENT_NODE == 'number') &&
            (node.ELEMENT_NODE == 1)               &&
