The HTML5 `document.head` DOM tree accessor
Read OriginalThis technical article details the HTML5 `document.head` DOM accessor, a convenient and efficient alternative to `document.getElementsByTagName('head')[0]`. It covers native support detection, provides a simple polyfill for older browsers, and discusses edge cases and community feedback on implementation nuances and JSLint compatibility.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser