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
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.
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论