Firefox 3 offers a number of improvements to the Document Object Model (DOM), especially in regard to support for extensions to the DOM added by other browsers. This article provides a list of those improvements as well as links to more detailed documentation.
- The Internet Explorer
clientTop
andclientLeft
DOM extensions are now supported. - The
window.fullScreen
property is now always accurate no matter where it is read, even in content. Previously it would returnfalse
inaccurately (bug 127013). - The
getClientRects
andgetBoundingClientRect
DOM extensions are now supported (see bug 174397). - The Internet Explorer
elementFromPoint
DOM extension is now supported (bug 199692). - The Internet Explorer
oncut
,oncopy
, andonpaste
DOM extensions are now supported (bug 280959). - Added privileged-code-only getters for
Node.nodePrincipal
,Node.baseURIObject
, anddocument.documentURIObject
. Chrome code must not touch (get or set) these properties on an unwrapped content object (e.g. on awrappedJSObject
of anXPCNativeWrapper
), see bug 324464 for details. - The Web Applications 1.0 (HTML5)
getElementsByClassName()
DOM method is now supported. - The Web Applications 1.0 (HTML5)
window.postMessage
DOM method is now supported. This method allows a limited, opt-in form of client-side communication between windows not necessarily on the same domain. - The
charCode
value of thekeypress
event is changed to an ASCII character if the accelerator key is pressed. Otherwise thecharCode
is the unmodified character (excepting Shift state). See Gecko Keypress Event.