Don't use parentElement

When you try to access the parent element of a specific HTML element in the DOM, make sure you are using a standard parentNode property of the element. parentElement is an IE specific definition of parentNode. IE supports parentNode but FF, whose version is lower than 10, does not support parentElement.

As far as I understand Microsoft wanted to add parentElement in addition to standard parentNode in order to keep the naming convention with other function calls. (e.g. createElement)

Comments

Popular posts from this blog

AWS encryption chart (SSE-S3 vs SSE-KMS vs SSE-C)

Is Wharton Business Foundations Specialization Good?

Sending Large Data with JSON