DOM Browser Support

This page tests your browser for DOM (Document Object Model) support and allows you to compare it to other popular browsers. The first column after the property name shows your browser result.

The tests used are very simple and results should only be used as a guide. Be aware of browsers that only partially support the property

These days with all the Ajax and JavaScript Libraries around worrying about browser support is a thing of the past or at least something left to the library. I hope this is useful to someone.

For this DOM test to work with your browser you need to support at least getElementById.
Does your browser support getElementById?

Properties

IE Firefox Opera
DOM property Your browser 5 5.5 6 7 2 6 7.0
Attributes Pass Pass Pass Pass Pass Fail Pass
childNodes Pass Pass Pass Pass Pass Fail Pass
className Pass Pass Pass Pass Pass Pass Pass
clientHeight, clientWidth Pass Pass Pass Fail Fail Pass Fail
firstChild Pass Pass Pass Pass Pass Fail Pass
id Pass Pass Pass Pass Pass Pass Pass
innerHTML Pass Pass Pass Pass Pass Fail Pass
lastChild Pass Pass Pass Pass Pass Fail Pass
nextSibling, previousSibling Pass Pass Pass Pass Pass Fail Pass
nodeName Pass Pass Pass Pass Pass Fail Pass
nodeType Pass Pass Pass Pass Pass Fail Pass
offsetHeight, offsetWidth Pass Pass Pass Pass Pass Pass Pass
offsetParent Pass Pass Pass Pass Pass Fail Pass
offsetLeft, offsetTop Pass Pass Pass Pass Pass Pass Pass
parentNode Pass Pass Pass Pass Pass Pass Pass
scrollHeight, scrollWidth Pass Pass Pass Pass Pass Fail Pass
tabIndex Fail Pass
tagName Pass Pass
textContent Fail Pass

Methods

IE Firefox Opera
DOM method Your browser 5 5.5 6 7 2 6 7
addEventListner Fail Fail Fail Fail Pass Fail Pass
appendChild Pass Pass Pass Pass Pass Fail Pass
blur Pass
click Pass
cloneNode Pass Pass Pass Pass Pass Fail Pass
dispatchEvent Fail Fail Fail Fail Pass Fail Pass
focus Pass
getAttribute Pass Pass Pass Pass Pass Pass Pass
getAttributeNS Fail Fail Fail Fail Pass Fail Fail
getAttributeNode Fail Fail Pass Pass Pass Fail Pass
getAttributeNodeNS Fail Fail Fail Fail Pass Fail Pass
getElementsByTagName Pass Pass Pass Pass Pass Pass Pass
hasAttribute Fail Fail Fail Fail Pass Fail Pass
hasAttributes Fail Fail Fail Fail Pass Fail Pass
hasChildNodes Pass Pass Pass Pass Fail Pass Pass
insertBefore Pass Pass Pass Pass Pass Fail Pass
removeAttribute Pass Pass Pass Pass Pass Fail Pass
removeAttributeNode Fail Fail Pass Pass Pass Fail Pass
removeChild Pass Pass Pass Pass Pass Fail Pass
removeEventListener Fail Fail Fail Fail Pass Fail Pass
replaceChild Pass Pass Pass Pass Pass Fail Pass
setAttribute Pass Pass Pass Pass Pass Pass Pass
setAttributeNS Fail Pass Fail Fail Pass Fail Fail
setAttributeNodeNS Fail Fail Fail Pass Pass Fail Pass

Proprietry

IE Firefox Opera
DOM object Your browser 5 5.5 6 7 7 6 7.0
innerText Pass Pass Pass Pass Fail Fail Pass
All Pass Pass Pass Pass Fail Pass Pass
canHaveChildren Pass Pass Pass Pass Fail Fail Fail
canHaveHTML Fail Pass Pass Pass Fail Fail Fail
children Pass Pass Pass Pass Fail Pass Pass
contentEditable Fail Pass Pass Pass Fail Fail Fail
currentStyle Pass Pass Pass Pass Fail Fail Fail
document Pass Pass Pass Pass Fail Pass Pass
outerText Pass Pass Pass Pass Fail Fail Pass
outerHTML Pass Pass Pass Pass Fail Fail Pass
parentElement Pass Pass Pass Pass Fail Pass Pass
addBehavior Pass Pass Pass Pass Fail Fail Fail
applyElement Pass Pass Pass Pass Fail Fail Fail
attachEvent Pass Pass Pass Pass Fail Fail Pass
contains Pass Pass Pass Pass Fail Pass Pass
dragDrop Fail Pass Pass Pass Fail Fail Fail
fireEvent Fail Pass Pass Pass Fail Fail Fail
removeExpression Pass Pass Pass Pass Fail Fail Fail
removeNode Pass Pass Pass Pass Fail Fail Pass
replaceNode Pass Pass Pass Pass Fail Fail Fail
swapNode Pass Pass Pass Pass Fail Fail Fail