Proxy HTMLElement
问题 I wanted to check what does a library do with video element I pass to it so I naively did this: cosnt videoElement = new Proxy(document.querySelector('video'), { get(target, key) { const name = typeof key === 'symbol'? key.toString() : key; console.info(`Accessing video.${ name }`) return target[key]; } }); But I got an error: TypeError: Failed to execute 'contains' on 'Node': parameter 1 is not of type 'Node'. Is there a way to make this work? EDIT: I have gained some knowledge, with it I