I am unable to search for nodes with a specific name with any other context than document.
is there a cross browser way to search getElementsByName() with a context other than
document.getElementsByName()?
getElementsByName is a property of the document only, in all browsers. You cannot add it to the element object prototype in all browsers, and even if you could it would be less efficient than the native implementation. You can do whatever filtering you need on the nodelist returned from document.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With