About This Reference
This section describes the guide itself: who it's for, how the information is presented, and how you can use the examples in the reference in your own DOM development.
Note that this document is under development, and is not currently a comprehensive listing of the DOM methods and properties implemented for Gecko. Each individual section of the document (e.g., the DOM Document Reference) is complete for the object(s) it describes, however. As reference information for the various members of the huge APIs becomes available, it is integrated into this document here.
Who Should Read This Guide
The reader of the Gecko DOM Reference is a web developer or savvy web user who knows something about how web pages are constructed. This reference avoids making presumptions about the reader's acquaintance with the DOM, with XML, with web servers or web standards, and even with JavaScript, the language in which the DOM is made accessible to the reader. But the document does presume familiarity with HTML, with markup, with the basic strucure of web pages, with web browsers, and with stylesheets.
In its introductory material, many examples, and high-level explanations, the document is a "beginners" web development guide. In general, however, the API reference should be valuable for inexperienced and experienced web developers alike.
What is Gecko?
Netscape 6.1, Mozilla, and other Mozilla-based browsers have identical implementations of the DOM. This is so because they use the same technology.
Gecko, the software component in these browsers that handles the parsing of the HTML, the layout of the pages, the document object model, and even the rendering of the entire application interface, is a fast, standards-compliant rendering engine that implements the W3C DOM standards and the DOM-like (but not standardized) browser object model (i.e., window et al) in the context of web pages and the application interface, or chrome, of the browser.
Though the application interface and the content displayed by the browser are different in many practical ways, the DOM exposes them uniformly as a hierarchy of nodes. The tree structure of the DOM (which in its application to the user
API Syntax
Each description in the API reference includes the syntax, the input and output parameters (where the return type of the return type is given), an example, any additional notes, and a link to the appropriate specification.
Typically, read-only properties have a single line of syntax because those properties can only be gotten and not set. For example, the read-only property availHeight of the document object includes the following syntax information:
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉
全部0条评论
快来发表一下你的评论吧 !