DOM improvements in Firefox 3
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
clientTopandclientLeftDOM extensions are now supported. - The
window.fullScreenproperty is now always accurate no matter where it is read, even in content. Previously it would returnfalseinaccurately (bug 127013). - The
getClientRectsandgetBoundingClientRectDOM extensions are now supported (see bug 174397). - The Internet Explorer
elementFromPointDOM extension is now supported (bug 199692). - The Internet Explorer
oncut,oncopy, andonpasteDOM 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 awrappedJSObjectof 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.postMessageDOM 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
charCodevalue of thekeypressevent is changed to an ASCII character if the accelerator key is pressed. Otherwise thecharCodeis the unmodified character (exceptingShiftstate). See Gecko Keypress Event.