/[suikacvs]/messaging/manakai/lib/Message/DOM/DOMWebForms.dis
Suika

Contents of /messaging/manakai/lib/Message/DOM/DOMWebForms.dis

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (hide annotations) (download)
Sun Oct 9 13:57:13 2005 UTC (20 years, 9 months ago) by wakaba
Branch: MAIN
CVS Tags: manakai-release-0-3-2, manakai-release-0-3-1, manakai-release-0-4-0, manakai-200612, HEAD
Changes since 1.12: +3 -66 lines
++ manakai/lib/Message/Markup/ChangeLog	9 Oct 2005 13:49:25 -0000
2005-10-09  Wakaba  <wakaba@suika.fam.cx>

	* SuikaWikiConfig21.dis (swcfg21:ownerDocument): Changed
	from a "mn:irefnode0" property to a "mn:xrefnode0" property.

++ manakai/lib/Message/Util/ChangeLog	9 Oct 2005 13:53:53 -0000
2005-10-09  Wakaba  <wakaba@suika.fam.cx>

	* ManakaiNode.dis: New "mn:xrefnode0" property type has
	been introduced and methods are fixed to support it.
	(mn:setXRefNode, mn:unsetXRefNode): New codes.

	* DIS.dis (loadResource): Skips a root resource definition
	if it is an alias and it has "dis:Name" attribute and
	referenced canonical definition is already read.  (Note
	that similar case that the resource definition has "dis:QName"
	attribute is already fixed in the same way.)

++ manakai/lib/Message/Util/DIS/ChangeLog	9 Oct 2005 13:56:34 -0000
2005-10-09  Wakaba  <wakaba@suika.fam.cx>

	* Perl.dis (plGeneratePerlModule): Generates information
	on new "mn:xrefnode0" property type.  Restored to generate
	error definition method code for classes, not only
	interfaces, if there are error codes.

++ manakai/lib/Message/DOM/ChangeLog	9 Oct 2005 13:48:37 -0000
2005-10-09  Wakaba  <wakaba@suika.fam.cx>

	* DOMHTML.dis, DOMWebForms.dis: Typos in element type prefix fixed.

	* DOMFeature.dis (DOMCore:implementation): Short name added.

	* DOMCore.dis (CLONE_NODE_TYPE_NOT_SUPPORTED_ERR): New error subcode.
	(DOMCore:node): New error parameter.
	(DOMCore:ownerDocument): Changed from "mn:irefnode0"
	to "mn:xrefnode0".  For this reason, all assignments
	to this property have been rewritten to references
	to code "mn:setXRefNode".
	(cloneNode): Implemented.
	(setAttributeNode): A missing "importTree" method call added.
	(setAttributeNodeNS): Perl code removed and changed
	to a reference to "setAttributeNode" method code.

	* DOMXML.dis (DOMCore:ownerDocument): Changed from "mn:irefnode0"
	property to "mn:xrefnode0" property.

