SMPTE ST 366M-2002 Television - Declarative Data Essence - Document Object Model Level 0 (DOM-0) and Related Object Environment.pdf
《SMPTE ST 366M-2002 Television - Declarative Data Essence - Document Object Model Level 0 (DOM-0) and Related Object Environment.pdf》由会员分享,可在线阅读,更多相关《SMPTE ST 366M-2002 Television - Declarative Data Essence - Document Object Model Level 0 (DOM-0) and Related Object Environment.pdf(15页珍藏版)》请在麦多课文档分享上搜索。
1、SMPTE 366M-2002 SMPTE STANDARD for Television - Declarative Data Essence - Document Object Model Level O (DOM-O) and Related Object Environment 1 Scope This standard defines a document object model (DOM) and an object environment for use in manipu- lating HTML documents using the ECMAScnpt envi- ron
2、ment of declarative data essence. The standard reflects the best current practice for continuing use in television and other applications. 2 Reference and organization 2.1 Normative reference The following standard contains provisions which, through reference in this text, constitute provisions of t
3、his standard. At the time of publication, the edition indicated was valid. All standards are subject to revision, and parties to agreements based on this standard are encouraged to investigate the possibility of applying the most recent edition of the standard indicated below. ISOAEC 16262:1998, Inf
4、ormation Technology - ECMAScnpt Language Specification 2.2 Document organization 1 Scope 2 Reference and organization 3 Introduction 4 Definition (with IDL) 5 Event handling 6 Exception handling 7 Security 8 Standard color names 9 ECMAScnpt language binding Annex A Object relationships Annex B Bibli
5、ography Page 1 of 15 pages 3 Introduction This is a definition for a document object model and object environment (DOM-O), to allow orderly transition from existing current authoring practice to DOM-1 and DOM-2. DOM-O is in widespread use today in the form of the objects and methods imple- mented by
6、 the popular browser vendors. This is an attempt to document something like DOM4 (as was loosely defined by W3C). It provides an authoring standard to those who wish to make content that will be compatible with the largest number of down level browsers, such as those used in interactive television r
7、eceivers supporting the declarative data essence content level 1 specification. Standardized support for a DOM-O is therefore re- quired if one expects the existing tools, content, and author knowledge-base to be usable in the short term. And, DOM-O support in browsers will continue to live on well
8、beyond deployment of DOM-2, in order to avoid reauthoring of everything on the web. 4 Definition (with IDL) This standard is intended to define the intersection of Microsoft Internet Explorer, version 3.0 (IE3) and Netscape Navigator, version 3.0 (“3) relative to their DOM. Additionally, there are s
9、ome important features of both IE3 and “3 that are not in ECMAScript, but not strictly part of the DOM either. These must also be addressed. So DOM-O is a baseline DOM, as well as a set of miscellaneous functions including an exten- sion to the ECMAScript String object, and the addition of some navi
10、gation objects. Collectively, this is referred to as DOM-O. CopyngM020m byTHESOCiEPIOF MOTION PICTURE AND TELEVISION ENGINEERS 5.95 W. Haitsdale Ave., white Plais, NY 10607 (914) 761-1100 Approved January 3,2002 SMPTE 366M-2002 The definition is broken into three main groups: 4.1 Anchor - DOM - ECMA
11、Script Extensions - Navigation Interface Anchor attribute String name; I; The DOM is the part that maps to a strict definition of a document object model (and is in theory easily mappable onto DOM-1). The ECMAScript Extensions are objects or methods that extend the definition of standard ECMAScript
12、objects to handle current prac- tice. Navigation is a set of objects that handle some of the common functions that have come to be ex- pected in a given implementation of the client. These latter two categories are not DOM, but supporting objects that have become common for authors to use. An HTML a
13、nchor tag object. Properties - Name - The HTML NAME attribute Methods - None 4.2 The strict DOM consists of the following objects: - Anchor - Button - Checkbox - Document - Hidden - Image - Link - Form Interface Button readonly attribute Form form; readonly attribute String name; readonly attribute
14、String type; attribute String value; void blur( ); void click( ); 1; An HTML form button object. - Location - Option Event handlers - Password - onBlur - Radio - onclick - Reset - onfocus - Select - Submit Properties - Text - TextArea - Value - The string on the face of the button Methods The ECMASc
15、npt object extension is an extension of - blur( ) the standard ECMAScript: - Click() - String The new Navigation objects are: - Histoty - Navigator - Window These are all defined as a flat object space. There is no inheritance or hierarchy and all methods are fully defined in each object definition.
16、 The IDL for each object follows: 4.3 Checkbox Interface Checkbox attribute boolean checked; readonly attribute boolean defauitchecked; readonly attribute Form form; readonly attribute String name; readonly attribute String type; attribute String value; void blur( ); void click( ); void focus( ); I;
17、 Page 2 of 15 pages SMPTE 366M-2002 This is the HTML form checkbox object. Event handlers - onBlur - onclick - onfocus Properties - Checked - Boolean sta e of the checkbox (true if - defaultchecked - The HTML CHECKED attribute - Form - The Form containing this element - Name - The HTML NAME attribut
18、e - Type - The type of this form element - Value - The HTML TYPE attribute currently checked, else false) Methods - blur( ) - Click() - focus() 4.4 Document Interface Anchorsequence 1; Interface FormSequence 1; Interface IrnageSequence Anchor item (in unsigned long index); readonly attribute unsigne
19、d long length; Form item (in unsigned long index); readonly attribute unsigned long length; Image item (in unsigned long index); readonly attribute unsigned long length; 1; Interface Linksequence 1; Interface Document Link item (in unsigned long index); readonly attribute unsigned long length; attri
20、bute String alinkcolor; readonly attribute Anchorsequence anchors; attribute String bgColor; attribute String cookie; attribute String fgColor; readonly attribute Formsequence forms; readonly attribute IrnageSequence images; attribute String IastModified; attribute String linkcolor; readonly attribu
21、te LinkSequence links; readonly attribute String location; readonly attribute String referrer; readonly attribute String title; readonly attribute String URL; attribute String vlinkColor; void clear( ); void close( ); void open (in String mimeType); void write (in String exprl, in String expr2, .);
22、void writeln (in String exprl, in String expr2, .); 1; The document object. Properties - alinkColor -The HTMLALINK attribute. Note that the leading number is optional for all numeric values, and the Standard Color Names are supported. - Anchors -An array of anchor objects in the order the anchor tag
23、s appear in the HTML document. Use anchodength to get the number of anchors in a document. - bgcolor - The HTML BGCOLOR attribute. Note that the leading number is optional for all numeric values, and the Standard Color Names are supported. - Cookie - All the cookie strings sent in the HTTP reply hea
24、ders cumntty saved and concatenated. The syntax for each one is name=value; expires=expDate; the expDate format is: “Wdy, DD-Mmm-W HH:MM:SS GMT“. - fgcolor - The HTML FGCOLOR attribute. Note that the leading number is optional for all numericvalues, and the Standard Color Names are supported. - Form
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- SMPTEST366M2002TELEVISIONDECLARATIVEDATAESSENCEDOCUMENTOBJECTMODELLEVEL0DOM0ANDRELATEDOBJECTENVIRONMENTPDF

链接地址:http://www.mydoc123.com/p-1046945.html