DOM Enlightenment

With DOM Enlightenment, you’ll learn how to manipulate HTML more efficiently by scripting the Document Object Model (DOM) without a DOM library. Using code examples in cookbook style, author Cody Lindley (jQuery Cookbook) walks you through modern DOM concepts to demonstrate how various node objects work.

Over the past decade, developers have buried the DOM under frameworks that simplify its use. This book brings these tools back into focus, using concepts and code native to modern browsers. You’ll understand the role jQuery plays in DOM scripting, and learn how to use the DOM directly in applications for mobile devices and specific browsers that require low overhead.

  • Understand JavaScript node objects and their relationship to the DOM
  • Learn the properties and methods of document, element, text, and DocumentFragment objects
  • Delve into element node selecting, geometry, and inline styles
  • Add CSS style sheets to an HTML document and use CSSStyleRule objects
  • Set up DOM events by using different code patterns
  • Learn the author’s vision for dom.js, a jQuery-inspired DOM Library for modern browsers

Table of Contents
Chapter 1. Node Overview
Chapter 2. Document Nodes
Chapter 3. Element Nodes
Chapter 4. Element Node Selection
Chapter 5. Element Node Geometry and Scrolling Geometry
Chapter 6. Element Node Inline Styles
Chapter 7. Text Nodes
Chapter 8. DocumentFragment Nodes
Chapter 9. CSS Stylesheets and CSS Rules
Chapter 10. JavaScript in the DOM
Chapter 11. DOM Events
Chapter 12. Creating dom.js: A Wishful jQuery-Inspired DOM Library for Modern Browsers

Book Details

  • Paperback: 180 pages
  • Publisher: O’Reilly Media (February 2013)
  • Language: English
  • ISBN-10: 1449342841
  • ISBN-13: 978-1449342845
Download [7.5 MiB]

You may also like...

Leave a Reply