/[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.2 - (hide annotations) (download)
Tue Oct 19 08:53:22 2004 UTC (21 years, 9 months ago) by wakaba
Branch: MAIN
Changes since 1.1: +57 -8 lines
daily

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24