/[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.4 - (hide annotations) (download)
Fri Dec 31 12:03:40 2004 UTC (21 years, 6 months ago) by wakaba
Branch: MAIN
Changes since 1.3: +785 -378 lines
DISPerl:ScalarVariable: new type; domtest: New cdis support

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24