The methods querySelector(), querySelectorAll(), getElementsByTagName(), and getElementsByClassName generally accessed about document object are also defined on the feature nodes. This allows for these remedies for restriction the results to certain vein(s) of DOM forest. Or told you some other, you might select a specific context for which you would want the methods to look for ability nodes because of the invoking these procedures into the feature node stuff.
These methods not only run using the fresh real time dom but programatic DOM formations which can be created in code also.
cuatro.5 Pre-designed selections/listings regarding element nodes
You ought to know that there exists some legacy, pre-configured arrays-like-listings, that has had element nodes from an HTML file. Lower than We record a few these (not the entire checklist) that might be convenient to be aware of.
- file.every – all the aspects when you look at the HTML document
- document.forms – all
- document.images – all elements in HTML document
- document.links – all elements in HTML document
- document.scripts – all