Funny W3C and M $ naming Dom attributes

Source: Internet
Author: User
We accidentally discovered that W3C and M $ are named in the DOM attribute. WhatThe element format has a completely different attitude. Next we will compare the differences between DOM in W3C dom3 and M $ IE6 in attribute naming.

In the DOM Implementation of IE6 of M $, there are eight attributes of activeelement, documentelement, frameelement, fromelement, owningelement, parentelement, and toelement, And the createelement method is namedWhatElement format. In the W3C dom3 standard, only documentelement and ownerelement and the createelement method are namedWhatElement format.

That is to say, except for the document. createelement () method, only one documentelement is unique in the DOM attribute naming of W3C and M $.WhatThe element format is compatible. However, it is difficult for W3C to have a Dom attribute name.WhatThe attribute in element format is called ownerelement, and the result M $ is named owningelement In the DOM of IE.

We can use one sentence to evaluate W3C and M $:

W3C, I am a standard.
M $, I am strong, I can.

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.