/[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.8 - (hide annotations) (download)
Sun May 22 13:32:00 2005 UTC (21 years, 2 months ago) by wakaba
Branch: MAIN
Changes since 1.7: +100 -142 lines
Reflecting attribute implemented

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24