Index
August 8 2006

This is reportedly fixed since December 2006. Confirmed fixed in Safari 3.

The following div elements are arranged one inside the other, as shown. The w3c definition of a child is an immediate descendant node of a node. The children[] property of a Node should return an array of the Node's children, but Safari returns all descendants (i.e. Safari returns thirdDiv as a child of firstDiv).

Update (November 26 2007): Safari 3 appears to work correctly.

Browser Result
Safari 2.0.4 Broken
Safari 3.0.4 Working
Firefox 1.5 children[] not supported
Mozilla 1.7.12 children[] not supported
Opera 9, 9.01 Working
IE6 Working
Konqueror 3.5.1 Working

 

firstDiv
secondDiv
thirdDiv

Index