localName, namespaceURI, prefix properties have been moved from Node to Element

Published: | Categories: DOM


The localName, namespaceURI and prefix properties on the Node interface have been moved to the Element and Attr interfaces, as per the recent DOM spec. All those properties will return undefined on other nodes. Chrome 48 has already made this change, so major compatibility issues are not expected.