Let's say I want to overwrite form.elementsfor all forms (current and future).
form.elements
This issue of polyfillingRadioNodeList can be resolved by intercepting all the elements formand manually drawing a custom getter for the property elementson them.
RadioNodeList
form
elements
Besides below, there are other ways to create (form) elements that I need to intercept
document.createElement
document.createElementNS
Node.importNode
Node.cloneNode
DOMImplementation.createDocument
Document.prototype.createElement
NS
A separate question, ignoring performance, shows what good reasons exist for not intercepting node creation?
, , , , , , .
- createElement on Element document , .
createElement
Element
document
, IE HTC, .
, , ( ).
EDIT:
, DOM Cross-Browser (, , , 4 ), .