/[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.6 - (hide annotations) (download)
Sat May 7 13:56:36 2005 UTC (21 years, 2 months ago) by wakaba
Branch: MAIN
Changes since 1.5: +23 -9 lines
DOMHTML and DOMWebForms now (maybe) compilable

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24