1 wakaba 1.1 Module:
2 wakaba 1.4 @QName:
3     MDOM:DOMWebForms
4 wakaba 1.1 @Namespace:
5 wakaba 1.4 http://suika.fam.cx/~wakaba/archive/2004/dom/wf#
6 wakaba 1.1 @FullName:
7     @@lang:en
8     @@@: DOM Web Forms Module
9 wakaba 1.4
10 wakaba 1.1 @Description:
11     @@lang:en
12     @@@:
13     Interfaces to manipulate Web Forms elements or form controls.
14     \
15     {NOTE:: Most interfaces are originally defined in DOM
16     Levels 1 and 2 HTML Modules and later ammended
17     by the Web Forms 2.0 Specification. These
18     standards are based on DOM Level 0 implementations.
19     \
20     }
21    
22 wakaba 1.11 @DISCore:author: DISCore|Wakaba
23 wakaba 1.1 @License:
24     license:Perl+MPL
25 wakaba 1.4 @Date:
26     @@@:
27 wakaba 1.13 $Date: 2005/09/24 11:57:21 $
28 wakaba 1.4 @@ContentType:
29     dis:Date.RCS
30    
31     @DefaultFor:
32     ManakaiDOM:ManakaiDOMLatest
33 wakaba 1.1
34     @Require:
35 wakaba 1.11 @@Module:
36     @@@QName: MDOM|DOMHTML
37     @@@WithFor: ManakaiDOM|ManakaiDOMLatest
38     @@Module:
39     @@@QName: MDOM|DOMWebForms
40     @@@WithFor: ManakaiDOM|ManakaiDOM
41     @@Module:
42     @@@QName: MDOM|DOMWebForms
43     @@@WithFor: ManakaiDOM|ManakaiDOM1
44     @@Module:
45     @@@QName: MDOM|DOMWebForms
46     @@@WithFor: ManakaiDOM|ManakaiDOM2
47     @@Module:
48     @@@QName: MDOM|DOMWebForms
49     @@@WithFor: ManakaiDOM|ManakaiDOMLatest
50     @@Module:
51     @@@QName: MDOM|DOMWebForms
52     @@@WithFor: DOMHTML|ForHTML40SE
53     @@Module:
54     @@@QName: MDOM|DOMWebForms
55     @@@WithFor: DOMHTML|ForHTML401
56     @@Module:
57     @@@QName: MDOM|DOMWebForms
58     @@@WithFor: DOMHTML|ForXHTML10SE
59 wakaba 1.1
60 wakaba 1.4 Namespace:
61     @dis:
62     http://suika.fam.cx/~wakaba/archive/2004/8/18/lang#dis--
63     @dis2pm:
64     http://suika.fam.cx/~wakaba/archive/2004/11/8/dis2pm#
65     @DOMCore:
66     http://suika.fam.cx/~wakaba/archive/2004/8/18/dom-core#
67     @DOMHTML:
68     http://suika.fam.cx/~wakaba/archive/2004/dom/html#
69     @DOMMain:
70     http://suika.fam.cx/~wakaba/archive/2004/dom/main#
71     @ev:
72     http://www.w3.org/2001/xml-events
73     @lang:
74     http://suika.fam.cx/~wakaba/archive/2004/8/18/lang#
75     @license:
76     http://suika.fam.cx/~wakaba/archive/2004/8/18/license#
77     @ManakaiDOM:
78     http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom#
79     @ManakaiDOMCore:
80     http://suika.fam.cx/~wakaba/archive/2004/mdom-core#
81     @ManakaiDOMHTML:
82     http://suika.fam.cx/~wakaba/archive/2004/mdom/html#
83     @MDOM:
84     http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom#ManakaiDOM.
85     @MDOMX:
86     http://suika.fam.cx/~wakaba/archive/2004/8/4/manakai-dom-exception#
87     @null:
88     http://suika.fam.cx/~wakaba/-temp/2003/09/27/null
89     @Perl:
90     http://suika.fam.cx/~wakaba/archive/2004/8/18/lang#Perl--
91     @rdf:
92     http://www.w3.org/1999/02/22-rdf-syntax-ns#
93     @rdfs:
94     http://www.w3.org/2000/01/rdf-schema#
95     @s:
96     http://suika.fam.cx/~wakaba/archive/2004/dis/Markup#
97     @xhtml1:
98     http://www.w3.org/1999/xhtml
99    
100     ElementTypeBinding:
101     @Name: L2
102     @ElementType:
103     DOMMain:implementFeature
104     @ShadowContent:
105     @@@:
106     DOMHTML:HTMLFeature20
107     @@For:
108     ManakaiDOM:DOM2
109    
110     ElementTypeBinding:
111     @Name: PerlDef
112     @ElementType:
113     dis:Def
114     @ShadowContent:
115     @@ContentType:
116     lang:Perl
117 wakaba 1.11 @@ForCheck: ManakaiDOM|ForClass
118 wakaba 1.4
119     ElementTypeBinding:
120 wakaba 1.11 @Name: PerlCDef
121 wakaba 1.4 @ElementType:
122 wakaba 1.11 dis:Def
123     @ShadowContent:
124     @@ContentType:
125     lang:Perl
126    
127     ElementTypeBinding:
128 wakaba 1.12 @Name: IfCls2Def
129 wakaba 1.11 @ElementType:
130 wakaba 1.4 dis:ResourceDef
131     @ShadowContent:
132     @@rdf:type:
133 wakaba 1.11 @@@@: dis|MultipleResource
134     @@@ForCheck: !ManakaiDOM|ForIF !ManakaiDOM|ForClass
135     @@resourceFor: ManakaiDOM|ForIF
136     @@resourceFor:
137     @@@@: ManakaiDOM|ForClass
138     @@@ForCheck: ManakaiDOM|ManakaiDOM !=ManakaiDOM|ManakaiDOM
139     @@For: ManakaiDOM|DOM2
140     @@For: =ManakaiDOM|ManakaiDOM
141    
142 wakaba 1.4 @@rdf:type:
143 wakaba 1.11 @@@@: DISLang|Interface
144     @@@ForCheck: ManakaiDOM|ForIF
145    
146 wakaba 1.4 @@rdf:type:
147 wakaba 1.11 @@@@: DISLang|Class
148     @@@ForCheck: ManakaiDOM|ForClass
149     @@Implement:
150     @@@@: ||ManakaiDOM|ManakaiDOM||ManakaiDOM|ForIF
151     @@@ContentType: DISCore|TFPQNames
152     @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM
153     @@Implement:
154     @@@@: ||ManakaiDOM|ManakaiDOM2||ManakaiDOM|ForIF
155 wakaba 1.7 @@@ContentType: DISCore|TFPQNames
156 wakaba 1.11 @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM2
157 wakaba 1.7 @@Implement:
158 wakaba 1.11 @@@@: ||ManakaiDOM|ManakaiDOMLatest||ManakaiDOM|ForIF
159 wakaba 1.7 @@@ContentType: DISCore|TFPQNames
160 wakaba 1.11 @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOMLatest
161    
162     @@DOMMain:implementFeature:
163     @@@@: DOMHTML|HTMLFeature20
164     @@@For: ManakaiDOM|DOM2
165 wakaba 1.4
166     ElementTypeBinding:
167 wakaba 1.12 @Name: IfCls1ETDef
168 wakaba 1.11 @ElementType:
169 wakaba 1.4 dis:ResourceDef
170     @ShadowContent:
171     @@rdf:type:
172 wakaba 1.11 @@@@: dis|MultipleResource
173     @@@ForCheck: !ManakaiDOM|ForIF !ManakaiDOM|ForClass !DOMHTML|ForHTML
174     @@resourceFor: ManakaiDOM|ForIF
175 wakaba 1.4 @@resourceFor:
176 wakaba 1.11 @@@@: ManakaiDOM|ForClass
177     @@@ForCheck: ManakaiDOM|ManakaiDOM !=ManakaiDOM|ManakaiDOM
178     @@For: ManakaiDOM|DOM1
179     @@For: =ManakaiDOM|ManakaiDOM
180     @@For: DOMHTML|ForHTML
181 wakaba 1.4
182     @@rdf:type:
183 wakaba 1.11 @@@@: DISLang|Interface
184     @@@ForCheck: ManakaiDOM|ForIF
185 wakaba 1.4
186 wakaba 1.11 @@rdf:type:
187     @@@@: DISLang|Class
188     @@@ForCheck: ManakaiDOM|ForClass
189     @@Implement:
190     @@@@: ||ManakaiDOM|ManakaiDOM||ManakaiDOM|ForIF
191     @@@ContentType: DISCore|TFPQNames
192     @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM
193     @@Implement:
194     @@@@: ||ManakaiDOM|ManakaiDOM1||ManakaiDOM|ForIF
195     @@@ContentType: DISCore|TFPQNames
196 wakaba 1.4 @@@ForCheck:
197 wakaba 1.11 ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM1
198     @@Implement:
199     @@@@: ||ManakaiDOM|ManakaiDOM2||ManakaiDOM|ForIF
200 wakaba 1.7 @@@ContentType: DISCore|TFPQNames
201 wakaba 1.11 @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM2
202 wakaba 1.7 @@Implement:
203 wakaba 1.11 @@@@: ||ManakaiDOM|ManakaiDOMLatest||ManakaiDOM|ForIF
204 wakaba 1.7 @@@ContentType: DISCore|TFPQNames
205 wakaba 1.11 @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOMLatest
206 wakaba 1.7
207 wakaba 1.11 @@DOMMain:implementFeature:
208     @@@@: DOMHTML|HTMLFeature10
209     @@@For: ManakaiDOM|DOM1
210     @@DOMMain:implementFeature:
211     @@@@: DOMHTML|HTMLFeature20
212     @@@For: ManakaiDOM|DOM2
213    
214     @@rdf:type:
215 wakaba 1.13 @@@@: s|ElementType
216     @@@ForCheck: DOMHTML|ForHTML
217 wakaba 1.11
218     @@s:elementType:
219     @@@@: ||DOMHTML|ForHTML40SE
220     @@@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
221 wakaba 1.4 @@@ImplNote:
222     @@@@lang:en
223     @@@@@:
224     DOM Level 1 First Edition refers the latest version of
225     HTML 4.0 while Second Edition refers the second edition of
226     HTML 4.0.
227 wakaba 1.6 @@@DISCore:stopISARecursive:1
228 wakaba 1.11 @@s:elementType:
229     @@@@: ||DOMHTML|ForHTML401
230     @@@ForCheck: ManakaiDOM|DOM2
231     @@s:elementType:
232     @@@@: ||DOMHTML|ForXHTML10SE
233     @@@ForCheck: ManakaiDOM|DOM2
234 wakaba 1.6 @@@DISCore:stopISARecursive:1
235 wakaba 1.4
236     ElementTypeBinding:
237     @Name: Method
238     @ElementType:
239     dis:ResourceDef
240     @ShadowContent:
241 wakaba 1.11 @@rdf:type: DISLang|Method
242     @@ForCheck: ManakaiDOM|DOM !=ManakaiDOM|ManakaiDOM
243    
244 wakaba 1.4 ElementTypeBinding:
245     @Name: IntMethod
246     @ElementType:
247     dis:ResourceDef
248     @ShadowContent:
249 wakaba 1.11 @@rdf:type: DISLang|Method
250     @@ForCheck: ManakaiDOM|ForClass
251 wakaba 1.4 @@ManakaiDOM:isForInternal: 1
252 wakaba 1.11
253 wakaba 1.4 ElementTypeBinding:
254     @Name: ReMethod
255     @ElementType:
256     dis:ResourceDef
257     @ShadowContent:
258 wakaba 1.11 @@rdf:type: DISLang|Method
259     @@ForCheck: ManakaiDOM|ForClass
260    
261 wakaba 1.4 ElementTypeBinding:
262     @Name: Param
263     @ElementType:
264     dis:ResourceDef
265     @ShadowContent:
266 wakaba 1.11 @@rdf:type: DISLang|MethodParameter
267    
268 wakaba 1.4 ElementTypeBinding:
269     @Name: Exception
270     @ElementType:
271     ManakaiDOM:raises
272 wakaba 1.12 @ShadowContent:
273     @@ForCheck: !ManakaiDOM|all
274 wakaba 1.4
275     ElementTypeBinding:
276     @Name: Return
277     @ElementType:
278     dis:ResourceDef
279     @ShadowContent:
280 wakaba 1.11 @@rdf:type: DISLang|MethodReturn
281 wakaba 1.4
282     ElementTypeBinding:
283     @Name: Attr
284     @ElementType:
285     dis:ResourceDef
286     @ShadowContent:
287 wakaba 1.11 @@rdf:type: DISLang|Attribute
288     @@ForCheck: ManakaiDOM|DOM !=ManakaiDOM|ManakaiDOM
289 wakaba 1.4
290     ElementTypeBinding:
291     @Name: ATTR
292     @ElementType:
293     dis:ResourceDef
294     @ShadowContent:
295     @@rdf:type:
296 wakaba 1.11 @@@@: DISLang|Attribute
297     @@@ForCheck: ManakaiDOM|DOM
298 wakaba 1.4 @@rdf:type:
299 wakaba 1.11 @@@@: s|Attribute
300     @@@ForCheck: DOMHTML|ForHTML
301 wakaba 1.4 @@DocAttr:
302 wakaba 1.11 @@@@: ||DOMHTML|ForHTML40SE
303 wakaba 1.12 @@@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
304 wakaba 1.4 @@@ImplNote:
305     @@@@lang:en
306     @@@@@:
307     DOM Level 1 First Edition refers the latest version of
308     HTML 4.0 while Second Edition refers the second edition of
309     HTML 4.0.
310     @@DocAttr:
311 wakaba 1.11 @@@@: ||DOMHTML|ForHTML401
312     @@@ForCheck: ManakaiDOM|DOM2
313 wakaba 1.4 @@DocAttr:
314 wakaba 1.11 @@@@: ||DOMHTML|ForXHTML10SE
315     @@@ForCheck: ManakaiDOM|DOM2
316 wakaba 1.4
317     ElementTypeBinding:
318     @Name: ReAttr
319     @ElementType:
320     dis:ResourceDef
321     @ShadowContent:
322 wakaba 1.11 @@rdf:type: DISLang|Attribute
323     @@ForCheck: ManakaiDOM|ForClass
324    
325 wakaba 1.4 ElementTypeBinding:
326     @Name: Get
327     @ElementType:
328     dis:ResourceDef
329     @ShadowContent:
330 wakaba 1.11 @@rdf:type: DISLang|AttributeGet
331     @@For: ManakaiDOM|DOM
332    
333 wakaba 1.4 ElementTypeBinding:
334     @Name: Set
335     @ElementType:
336     dis:ResourceDef
337     @ShadowContent:
338 wakaba 1.11 @@rdf:type: DISLang|AttributeSet
339     @@For: ManakaiDOM|DOM
340    
341 wakaba 1.4 ElementTypeBinding:
342     @Name: InCase
343     @ElementType:
344     dis:ResourceDef
345     @ShadowContent:
346     @@rdf:type:
347     ManakaiDOM:InCase
348    
349     ElementTypeBinding:
350     @Name: ConstGroup
351     @ElementType:
352     dis:ResourceDef
353     @ShadowContent:
354 wakaba 1.11 @@rdf:type: DISLang|ConstGroup
355     @@ForCheck: ManakaiDOM|DOM !=ManakaiDOM|ManakaiDOM
356 wakaba 1.4
357     ElementTypeBinding:
358     @Name: Const
359     @ElementType:
360     dis:ResourceDef
361     @ShadowContent:
362 wakaba 1.11 @@rdf:type: DISLang|Const
363 wakaba 1.4
364     ElementTypeBinding:
365     @Name: Deprecated
366     @ElementType:
367     DOMHTML:isDeprecatedByHTML4
368     @ShadowContent: 1
369     @ShadowSibling:
370     @@ForCheck:
371     !DOMHTML:ForXHTML11
372    
373     ElementTypeBinding:
374     @Name: PropDef
375     @ElementType:
376     dis:ResourceDef
377     @ShadowContent:
378     @@rdf:type:
379 wakaba 1.5 rdf:Property
380 wakaba 1.11 @@For: =ManakaiDOM|all
381 wakaba 1.4
382     ElementTypeBinding:
383     @Name: ISAHTMLElement
384     @ElementType:
385     dis:ISA
386     @ShadowContent:
387     @@@:
388     DOMHTML:HTMLElement
389     @@ForCheck:
390     ManakaiDOM:ForIF
391     @ShadowSibling:
392     @@ISA:
393     @@@@:
394     DOMHTML:ManakaiDOMHTMLElement
395     @@@ForCheck:
396     ManakaiDOM:ForClass
397    
398     ElementTypeBinding:
399     @Name: ETQName
400     @ElementType:
401 wakaba 1.9 dis:AppName
402 wakaba 1.4 @ShadowContent:
403 wakaba 1.11 @@ForCheck: s|ForML
404     @@ContentType: DISCore|QName
405    
406 wakaba 1.4 ElementTypeBinding:
407     @Name: IFQName
408     @ElementType:
409     dis:QName
410     @ShadowContent:
411     @@ForCheck:
412     ManakaiDOM:ForIF
413 wakaba 1.11
414 wakaba 1.4 ElementTypeBinding:
415     @Name: ClsQName
416     @ElementType:
417     dis:QName
418     @ShadowContent:
419     @@ForCheck:
420     ManakaiDOM:ForClass
421    
422     ElementTypeBinding:
423     @Name: DOMAName
424     @ElementType:
425     dis:Name
426     @ShadowContent:
427     @@ForCheck:
428     ManakaiDOM:DOM
429 wakaba 1.11
430 wakaba 1.4 ElementTypeBinding:
431     @Name: AName
432     @ElementType:
433     dis:Name
434     @ShadowContent:
435     @@ForCheck:
436     DOMHTML:ForHTML
437 wakaba 1.1
438 wakaba 1.11 ElementTypeBinding:
439     @Name: plAName
440     @ElementType:
441     DISPerl:methodName
442     @ShadowContent:
443     @@ForCheck: ManakaiDOM|Perl
444     @@ContentType: lang|Perl
445    
446 wakaba 1.12 IfCls2Def:
447 wakaba 1.4 @IFQName:
448     DOMHTML:HTMLOptionsCollection
449     @ClsQName:ManakaiDOMHTMLOptionsCollection
450 wakaba 1.11
451 wakaba 1.1 @Description:
452     @@lang:en
453     @@@:
454 wakaba 1.10 A list of nodes representing HTML <HE::option> elements.
455 wakaba 1.1 An individual node may be accessed by either ordinal index
456 wakaba 1.10 or the <HA::name> or <HA::id> of the node.
457 wakaba 1.1 \
458 wakaba 1.10 <IF::HTMLOptionCollection> objects are <EM::live>; they are
459 wakaba 1.1 automatically updated when the underlying document
460     is changed.
461 wakaba 1.2 \
462 wakaba 1.10 {NOTE:: In DOM Level 1, <IF::HTMLCollection> interface
463     was used in place of <IF::HTMLOptionsCollection>.
464 wakaba 1.2 \
465     }
466 wakaba 1.1
467     @Attr:
468     @@Name: length
469     @@Description:
470     @@@lang:en
471     @@@@:
472     The length of the list.
473     @@Get:
474     @@@Type:
475     DOMMain:unsigned-long
476     @@Set:
477     @@@Type:
478     DOMMain:unsigned-long
479     @@@Exception:
480     @@@@Name: NOT_SUPPORTED_ERR
481     @@@@Type:
482     DOMCore:DOMException
483     @@@@SubType:
484     @@@@@QName:
485     ManakaiDOMHTML:MDOMHTML_IMPL_NOSUPPORT_SET_OPTION_LENGTH
486     @@@@@Description:
487     @@@@@@lang:en
488     @@@@@@@:
489     Setting the length is not allowed by the DOM
490     implementation.
491     @Method:
492     @@Name: item
493     @@Description:
494     @@@lang:en
495     @@@@:
496     Retrieve a node specified by ordinal index.
497     @@Param:
498     @@@Name: index
499     @@@Type:
500     DOMMain:unsigned-long
501     @@@Description:
502     @@@@lang:en
503     @@@@@:
504     Ordinal index of the node to retrieve, in the
505 wakaba 1.10 document order. The index origin is <DOM::0>.
506 wakaba 1.1 @@Return:
507 wakaba 1.4 @@@Type:
508     DOMCore:Node
509 wakaba 1.1 @@@Description:
510     @@@@lang:en
511     @@@@@:
512 wakaba 1.10 The <P::index>th node.
513 wakaba 1.1 @@@InCase:
514     @@@@Value:
515     @@@@@is-null:1
516     @@@@Description:
517     @@@@@lang:en
518     @@@@@@:
519 wakaba 1.10 The <P::index> is out of range.
520 wakaba 1.1 @Method:
521     @@Name: namedItem
522     @@Description:
523     @@@lang:en
524     @@@@:
525     Retrieve a node using a name.
526     \
527 wakaba 1.10 It first searches for a <IF::DOMCore:Node> with a matching <HA::id>
528 wakaba 1.1 attributes. If it does not find one, it searches for a
529 wakaba 1.10 <IF::DOMCore:Node> (that are allowed to specify a <HA::name> attribute).
530     with a matching <HA::name> attribute.
531 wakaba 1.1 @@Param:
532     @@@Name: name
533     @@@Type: DOMString
534     @@@Description:
535     @@@@lang:en
536     @@@@@:
537     The name of the node to retrieve. The matching is
538     case-insensitive in HTML documents and case-sensitve
539     in XHTML documents.
540     @@Return:
541     @@@Type:
542     DOMCore:Node
543     @@@Description:
544     @@@@lang:en
545     @@@@@:
546 wakaba 1.10 The <IF::DOMCore:Node> with a <HA::name> or <HA::id> whose
547     value matches with <P::name>.
548 wakaba 1.1 @@@InCase:
549     @@@@Value:
550     @@@@@is-null:1
551     @@@@Description:
552     @@@@@lang:en
553     @@@@@@:
554 wakaba 1.10 There is no node with such a <P::name>.
555 wakaba 1.11 ##HTMLOptionCollection
556 wakaba 1.1
557 wakaba 1.11 IfCls1ETDef:
558 wakaba 1.4 @ETQName:
559     xhtml1:form
560     @IFQName:
561     DOMHTML:HTMLFormElement
562     @ClsQName:ManakaiDOMHTMLFormElement
563     @ISAHTMLElement:
564    
565 wakaba 1.1 @Description:
566     @@lang:en
567     @@@:
568     This interface encompasses behavior similar to a collection
569     and an element. It provides direct access to the contained
570     form controls as well as attributes of the form element.
571 wakaba 1.4
572 wakaba 1.1 @Attr:
573     @@Name: elements
574     @@Description:
575     @@@lang:en
576     @@@@:
577     A collection of all form controls in this form.
578     @@Get:
579     @@@Type:
580     DOMHTML:HTMLCollection
581     @Attr:
582     @@Name: length
583     @@Description:
584     @@@lang:en
585     @@@@:
586     The number of form controls in this form.
587     @@Get:
588     @@@Type:
589     DOMMain:long
590     @Attr:
591     @@Name: name
592     @@Description:
593     @@@lang:en
594     @@@@:
595     The name of the form.
596     \
597     {NOTE:: The DOM HTML Specifications does not mention
598 wakaba 1.10 to the HTML 4.01 <HA::name> attribute, which is
599 wakaba 1.1 added for backward compatibility with DOM Level 0.
600     \
601     }
602 wakaba 1.8 @@rcdata:
603 wakaba 1.1 @@Get:
604     @@Set:
605 wakaba 1.4 @ATTR:
606     @@AName:accept-charset
607     @@DOMAName: acceptCharset
608 wakaba 1.8 @@rcdata:
609 wakaba 1.1 @@Get:
610     @@Set:
611 wakaba 1.4 @ATTR:
612 wakaba 1.1 @@Name: action
613 wakaba 1.8 @@ruri:
614 wakaba 1.1 @@Get:
615     @@Set:
616 wakaba 1.4 @ATTR:
617 wakaba 1.1 @@Name: enctype
618 wakaba 1.8 @@rcdata:
619 wakaba 1.1 @@Get:
620     @@Set:
621 wakaba 1.4 @ATTR:
622 wakaba 1.1 @@Name: method
623 wakaba 1.8 @@renum:
624 wakaba 1.1 @@Get:
625     @@Set:
626 wakaba 1.4 @ATTR:
627 wakaba 1.1 @@Name: target
628 wakaba 1.8 @@rcdata:
629 wakaba 1.1 @@Get:
630     @@Set:
631     @Method:
632     @@Name: submit
633     @@Description:
634     @@@lang:en
635     @@@@:
636     Submit the form, as the activation of submit buttons do.
637     \
638 wakaba 1.10 {NOTE:: The <HA::onsubmit> or <EV::submit> event handler is not
639 wakaba 1.1 guaranteed to be triggered when invoking this method
640 wakaba 1.10 for historical reasons. DOM Level 3 <EV::ev:submit>
641 wakaba 1.1 event is defined not to triggered on this method.
642     \
643     }
644     @@Return:
645     @Method:
646     @@Name: reset
647     @@Description:
648     @@@lang:en
649     @@@@:
650     Restore current values of form controls to initial values,
651     as the activation of reset buttons do.
652     @@Return:
653 wakaba 1.11 ##HTMLFormElement
654 wakaba 1.1
655 wakaba 1.11 IfCls1ETDef:
656 wakaba 1.4 @ETQName:
657     xhtml1:select
658     @IFQName:
659     DOMHTML:HTMLSelectElement
660     @ClsQName: ManakaiDOMHTMLSelectElement
661     @ISAHTMLElement:
662    
663 wakaba 1.1 @Attr:
664     @@Name: type
665     @@Description:
666     @@@lang:en
667     @@@@:
668     The type of this form control.
669 wakaba 1.4 @@Type:
670     DOMMain:DOMString
671 wakaba 1.1 @@Get:
672     @@@InCase:
673     @@@@Value:select-one
674     @@@@Description:
675     @@@@@lang:en
676     @@@@@@:
677 wakaba 1.10 <A::DOMHTML:HTMLSelectElement.multiple> is <DOM::false>.
678 wakaba 1.1 @@@InCase:
679     @@@@Value:select-multiple
680     @@@@Description:
681     @@@@@lang:en
682     @@@@@@:
683 wakaba 1.10 <A::DOMHTML:HTMLSelectElement.multiple> is <DOM::true>.
684 wakaba 1.2 @@@ImplNote:
685     @@@@lang:en
686     @@@@@:
687     Values were not defined in DOM Level 1 First Edition;
688     they were added in the DOM Level 1 Errata.
689 wakaba 1.4 @@@PerlDef:
690 wakaba 1.1 __DEEP{
691 wakaba 1.6 $r = $self-><AG::DOMHTML:HTMLSelectElement.multiple>
692 wakaba 1.4 ? "select-multiple" : "select-one";
693 wakaba 1.1 }__;
694     @Attr:
695     @@Name: selectedIndex
696     @@Description:
697     @@@lang:en
698     @@@@:
699     The ordinal index of the selected option.
700     @@Get:
701     @@@Type:
702     DOMMain:long
703     @@@Description:
704     @@@@lang:en
705     @@@@@:
706     The ordinal index of the selected option, starging
707 wakaba 1.10 from <DOM::0>. If multiple options are selected,
708 wakaba 1.1 the index of the first selected option is returned.
709     @@@InCase:
710     @@@@Value:-1
711     @@@@Description:
712     @@@@@lang:en
713     @@@@@@:
714     No option is selected.
715     @@Set:
716     @@@Type:
717     DOMMain:long
718     @Attr:
719     @@Name: value
720     @@Description:
721     @@@lang:en
722     @@@@:
723     The current control value (i.e. the value of the
724     currently selected option). If multiple options are
725     selected, the value of the first selected option.
726     @@Get:
727     @@@Type: DOMString
728     @@Set:
729     @@@Type: DOMString
730     @Attr:
731     @@Name: length
732     @@Description:
733     @@@lang:en
734     @@@@:
735     The number of options in this menu control.
736     @@Get:
737     @@@Type:
738 wakaba 1.2 @@@@@:
739     DOMMain:unsigned-long
740     @@@@ImplNote:
741     @@@@@lang:en
742     @@@@@@:
743 wakaba 1.10 The type was <TYPE::DOMMain:long> in DOM Level 1.
744 wakaba 1.1 @@Set:
745     @@@Type:
746     DOMMain:unsigned-long
747     @@@Exception:
748     @@@@Name: NOT_SUPPORTED_ERR
749     @@@@Type:
750     DOMCore:DOMException
751     @@@@SubType:
752     @@@@@QName:
753     DOMHTML:MDOMHTML_IMPL_NOSUPPORT_SET_SELECT_LENGTH
754     @@@@@Description:
755     @@@@@@lang:en
756     @@@@@@@:
757     Setting the length is not allowed by the
758     DOM implementation.
759 wakaba 1.2 @@@SpecLevel:2
760     @@@Level:2
761 wakaba 1.4 @@@For:
762     ManakaiDOM:DOM2
763 wakaba 1.1 @@Level[list]:
764     1
765     2
766     @@SpecLevel[list]:
767     1
768     2
769     @Attr:
770     @@Name: form
771     @@Description:
772     @@@lang:en
773     @@@@:
774 wakaba 1.10 The <HE::form> element containing this control.
775 wakaba 1.1 @@Get:
776 wakaba 1.4 @@@Type:
777     DOMHTML:HTMLFormElement
778 wakaba 1.1 @@@InCase:
779     @@@@Value:
780     @@@@@is-null:1
781     @@@@Description:
782     @@@@@lang:en
783     @@@@@@:
784     This control is not within the context of a form.
785     @Attr:
786     @@Name: options
787     @@Description:
788     @@@lang:en
789     @@@@:
790 wakaba 1.10 The collection of <HE::option> elements contained
791 wakaba 1.1 by this element.
792     @@Get:
793 wakaba 1.2 @@@Type:
794 wakaba 1.4 @@@@@:
795     DOMHTML:HTMLOptionsCollection
796     @@@@For:
797     ManakaiDOM:DOM2
798     @@@Type:
799     @@@@@:
800     DOMHTML:HTMLCollection
801     @@@@For:
802     ManakaiDOM:DOM1 !ManakaiDOM:DOM2
803     @ATTR:
804 wakaba 1.1 @@Name: disabled
805 wakaba 1.8 @@rbool:
806 wakaba 1.1 @@Get:
807     @@@InCase:
808     @@@@Value: true
809     @@@InCase:
810     @@@@Value: false
811     @@Set:
812     @@@InCase:
813     @@@@Value: true
814     @@@InCase:
815     @@@@Value: false
816 wakaba 1.4 @ATTR:
817 wakaba 1.1 @@Name: multiple
818 wakaba 1.8 @@rbool:
819 wakaba 1.1 @@Get:
820     @@@InCase:
821     @@@@Value: true
822     @@@InCase:
823     @@@@Value: false
824     @@Set:
825     @@@InCase:
826     @@@@Value: true
827     @@@InCase:
828     @@@@Value: false
829 wakaba 1.4 @ATTR:
830 wakaba 1.1 @@Name: name
831 wakaba 1.8 @@rcdata:
832 wakaba 1.1 @@Get:
833     @@Set:
834 wakaba 1.4 @ATTR:
835 wakaba 1.1 @@Name: size
836 wakaba 1.8 @@rlong:
837 wakaba 1.1 @@Get:
838     @@Set:
839 wakaba 1.4 @ATTR:
840     @@AName:tabindex
841     @@DOMAName: tabIndex
842 wakaba 1.11 @@plAName: tabindex
843 wakaba 1.8 @@rlong:
844 wakaba 1.1 @@Get:
845     @@Set:
846     @Method:
847     @@Name: add
848     @@Description:
849     @@@lang:en
850     @@@@:
851 wakaba 1.10 Add a new element to the collection of <HE::option>
852 wakaba 1.1 elements.
853     @@Param:
854     @@@Name: element
855     @@@Type:
856     DOMHTML:HTMLElement
857     @@@Description:
858     @@@@lang:en
859     @@@@@:
860     The element to add.
861     @@@InCase:
862 wakaba 1.4 @@@@Type:
863     DOMHTML:HTMLOptionElement
864 wakaba 1.1 @@@@Description:
865     @@@@@lang:en
866     @@@@@@:
867     The option to add.
868     @@@InCase:
869 wakaba 1.4 @@@@Type:
870     DOMHTML:HTMLOptGroupElement
871 wakaba 1.1 @@@@Description:
872     @@@@@lang:en
873     @@@@@@:
874     The option group to add.
875     @@@InCase:
876     @@@@Label:
877     @@@@@lang:en
878     @@@@@@:Otherwise
879     @@@@Description:
880     @@@@@lang:en
881     @@@@@@:
882     This method has no effect.
883     @@Param:
884     @@@Name: before
885     @@@Type:
886     DOMHTML:HTMLElement
887     @@@Description:
888     @@@@lang:en
889     @@@@@:
890     This method is the equivalent of the
891 wakaba 1.10 <M::DOMCore:Node.insertBefore> method on the parent of
892     <P::before>.
893 wakaba 1.1 @@@InCase:
894     @@@@Value:
895     @@@@@is-null:1
896     @@@@Description:
897     @@@@@lang:en
898     @@@@@@:
899     This method is the equivalent of the
900 wakaba 1.10 <M::DOMCore:Node.appendChild> method.
901 wakaba 1.2 @@@@ImplNote:
902     @@@@@lang:en
903     @@@@@@:
904     It was defined to prepend in DOM Level 1 First Edition -
905     fixed in DOM Level 1 Errata.
906 wakaba 1.1 @@Return:
907     @@@Exception:
908     @@@@Name: NOT_FOUND_ERR
909     @@@@Type:
910     DOMCore:DOMException
911     @@@@Description:
912     @@@@@lang:en
913     @@@@@@:
914 wakaba 1.10 The <P::before> node is not a descendant of this element.
915 wakaba 1.1 @Method:
916     @@Name: remove
917     @@Description:
918     @@@lang:en
919     @@@@:
920 wakaba 1.10 Remove an element from the collection of <HE::option> elements.
921 wakaba 1.1 @@Param:
922     @@@Name: index
923     @@@Type:
924     DOMMain:long
925     @@@Description:
926     @@@@lang:en
927     @@@@@:
928     The ordinal index of the item to remove, starting from
929 wakaba 1.10 <DOM::0>. If no element has the given index,
930 wakaba 1.1 this method has no effect.
931     @@Return:
932     @Method:
933     @@Name: blur
934     @@Description:
935     @@@lang:en
936     @@@@: Remove forcus from this element.
937     @@Return:
938     @Method:
939     @@Name: focus
940     @@Description:
941     @@@lang:en
942     @@@@:Give forcus to this element.
943     @@Return:
944 wakaba 1.11 ##HTMLSelectElement
945 wakaba 1.1
946 wakaba 1.11 IfCls1ETDef:
947 wakaba 1.4 @ETQName:
948     xhtml1:optgroup
949     @IFQName:
950     DOMHTML:HTMLOptGroupElement
951     @ClsQName:ManakaiDOMHTMLOptGroupElement
952     @ISAHTMLElement:
953    
954     @ATTR:
955 wakaba 1.1 @@Name: disabled
956 wakaba 1.8 @@rbool:
957 wakaba 1.1 @@Get:
958     @@@InCase:
959     @@@@Value: true
960     @@@InCase:
961     @@@@Value: false
962     @@Set:
963     @@@InCase:
964     @@@@Value: true
965     @@@InCase:
966     @@@@Value: false
967 wakaba 1.4 @ATTR:
968 wakaba 1.1 @@Name: label
969 wakaba 1.8 @@rcdata:
970 wakaba 1.1 @@Get:
971     @@Set:
972 wakaba 1.11 ##HTMLOptGroupElement
973 wakaba 1.1
974 wakaba 1.11 IfCls1ETDef:
975 wakaba 1.4 @ETQName:
976     xhtml1:option
977     @IFQName:
978     DOMHTML:HTMLOptionElement
979     @ClsQName:
980     ManakaiDOMHTMLOptionElement
981     @ISAHTMLElement:
982    
983 wakaba 1.1 @Attr:
984     @@Name: form
985     @@Description:
986     @@@lang:en
987     @@@@:
988 wakaba 1.10 The <HE::form> element containing this control.
989 wakaba 1.1 @@Get:
990 wakaba 1.4 @@@Type:
991     DOMHTML:HTMLFormElement
992 wakaba 1.1 @@@InCase:
993     @@@@Value:
994     @@@@@is-null:1
995     @@@@Description:
996     @@@@@lang:en
997     @@@@@@:
998     This control is not within the context of a form.
999 wakaba 1.4 @ATTR:
1000     @@AName:selected
1001     @@DOMAName: defaultSelected
1002 wakaba 1.1 @@Description:
1003     @@@lang:en
1004     @@@@:
1005     Whether the option is initially selected or not.
1006     The value of this attribute does not change
1007     if the state of the corresponding form control changes.
1008 wakaba 1.8 @@rbool:
1009 wakaba 1.1 @@Get:
1010     @@@InCase:
1011     @@@@Value: true
1012     @@@InCase:
1013     @@@@Value: false
1014     @@Set:
1015     @@@InCase:
1016     @@@@Value: true
1017     @@@InCase:
1018     @@@@Value: false
1019     @@Level[list]:
1020     1
1021     @@SpecLevel[list]:
1022     1
1023     2
1024     @Attr:
1025     @@Name: text
1026     @@Description:
1027     @@@lang:en
1028     @@@@:
1029 wakaba 1.10 The text contained within the <HE::option> element.
1030 wakaba 1.1 @@Get:
1031     @@@Type: DOMString
1032     @@@Def:
1033 wakaba 1.4 @@@@ContentType:
1034     lang:dis
1035     @@@@DISPerl:cloneCode:
1036 wakaba 1.6 DOMCore:ManakaiDOMNode.textContent.get
1037 wakaba 1.1 @Attr:
1038     @@Name: index
1039     @@Description:
1040     @@@lang:en
1041     @@@@:
1042 wakaba 1.10 The index of this <HE::option> in its parent
1043     <HE::select>, starting from <DOM::0>.
1044 wakaba 1.1 @@ImplNote:
1045     @@@lang:en
1046     @@@@:
1047 wakaba 1.10 Should be <QUOTE::ancestor>, not <QUOTE::parent>?
1048 wakaba 1.1 @@Get:
1049     @@@Type:
1050     DOMMain:long
1051 wakaba 1.2 @@ImplNote:
1052     @@@lang:en
1053     @@@@:
1054     It was writable in DOM Level 1, without description.
1055     It was ammended in DOM Level 1 Errata.
1056 wakaba 1.1 @@Level[list]:
1057     1
1058     @@SpecLevel[list]:
1059     1
1060     2
1061 wakaba 1.4 @ATTR:
1062 wakaba 1.1 @@Name: disabled
1063 wakaba 1.8 @@rbool:
1064 wakaba 1.1 @@Get:
1065     @@@InCase:
1066     @@@@Value: true
1067     @@@InCase:
1068     @@@@Value: false
1069     @@Set:
1070     @@@InCase:
1071     @@@@Value: true
1072     @@@InCase:
1073     @@@@Value: false
1074 wakaba 1.4 @ATTR:
1075 wakaba 1.1 @@Name: label
1076 wakaba 1.8 @@rcdata:
1077 wakaba 1.1 @@Get:
1078     @@Set:
1079     @Attr:
1080     @@Name: selected
1081     @@Description:
1082     @@@lang:en
1083     @@@@:
1084     The current state of the corresponding form control.
1085     Changing this attribute changes the state of the form
1086     control, but does not change the value of the HTML
1087 wakaba 1.10 <HA::selected> attribute.
1088 wakaba 1.1 @@Get:
1089     @@@Type:
1090     DOMMain:boolean
1091     @@@InCase:
1092     @@@@Value: true
1093     @@@InCase:
1094     @@@@Value: false
1095     @@@Def:
1096 wakaba 1.4 @@@@ContentType:
1097 wakaba 1.1 lang:dis
1098     @@@@GetProp:
1099     DOMHTML:selected
1100     @@Set:
1101     @@@Type:
1102     DOMMain:boolean
1103     @@@InCase:
1104     @@@@Value: true
1105     @@@InCase:
1106     @@@@Value: false
1107     @@@Def:
1108 wakaba 1.4 @@@@ContentType:
1109 wakaba 1.1 lang:dis
1110     @@@@SetProp:
1111     DOMHTML:selected
1112 wakaba 1.2 @@@ImplNote:
1113     @@@@lang:en
1114     @@@@@:
1115     Marked as read-only attribute in DOM Level 1 First Edition.
1116     It was ammended in DOM Level 1 Errata.
1117 wakaba 1.4 @ATTR:
1118 wakaba 1.1 @@Name: value
1119 wakaba 1.8 @@rcdata:
1120 wakaba 1.1 @@Get:
1121     @@Set:
1122 wakaba 1.11 ##HTMLOptionElement
1123 wakaba 1.1
1124 wakaba 1.4 PropDef:
1125     @QName:
1126     DOMHTML:selected
1127     @Description:
1128     @@lang:en
1129     @@@:
1130     Whether a subject option element is selected or not.
1131    
1132 wakaba 1.11 IfCls1ETDef:
1133 wakaba 1.4 @ETQName:
1134     xhtml1:input
1135     @IFQName:
1136     DOMHTML:HTMLInputElement
1137     @ClsQName:ManakaiDOMHTMLInputElement
1138     @ISAHTMLElement:
1139    
1140     @ATTR:
1141     @@AName:value
1142     @@DOMAName: defaultValue
1143 wakaba 1.1 @@Description:
1144     @@@lang:en
1145     @@@@:
1146 wakaba 1.10 The initial value of the <HTML::text>, <HTML::file> or
1147     <HTML::password> control.
1148 wakaba 1.8 @@rcdata:
1149 wakaba 1.1 @@Get:
1150     @@Set:
1151 wakaba 1.4 @ATTR:
1152     @@AName:checked
1153     @@DOMAName: defaultChecked
1154 wakaba 1.1 @@Description:
1155     @@@lang:en
1156     @@@@:
1157 wakaba 1.10 The initial state of the <HTML::checkbox> or <HTML::radio>
1158 wakaba 1.1 button control.
1159 wakaba 1.8 @@rbool:
1160 wakaba 1.1 @@Get:
1161     @@@InCase:
1162     @@@@Value: true
1163     @@@InCase:
1164     @@@@Value: false
1165     @@Set:
1166     @@@InCase:
1167     @@@@Value: true
1168     @@@InCase:
1169     @@@@Value: false
1170     @Attr:
1171     @@Name: form
1172     @@Description:
1173     @@@lang:en
1174     @@@@:
1175 wakaba 1.10 The <HE::form> element containing this control.
1176 wakaba 1.1 @@Get:
1177 wakaba 1.4 @@@Type:
1178     DOMHTML:HTMLFormElement
1179 wakaba 1.1 @@@InCase:
1180     @@@@Value:
1181     @@@@@is-null:1
1182     @@@@Description:
1183     @@@@@lang:en
1184     @@@@@@:
1185     This control is not within the context of a form.
1186 wakaba 1.4 @ATTR:
1187 wakaba 1.1 @@Name: accept
1188 wakaba 1.8 @@rcdata:
1189 wakaba 1.1 @@Get:
1190     @@Set:
1191 wakaba 1.4 @ATTR:
1192     @@AName:accesskey
1193     @@DOMAName: accessKey
1194 wakaba 1.11 @@plAName: accesskey
1195 wakaba 1.8 @@rcdata:
1196 wakaba 1.1 @@Get:
1197     @@Set:
1198 wakaba 1.4 @ATTR:
1199 wakaba 1.1 @@Name: align
1200 wakaba 1.4 @@Deprecated:
1201 wakaba 1.8 @@renum:
1202 wakaba 1.1 @@Get:
1203     @@Set:
1204 wakaba 1.4 @ATTR:
1205 wakaba 1.1 @@Name: alt
1206 wakaba 1.8 @@rcdata:
1207 wakaba 1.1 @@Get:
1208     @@Set:
1209     @Attr:
1210     @@Name: checked
1211     @@Description:
1212     @@@lang:en
1213     @@@@:
1214     The current state of the form control. Changes
1215     to this attribute change the state of the control,
1216 wakaba 1.10 but do not change the value of the HTML <HA::checke>
1217     attribute. (When the <HA::type> is either <HTML::radio>
1218     or <HTML::checkbox>.)
1219 wakaba 1.1 \
1220 wakaba 1.10 {NOTE:: During the handling of a <EV::ev:click>
1221 wakaba 1.1 event, some DOM implementations may change
1222 wakaba 1.10 the <A::checked> status before the event
1223 wakaba 1.1 is being dispatched. If the default action
1224 wakaba 1.10 of the event is canceled, the <A::.checked>
1225 wakaba 1.1 state is changed back to the original value.
1226     In other word, the value of this attribute
1227 wakaba 1.10 during the handling of <EV::ev:click> (or
1228     e.g. <EV::ev:DOMActivate>) events
1229 wakaba 1.1 is implementation dependent.
1230     \
1231     }
1232     @@Get:
1233     @@@Type:
1234     DOMMain:boolean
1235     @@@InCase:
1236     @@@@Value: true
1237     @@@InCase:
1238     @@@@Value: false
1239     @@Set:
1240     @@@Type:
1241     DOMMain:boolean
1242     @@@InCase:
1243     @@@@Value: true
1244     @@@InCase:
1245     @@@@Value: false
1246 wakaba 1.4 @ATTR:
1247 wakaba 1.1 @@Name: disabled
1248 wakaba 1.8 @@rbool:
1249 wakaba 1.1 @@Get:
1250     @@@InCase:
1251     @@@@Value: true
1252     @@@InCase:
1253     @@@@Value: false
1254     @@Set:
1255     @@@InCase:
1256     @@@@Value: true
1257     @@@InCase:
1258     @@@@Value: false
1259 wakaba 1.4 @ATTR:
1260     @@AName:maxlength
1261     @@DOMAName: maxLength
1262 wakaba 1.11 @@plAName: maxlength
1263 wakaba 1.8 @@rlong:
1264 wakaba 1.1 @@Get:
1265     @@Set:
1266 wakaba 1.4 @ATTR:
1267 wakaba 1.1 @@Name: name
1268 wakaba 1.8 @@rcdata:
1269 wakaba 1.1 @@Get:
1270     @@Set:
1271 wakaba 1.4 @ATTR:
1272     @@AName:readonly
1273     @@DOMAName: readOnly
1274 wakaba 1.12 @@plAName: readonly
1275 wakaba 1.8 @@rbool:
1276 wakaba 1.1 @@Get:
1277     @@@InCase:
1278     @@@@Value: true
1279     @@@InCase:
1280     @@@@Value: false
1281     @@Set:
1282     @@@InCase:
1283     @@@@Value: true
1284     @@@InCase:
1285     @@@@Value: false
1286 wakaba 1.4 @ATTR:
1287 wakaba 1.1 @@Name: size
1288 wakaba 1.8 @@Type:
1289     @@@@: DOMMain|unsigned-long||ManakaiDOM|all
1290     @@@ForCheck: ManakaiDOM|DOM2
1291     @@actualType:
1292     @@@@: DOMHTML|UnsignedNumeric
1293     @@@ForCheck: ManakaiDOM|DOM2
1294     @@Type:
1295     @@@@: DOMString
1296     @@@ForCheck: !ManakaiDOM|DOM2
1297     @@actualType:
1298     @@@@: DOMHTML|CDATADOMString
1299     @@@ForCheck: !ManakaiDOM|DOM2
1300 wakaba 1.1 @@Get:
1301     @@Set:
1302     @@Level[list]:
1303     1
1304     @@SpecLevel[list]:
1305     1
1306     2
1307 wakaba 1.4 @ATTR:
1308 wakaba 1.1 @@Name: src
1309 wakaba 1.8 @@ruri:
1310 wakaba 1.1 @@Get:
1311     @@Set:
1312 wakaba 1.4 @ATTR:
1313     @@AName:tabindex
1314     @@DOMAName: tabIndex
1315 wakaba 1.8 @@rlong:
1316 wakaba 1.1 @@Get:
1317     @@Set:
1318 wakaba 1.4 @ATTR:
1319 wakaba 1.1 @@Name: type
1320 wakaba 1.8 @@rcdata:
1321 wakaba 1.1 @@Get:
1322     @@Set:
1323 wakaba 1.2 @@@SpecLevel:2
1324     @@@Level:2
1325 wakaba 1.4 @@@L2:
1326 wakaba 1.1 @@Level[list]:
1327     1
1328     2
1329     @@SpecLevel[list]:
1330     1
1331     2
1332 wakaba 1.4 @ATTR:
1333     @@AName:usemap
1334     @@DOMAName: useMap
1335 wakaba 1.11 @@plAName: usemap
1336 wakaba 1.8 @@ruri:
1337 wakaba 1.1 @@Get:
1338     @@Set:
1339     @@ImplNote:
1340     @@@lang:en
1341     @@@@:
1342 wakaba 1.10 The HTML 4 and XHTML 1.0 <HA::usemap> attribute value
1343     is defined as <SGML::%URI;>, while the XHTML m12n
1344     <HA::usemap> value is <XML::IDREF>.
1345 wakaba 1.1 @Attr:
1346     @@Name: value
1347     @@Description:
1348     @@@lang:en
1349     @@@@:
1350 wakaba 1.10 The current value of the <HTML::text>, <HTML::file> or
1351     <HTML::password> control. Changing this attribute
1352 wakaba 1.1 changes the contents of the form control, but does
1353 wakaba 1.10 not change the value of the HTML <HA::value>
1354 wakaba 1.1 attribute.
1355     \
1356 wakaba 1.10 For the <HTML::button>, <HTML::hidden>, <HTML::submit>,
1357     <HTML::reset>, <HTML::image>, <HTML::checkbox> or
1358     <HTML::radio> control, this attribute represents
1359     the HTML <HA::value> attribute.
1360 wakaba 1.2 \
1361     {NOTE:: The DOM Level 1 First Edition described that
1362 wakaba 1.10 this attribute is applied to <HTML::checkbox>
1363     or <HTML::radio> controls. It is ammended
1364 wakaba 1.2 by the DOM Level 1 First Edition Errata.
1365     \
1366     }
1367 wakaba 1.1 @@Get:
1368     @@@Type: DOMString
1369     @@@Description:
1370     @@@@lang:en
1371     @@@@@:
1372     {NOTE:: The actual value may be masked to
1373 wakaba 1.10 prevent unauthorized use for the <HTML::password>
1374 wakaba 1.1 input control.
1375     \
1376     }
1377     @@@ImplNote:
1378     @@@@lang:en
1379     @@@@@:
1380     ISSUE: Some mechanism to mask password required?
1381 wakaba 1.4 @@@PerlDef:
1382 wakaba 1.1 my $type;
1383     __DEEP{
1384 wakaba 1.7 $type = $self-><AG::DOMHTML:HTMLInputElement.type>;
1385 wakaba 1.1 }__;
1386     if ({text => 1, password => 1, file => 1}->{$type}) {
1387 wakaba 1.4 ## TODO:
1388 wakaba 1.6 # __ DISCODE{
1389 wakaba 1.4 # GetProp:
1390     # \ DOMHTML:value
1391     # }__;
1392 wakaba 1.1 } else {
1393 wakaba 1.4 ## TODO:
1394 wakaba 1.6 #__ DISDODE{
1395 wakaba 1.4 # get-attribute-value:
1396     # \ value
1397     #}__;
1398 wakaba 1.1 }
1399     @@Set:
1400 wakaba 1.4 @@@Type:
1401     DOMMain:DOMString
1402 wakaba 1.1 @@@Description:
1403     @@@@lang:en
1404     @@@@@:
1405 wakaba 1.10 {NOTE:: The <A::.value> may be read-only for
1406 wakaba 1.1 the file upload control.
1407     \
1408     }
1409     @@@ImplNote:
1410     @@@@lang:en
1411     @@@@@:
1412     TODO: Switch to make file value unchangable required.
1413 wakaba 1.4 @@@PerlDef:
1414 wakaba 1.1 my $type;
1415     __DEEP{
1416 wakaba 1.4 $type = $self-><AG::DOMHTML:HTMLInputElement.type>;
1417 wakaba 1.1 }__;
1418     if ({text => 1, password => 1, file => 1}->{$type}) {
1419 wakaba 1.4 ## TODO:
1420 wakaba 1.6 #__ DISCODE{
1421 wakaba 1.4 # SetProp:
1422     #\ DOMHTML:value
1423     #}__;
1424 wakaba 1.1 } else {
1425 wakaba 1.6 #__ DISDODE{
1426 wakaba 1.4 # set-attribute-value:
1427     # \ value
1428     #}__;
1429 wakaba 1.1 }
1430     @Method:
1431     @@Name: blur
1432     @@Description:
1433     @@@lang:en
1434     @@@@:
1435     Remove focus from this element.
1436     @@Return:
1437     @Method:
1438     @@Name: focus
1439     @@Description:
1440     @@@lang:en
1441     @@@@:
1442     Give focus to this element.
1443     @@Return:
1444     @Method:
1445     @@Name: select
1446     @@Description:
1447     @@@lang:en
1448     @@@@:
1449     Select the contents of the text area. (For the
1450 wakaba 1.10 <HTML::text>, <HTML::file> or <HTML::password> control).
1451 wakaba 1.1 @@Return:
1452     @Method:
1453     @@Name: click
1454     @@Description:
1455     @@@lang:en
1456     @@@@:
1457 wakaba 1.10 Simulate a mouse click. (For the <HTML::button>,
1458     <HTML::checkbox>, <HTML::radio>, <HTML::reset> or
1459     <HTML::submit> control.
1460 wakaba 1.1 @@Return:
1461 wakaba 1.11 ##HTMLInputElement
1462 wakaba 1.1
1463 wakaba 1.11 IfCls1ETDef:
1464 wakaba 1.4 @ETQName:
1465     xhtml1:textarea
1466     @IFQName:
1467     DOMHTML:HTMLTextAreaElement
1468     @ClsQName:ManakaiDOMHTMLTextAreaElement
1469     @ISAHTMLElement:
1470    
1471 wakaba 1.1 @Attr:
1472     @@Name: defaultValue
1473     @@Description:
1474     @@@lang:en
1475     @@@@:
1476     The initial value of the control, i.e. the contents
1477     of the element. The value of this attribute does
1478     not change if the contents of the corresponding
1479     form control.
1480     @@Get:
1481 wakaba 1.4 @@@Type:
1482     DOMMain:DOMString
1483 wakaba 1.1 @@@Def:
1484 wakaba 1.4 @@@@ContentType:
1485     lang:dis
1486     @@@@DISPerl:cloneCode:
1487 wakaba 1.6 DOMCore:ManakaiDOMNode.textContent.get
1488 wakaba 1.1 @@Set:
1489 wakaba 1.4 @@@Type:
1490     DOMMain:DOMString
1491 wakaba 1.1 @@@Def:
1492 wakaba 1.4 @@@@ContentType:
1493     lang:dis
1494     @@@@DISPerl:cloneCode:
1495 wakaba 1.6 DOMCore:ManakaiDOMNode.textContent.set
1496 wakaba 1.1 @@Level[list]:
1497     1
1498     @@SpecLevel[list]:
1499     1
1500     2
1501     @Attr:
1502     @@Name: form
1503     @@Description:
1504     @@@lang:en
1505     @@@@:
1506 wakaba 1.10 The <HE::form> element containing this control.
1507 wakaba 1.1 @@Get:
1508 wakaba 1.4 @@@Type:
1509     DOMHTML:HTMLFormElement
1510 wakaba 1.1 @@@InCase:
1511     @@@@Value:
1512     @@@@@is-null:1
1513     @@@@Description:
1514     @@@@@lang:en
1515     @@@@@@:
1516     This control is not within the context of a form.
1517 wakaba 1.4 @ATTR:
1518     @@AName:accesskey
1519     @@DOMAName: accessKey
1520 wakaba 1.11 @@plAName: accesskey
1521 wakaba 1.8 @@rcdata:
1522 wakaba 1.1 @@Get:
1523     @@Set:
1524 wakaba 1.4 @ATTR:
1525 wakaba 1.1 @@Name: cols
1526 wakaba 1.8 @@rlong:
1527 wakaba 1.1 @@Get:
1528     @@Set:
1529 wakaba 1.4 @ATTR:
1530 wakaba 1.1 @@Name: disabled
1531 wakaba 1.8 @@rbool:
1532 wakaba 1.1 @@Get:
1533     @@@InCase:
1534     @@@@Value: true
1535     @@@InCase:
1536     @@@@Value: false
1537     @@Set:
1538     @@@InCase:
1539     @@@@Value: true
1540     @@@InCase:
1541     @@@@Value: false
1542 wakaba 1.4 @ATTR:
1543 wakaba 1.1 @@Name: name
1544 wakaba 1.8 @@rcdata:
1545 wakaba 1.1 @@Get:
1546     @@Set:
1547 wakaba 1.4 @ATTR:
1548     @@AName:readonly
1549     @@DOMAName: readOnly
1550 wakaba 1.11 @@plAName: readonly
1551 wakaba 1.8 @@rbool:
1552 wakaba 1.1 @@Get:
1553     @@@InCase:
1554     @@@@Value: true
1555     @@@InCase:
1556     @@@@Value: false
1557     @@Set:
1558     @@@InCase:
1559     @@@@Value: true
1560     @@@InCase:
1561     @@@@Value: false
1562 wakaba 1.4 @ATTR:
1563 wakaba 1.1 @@Name: rows
1564 wakaba 1.8 @@rlong:
1565 wakaba 1.1 @@Get:
1566     @@Set:
1567 wakaba 1.4 @ATTR:
1568     @@AName:tabindex
1569     @@DOMAName: tabIndex
1570 wakaba 1.11 @@plAName: tabindex
1571 wakaba 1.8 @@rlong:
1572 wakaba 1.1 @@Get:
1573     @@Set:
1574     @Attr:
1575     @@Name: type
1576     @@Description:
1577     @@@lang:en
1578     @@@@:
1579     The type of this form control.
1580     @@Get:
1581     @@@Type: DOMString
1582     @@@InCase:
1583     @@@@Value:textarea
1584     @@@@Description:
1585     @@@@@lang:en
1586     @@@@@@:
1587     Always this value.
1588 wakaba 1.2 @@@@ImplNote:
1589     @@@@@lang:en
1590     @@@@@@:
1591     Not defined in DOM Level 1 FE - added in Errata.
1592 wakaba 1.1 @@@DefaultValue:textarea
1593 wakaba 1.4 @@@Def:
1594     @@@@ContentType:
1595     lang:dis
1596     @@@@DISLang:nop:
1597 wakaba 1.1 @Attr:
1598     @@Name: value
1599     @@Description:
1600     @@@lang:en
1601     @@@@:
1602     The current value of the corresponding form control.
1603     Changing this attribute changes the contents of
1604     the form control, but does not changes the contents
1605     of the element.
1606     @@Get:
1607     @@@Type: DOMString
1608     @@@Description:
1609     @@@@lang:en
1610     @@@@@:
1611     The current value. If the entirely of the data
1612 wakaba 1.10 cannot fit into a single <TYPE::DOMstring>,
1613 wakaba 1.1 the DOM implementation may truncate the data.
1614     @@@Def:
1615 wakaba 1.4 @@@@ContentType:
1616 wakaba 1.1 lang:dis
1617     @@@@GetProp:
1618     DOMHTML:value
1619     @@Set:
1620     @@@Type: DOMString
1621     @@@Def:
1622 wakaba 1.4 @@@@ContentType:
1623 wakaba 1.1 lang:dis
1624     @@@@SetProp:
1625     DOMHTML:value
1626     @Method:
1627     @@Name: blur
1628     @@Description:
1629     @@@lang:en
1630     @@@@:
1631     Remove focus from this element.
1632     @@Return:
1633     @Method:
1634     @@Name: focus
1635     @@Description:
1636     @@@lang:en
1637     @@@@:
1638     Give focus to this element.
1639     @@Return:
1640     @Method:
1641     @@Name: select
1642     @@Description:
1643     @@@lang:en
1644     @@@@:
1645 wakaba 1.10 Select the contents of the <HE::textarea>.
1646 wakaba 1.1 @@Return:
1647 wakaba 1.11 ##DOMHTMLTextAreaElement
1648 wakaba 1.1
1649 wakaba 1.4 PropDef:
1650 wakaba 1.7 @QName:
1651     DOMHTML:value
1652 wakaba 1.4 @Description:
1653     @@lang:en
1654     @@@:
1655     The current value of a subject form control.
1656    
1657 wakaba 1.11 IfCls1ETDef:
1658 wakaba 1.4 @ETQName:
1659     xhtml1:button
1660     @IFQName:
1661     DOMHTML:HTMLButtonElement
1662     @ClsQName:ManakaiDOMHTMLButtonElement
1663     @ISAHTMLElement:
1664    
1665 wakaba 1.1 @Attr:
1666     @@Name: form
1667     @@Description:
1668     @@@lang:en
1669     @@@@:
1670 wakaba 1.10 The <HE::form> element containing this control.
1671 wakaba 1.1 @@Get:
1672 wakaba 1.4 @@@Type:
1673     DOMHTML:HTMLFormElement
1674 wakaba 1.1 @@@InCase:
1675     @@@@Value:
1676     @@@@@is-null:1
1677     @@@@Description:
1678     @@@@@lang:en
1679     @@@@@@:
1680     This control is not within the context of a form.
1681 wakaba 1.4 @ATTR:
1682     @@AName:accesskey
1683     @@DOMAName: accessKey
1684 wakaba 1.11 @@plAName: accesskey
1685 wakaba 1.8 @@rcdata:
1686 wakaba 1.1 @@Get:
1687     @@Set:
1688 wakaba 1.4 @ATTR:
1689 wakaba 1.1 @@Name: disabled
1690 wakaba 1.8 @@rbool:
1691 wakaba 1.1 @@Get:
1692     @@@InCase:
1693     @@@@Value: true
1694     @@@InCase:
1695     @@@@Value: false
1696     @@Set:
1697     @@@InCase:
1698     @@@@Value: true
1699     @@@InCase:
1700     @@@@Value: false
1701 wakaba 1.4 @ATTR:
1702 wakaba 1.1 @@Name: name
1703 wakaba 1.8 @@rcdata:
1704 wakaba 1.1 @@Get:
1705     @@Set:
1706 wakaba 1.4 @ATTR:
1707     @@AName:tabindex
1708     @@DOMAName: tabIndex
1709 wakaba 1.11 @@plAName: tabindex
1710 wakaba 1.8 @@rlong:
1711 wakaba 1.1 @@Get:
1712     @@Set:
1713 wakaba 1.4 @ATTR:
1714 wakaba 1.1 @@Name: type
1715 wakaba 1.8 @@renum:
1716 wakaba 1.1 @@Get:
1717 wakaba 1.4 @ATTR:
1718 wakaba 1.1 @@Name: value
1719 wakaba 1.8 @@rcdata:
1720 wakaba 1.1 @@Get:
1721     @@Set:
1722 wakaba 1.11 ##HTMLButtonElement
1723 wakaba 1.6
1724     ResourceDef:
1725     @QName: DOMString
1726     @AliasFor:
1727     DOMMain:DOMString
1728     @ForCheck:
1729     ManakaiDOM:ManakaiDOM
1730 wakaba 1.1
1731 wakaba 1.11 IfCls1ETDef:
1732 wakaba 1.4 @ETQName:
1733     xhtml1:label
1734     @IFQName:
1735     DOMHTML:HTMLLabelElement
1736     @ClsQName:
1737     ManakaiDOMHTMLLabelElement
1738     @ISAHTMLElement:
1739    
1740 wakaba 1.1 @Attr:
1741     @@Name: form
1742     @@Description:
1743     @@@lang:en
1744     @@@@:
1745 wakaba 1.10 The <HE::form> element containing this control.
1746 wakaba 1.1 @@Get:
1747 wakaba 1.4 @@@Type:
1748     DOMHTML:HTMLFormElement
1749 wakaba 1.1 @@@InCase:
1750     @@@@Value:
1751     @@@@@is-null:1
1752     @@@@Description:
1753     @@@@@lang:en
1754     @@@@@@:
1755     This control is not within the context of a form.
1756 wakaba 1.4 @ATTR:
1757     @@AName:accesskey
1758     @@DOMAName: accessKey
1759 wakaba 1.11 @@plAName: accesskey
1760 wakaba 1.8 @@rcdata:
1761 wakaba 1.1 @@Get:
1762     @@Set:
1763 wakaba 1.4 @ATTR:
1764     @@AName:for
1765     @@DOMAName: htmlFor
1766 wakaba 1.8 @@rcdata:
1767 wakaba 1.1 @@Get:
1768     @@Set:
1769 wakaba 1.11 ##HTMLLabelElement
1770 wakaba 1.1
1771 wakaba 1.11 IfCls1ETDef:
1772 wakaba 1.4 @ETQName:
1773     xhtml1:fieldset
1774     @IFQName:
1775     DOMHTML:HTMLFieldSetElement
1776     @ClsQName:ManakaiDOMHTMLFieldSetElement
1777     @ISAHTMLElement:
1778    
1779 wakaba 1.1 @Attr:
1780     @@Name: form
1781     @@Description:
1782     @@@lang:en
1783     @@@@:
1784 wakaba 1.10 The <HE::form> element containing this control.
1785 wakaba 1.1 @@Get:
1786 wakaba 1.4 @@@Type:
1787     DOMHTML:HTMLFormElement
1788 wakaba 1.1 @@@InCase:
1789     @@@@Value:
1790     @@@@@is-null:1
1791     @@@@Description:
1792     @@@@@lang:en
1793     @@@@@@:
1794     This control is not within the context of a form.
1795 wakaba 1.11 ##HTMLFieldSetElement
1796 wakaba 1.1
1797 wakaba 1.11 IfCls1ETDef:
1798 wakaba 1.4 @ETQName:
1799     xhtml1:legend
1800     @IFQName:
1801     DOMHTML:HTMLLegendElement
1802     @ClsQName: ManakaiDOMHTMLLegendElement
1803     @ISAHTMLElement:
1804    
1805 wakaba 1.1 @Attr:
1806     @@Name: form
1807     @@Description:
1808     @@@lang:en
1809     @@@@:
1810 wakaba 1.10 The <HE::form> element containing this control.
1811 wakaba 1.1 @@Get:
1812 wakaba 1.4 @@@Type:
1813     DOMHTML:HTMLFormElement
1814 wakaba 1.1 @@@InCase:
1815     @@@@Value:
1816     @@@@@is-null:1
1817     @@@@Description:
1818     @@@@@lang:en
1819     @@@@@@:
1820     This control is not within the context of a form.
1821 wakaba 1.4 @ATTR:
1822     @@AName:accesskey
1823     @@DOMAName: accessKey
1824 wakaba 1.11 @@plAName: accesskey
1825 wakaba 1.8 @@rcdata:
1826 wakaba 1.1 @@Get:
1827     @@Set:
1828 wakaba 1.4 @ATTR:
1829 wakaba 1.1 @@Name: align
1830 wakaba 1.4 @@Deprecated:
1831 wakaba 1.8 @@renum:
1832 wakaba 1.1 @@Get:
1833     @@Set:
1834 wakaba 1.11 ##HTMLLegendElement
1835 wakaba 1.1
1836 wakaba 1.8 ElementTypeBinding:
1837     @Name: rcdata
1838     @ElementType:
1839     dis:Type
1840     @ShadowContent: DOMString
1841     @ShadowSibling:
1842     @@actualType: DOMHTML|CDATADOMString
1843    
1844     ElementTypeBinding:
1845     @Name: ruri
1846     @ElementType:
1847     dis:Type
1848     @ShadowContent: DOMString
1849     @ShadowSibling:
1850     @@actualType: DOMHTML|URIDOMString
1851    
1852     ElementTypeBinding:
1853     @Name: renum
1854     @ElementType:
1855     dis:Type
1856     @ShadowContent: DOMString
1857     @ShadowSibling:
1858     @@actualType: DOMHTML|EnumDOMString
1859    
1860     ElementTypeBinding:
1861     @Name: rbool
1862     @ElementType:
1863     dis:Type
1864     @ShadowContent: DOMMain|boolean||ManakaiDOM|all
1865     @ShadowSibling:
1866     @@actualType: DOMHTML|Boolean
1867    
1868     ElementTypeBinding:
1869     @Name: rlong
1870     @ElementType:
1871     dis:Type
1872     @ShadowContent: DOMMain|long||ManakaiDOM|all
1873     @ShadowSibling:
1874     @@actualType: DOMHTML|Numeric

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24