Dom Extensions for JavaScript

Source: Internet
Author: User

Although Dom has a set of core APIs for interacting with XML and HTML documents, there are still several specifications that extend the standard DOM. Many of these extensions were originally browser-specific, but later became the standard of fact, and other browsers provided the same implementation. The three specifications described in this chapter are as follows.

The 1 selectors API defines two methods that enable developers to get elements from the DOM based on CSS selectors, both queryselector () and Queryselectorall ().

2 element traversal, which defines additional attributes for DOM elements, makes it easier for developers to jump from one element to another. This extension occurs because the browser handles whitespace characters between DOM elements differently.

3 HTML5, which defines a number of extended functions for the standard DOM. This includes the standard definitions provided on the basis of factual criteria such as the InnerHTML attribute, as well as the extended APIs prescribed for managing focus, setting character sets, scrolling pages.

Although the number of DOM expansion is not much, but with the development of WEB technology, I believe there will be more expansion to emerge. Many browsers are experimenting with proprietary extensions that, once recognized, can become "pseudo" standards and even be included in the updated version of the specification.

Dom Extensions for JavaScript

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.