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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.20 - (hide annotations) (download)
Sun Oct 9 13:57:12 2005 UTC (19 years, 1 month ago) by wakaba
Branch: MAIN
CVS Tags: manakai-release-0-3-2, manakai-release-0-3-1
Changes since 1.19: +5 -99 lines
++ manakai/lib/Message/Markup/ChangeLog	9 Oct 2005 13:49:25 -0000
2005-10-09  Wakaba  <wakaba@suika.fam.cx>

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

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

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

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

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

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

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

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

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

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

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

1 wakaba 1.1 Module:
2 wakaba 1.4 @QName:
3     MDOM:DOMHTML
4 wakaba 1.1 @Namespace:
5 wakaba 1.2 http://suika.fam.cx/~wakaba/archive/2004/dom/html#
6 wakaba 1.7
7 wakaba 1.4 @AppName:
8 wakaba 1.1 @@@: html
9 wakaba 1.4 @@ContentType:
10 wakaba 1.1 lang:IDL-DOM
11     @@prefix: dom.w3c.org
12 wakaba 1.4 @@For:
13 wakaba 1.17 ManakaiDOM:IDL ManakaiDOM:DOM1 !ManakaiDOM|DOM2
14 wakaba 1.4 @AppName:
15 wakaba 1.1 @@@: html2
16 wakaba 1.4 @@ContentType:
17 wakaba 1.1 lang:IDL-DOM
18     @@prefix: dom.w3c.org
19 wakaba 1.4 @@For:
20     ManakaiDOM:IDL ManakaiDOM:DOM2
21 wakaba 1.7
22 wakaba 1.1 @FullName:
23     @@lang:en
24     @@@: DOM HTML Module
25 wakaba 1.4
26 wakaba 1.1 @Description:
27     @@lang:en
28     @@@:
29     The DOM HTML Module provides objects and methods specific
30 wakaba 1.7 to HTML 4 documents and XHTML 1.0 documents. The HTML
31 wakaba 1.1 DOM exposes a number of convinience methods and attributes
32     that are more appropriate to script writers. These
33     enhancements rely on transitional or frameset DTDs
34 wakaba 1.7 of HTML 4.0 <SRC::DOM Level 1 HTML> or HTML 4.01
35     <SRC::DOM Level 2 HTML> and XHTML 1.0 <SRC::DOM Level 2 HTML>.
36     \
37     Form related interfaces are provided by a separate
38 wakaba 1.15 module, <Module::MDOM:DOMWebForms>.
39 wakaba 1.1
40 wakaba 1.17 @DISCore:author: DISCore|Wakaba
41 wakaba 1.1 @License:
42     license:Perl+MPL
43 wakaba 1.4 @Date:
44     @@@:
45 wakaba 1.20 $Date: 2005/09/25 14:53:03 $
46 wakaba 1.4 @@ContentType:
47     dis:Date.RCS
48    
49     @DefaultFor:
50     ManakaiDOM:ManakaiDOMLatest
51    
52     @Require:
53     @@Module:
54 wakaba 1.7 @@@QName:
55     DISlib:DISMarkup
56     @@@WithFor:
57     ManakaiDOM:all
58 wakaba 1.4 @@Module:
59 wakaba 1.17 @@@QName: MDOM|DOMXML
60     @@@WithFor: ManakaiDOM|ManakaiDOMLatest
61     @@Module:
62     @@@QName: MDOM|DOMWebForms
63     @@@WithFor: ManakaiDOM|ManakaiDOMLatest
64 wakaba 1.4 @@Module:
65 wakaba 1.17 @@@QName: MDOM|DOMHTML
66     @@@WithFor: ManakaiDOM|ManakaiDOM
67 wakaba 1.4 @@Module:
68 wakaba 1.17 @@@QName: MDOM|DOMHTML
69     @@@WithFor: ManakaiDOM|ManakaiDOM1
70 wakaba 1.4 @@Module:
71 wakaba 1.17 @@@QName: MDOM|DOMHTML
72     @@@WithFor: ManakaiDOM|ManakaiDOM2
73 wakaba 1.4 @@Module:
74 wakaba 1.17 @@@QName: MDOM|DOMHTML
75     @@@WithFor: ManakaiDOM|ManakaiDOMLatest
76 wakaba 1.4 @@Module:
77 wakaba 1.17 @@@QName: MDOM|DOMHTML
78     @@@WithFor: DOMHTML|ForHTML40SE
79 wakaba 1.4 @@Module:
80 wakaba 1.17 @@@QName: MDOM|DOMHTML
81     @@@WithFor: DOMHTML|ForHTML401
82 wakaba 1.11 @@Module:
83 wakaba 1.17 @@@QName: MDOM|DOMHTML
84     @@@WithFor: DOMHTML|ForXHTML10SE
85 wakaba 1.4
86     Namespace:
87     @dis:
88     http://suika.fam.cx/~wakaba/archive/2004/8/18/lang#dis--
89     @dis2pm:
90     http://suika.fam.cx/~wakaba/archive/2004/11/8/dis2pm#
91 wakaba 1.7 @DISlib:
92     http://suika.fam.cx/~wakaba/archive/2004/dis/
93 wakaba 1.4 @DOMHTML:
94     http://suika.fam.cx/~wakaba/archive/2004/dom/html#
95     @DOMMain:
96     http://suika.fam.cx/~wakaba/archive/2004/dom/main#
97 wakaba 1.16 @DOMMetaImpl:
98     http://suika.fam.cx/~wakaba/archive/2004/dom/meta#
99 wakaba 1.17 @f:
100     http://suika.fam.cx/~wakaba/archive/2004/dom/feature#
101     @html5:
102     http://www.w3.org/1999/xhtml
103 wakaba 1.4 @infoset:
104 wakaba 1.17 http://www.w3.org/2001/04/infoset#
105     @kwd:
106     http://suika.fam.cx/~wakaba/archive/2005/rfc2119/
107 wakaba 1.4 @lang:
108 wakaba 1.17 http://suika.fam.cx/~wakaba/archive/2004/8/18/lang#
109 wakaba 1.4 @license:
110 wakaba 1.17 http://suika.fam.cx/~wakaba/archive/2004/8/18/license#
111 wakaba 1.4 @ManakaiDOM:
112     http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom#
113     @ManakaiDOMCore:
114     http://suika.fam.cx/~wakaba/archive/2004/mdom-core#
115     @ManakaiDOMHTML:
116     http://suika.fam.cx/~wakaba/archive/2004/mdom/html#
117     @MDOM:
118     http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom#ManakaiDOM.
119     @MDOMX:
120     http://suika.fam.cx/~wakaba/archive/2004/8/4/manakai-dom-exception#
121     @null:
122     http://suika.fam.cx/~wakaba/-temp/2003/09/27/null
123     @rdf:
124     http://www.w3.org/1999/02/22-rdf-syntax-ns#
125     @rdfs:
126     http://www.w3.org/2000/01/rdf-schema#
127     @s:
128     http://suika.fam.cx/~wakaba/archive/2004/dis/Markup#
129     @TreeCore:\
130     @xhtml1:
131     http://www.w3.org/1999/xhtml
132 wakaba 1.7 @xml:
133     http://www.w3.org/XML/1998/namespace
134     @xmlns:
135     http://www.w3.org/2000/xmlns/
136    
137     ImplNote:
138     @lang:en
139     @@:
140     {TODO:: Lowercase'ize Perl method/attribute names.
141     \
142     ISSUE: Should createTHead be createThead?
143     \
144     }
145 wakaba 1.4
146     ## -- "For HTML"
147    
148     ForDef:
149     @QName:
150     DOMHTML:ForHTML
151     @ISA:
152     s:ForML
153     @FullName:
154     @@lang:en
155     @@@:
156 wakaba 1.7 For Hypertext Markup Language (HTML), any version
157 wakaba 1.4
158     ForDef:
159     @QName:
160     DOMHTML:ForClassicHTML
161     @ISA:
162     DOMHTML:ForHTML
163     @FullName:
164     @@lang:en
165     @@@:
166 wakaba 1.7 For non-XML-based HTML, any version
167 wakaba 1.4
168     ForDef:
169 wakaba 1.17 @QName: DOMHTML|ForSGMLHTML
170     @ISA: DOMHTML|ForClassicHTML
171     @enFN: For SGML-based HTML, any version
172    
173     ElementTypeBinding:
174     @Name: enFN
175     @ElementType:
176     dis:FullName
177     @ShadowContent:
178     @@lang:en
179    
180     ForDef:
181 wakaba 1.4 @QName:
182     DOMHTML:ForHTML4
183 wakaba 1.17 @ISA: DOMHTML|ForSGMLHTML
184 wakaba 1.4 @FullName:
185     @@lang:en
186     @@@: For HTML 4
187    
188     ForDef:
189     @QName:
190     DOMHTML:ForHTML40
191     @ISA:
192     DOMHTML:ForHTML4
193     @FullName:
194     @@lang:en
195     @@@: For HTML 4.0
196    
197     ForDef:
198     @QName:
199     DOMHTML:ForHTML40FE
200     @ISA:
201     DOMHTML:ForHTML40
202     @FullName:
203     @@lang:en
204     @@@: For HTML 4.0 first edition
205    
206     ForDef:
207     @QName:
208     DOMHTML:ForHTML40SE
209     @ISA:
210     DOMHTML:ForHTML40
211     @FullName:
212     @@lang:en
213     @@@:
214     For HTML 4.0 second edition
215    
216     ForDef:
217     @QName:
218     DOMHTML:ForHTML401
219     @ISA:
220     DOMHTML:ForHTML4
221     @FullName:
222     @@lang:en
223     @@@:
224     For HTML 4.01
225    
226     ForDef:
227     @QName:
228     DOMHTML:ForXHTML
229     @ISA:
230     DOMHTML:ForHTML
231     @FullName:
232     @@lang:en
233     @@@:
234 wakaba 1.7 For XHTML, compatible with W3C XHTML 1, any version
235 wakaba 1.4
236     ForDef:
237     @QName:
238     DOMHTML:ForXHTML1
239     @ISA:
240     DOMHTML:ForXHTML
241     @FullName:
242     @@lang:en
243     @@@:
244     For XHTML 1
245    
246     ForDef:
247     @QName:
248     DOMHTML:ForXHTML10
249     @ISA:
250     DOMHTML:ForXHTML1
251     @FullName:
252     @@lang:en
253     @@@:
254     For XHTML 1.0
255    
256     ForDef:
257     @QName:
258     DOMHTML:ForXHTML10FE
259     @ISA:
260     DOMHTML:ForXHTML10
261     @FullName:
262     @@lang:en
263     @@@: For XHTML 1.0 First Edition
264    
265     ForDef:
266     @QName:
267     DOMHTML:ForXHTML10SE
268     @ISA:
269     DOMHTML:ForXHTML10
270     @FullName:
271     @@lang:en
272     @@@: For XHTML 1.0 Second Edition
273    
274     ForDef:
275     @QName:
276     DOMHTML:ForXHTML1m12n
277     @ISA:
278     DOMHTML:ForXHTML1
279     @FullName:
280     @@lang:en
281     @@@:
282     For modularized XHTML 1
283    
284     ## TODO: FE and SE required
285    
286     ForDef:
287     @QName:
288     DOMHTML:ForXHTML11
289     @ISA:
290     DOMHTML:ForXHTML1m12n
291     @FullName:
292     @@lang:en
293     @@@: For XHTML 1.1
294    
295 wakaba 1.11 ForDef:
296     @QName: DOMHTML|ForHTML5
297     @FullName:
298     @@lang:en
299     @@@:
300     For HTML 5 (Work in progress)
301     @ISA: DOMHTML|ForHTML
302    
303 wakaba 1.4 ## -- Features
304 wakaba 1.1
305 wakaba 1.4 ElementTypeBinding:
306     @Name: FeatureDef
307     @ElementType:
308     dis:ResourceDef
309     @ShadowContent:
310 wakaba 1.17 @@rdf:type: f|Feature
311     @@For: =ManakaiDOM|all
312 wakaba 1.7
313 wakaba 1.4 ElementTypeBinding:
314     @Name: FeatureVerDef
315     @ElementType:
316     dis:ResourceDef
317     @ShadowContent:
318 wakaba 1.17 @@rdf:type: f|Feature
319 wakaba 1.4
320     ElementTypeBinding:
321     @Name: featureName
322     @ElementType:
323 wakaba 1.17 f:name
324 wakaba 1.4 @ShadowContent:
325 wakaba 1.17 @@ContentType: DISCore|String
326 wakaba 1.4
327 wakaba 1.11 ElementTypeBinding:
328     @Name: featureQName
329     @ElementType:
330 wakaba 1.17 f:name
331 wakaba 1.11 @ShadowContent:
332 wakaba 1.17 @@ContentType: DISCore|QName
333 wakaba 1.11
334 wakaba 1.4 FeatureDef:
335     @featureName: HTML
336     @QName: HTMLFeature
337     @FeatureVerDef:
338 wakaba 1.1 @@Version:1.0
339 wakaba 1.4 @@QName: HTMLFeature10
340 wakaba 1.7 @@DOMMetaImpl:instanceFeatureOf: HTMLFeature
341     @@FullName:
342     @@@@: DOM Level 1 HTML
343     @@@lang:en
344 wakaba 1.1 @@ImplNote:
345     @@@lang:en
346     @@@@:
347     The DOM Level 2 HTML Specification does not say DOM Level 2
348 wakaba 1.15 HTML implementations to answer to <M::DOMCore:DOMImplementation
349     ::ManakaiDOM:ManakaiDOM2.hasFeature> of
350     <FeatureVer::1.0> as <DOM::true>. In fact, DOM Level 1 and 2
351     are incompatible.
352 wakaba 1.4 @@DOMMain:requireFeature:
353     DOMCore:CoreFeature10
354     @FeatureVerDef:
355 wakaba 1.1 @@Version:2.0
356 wakaba 1.4 @@QName: HTMLFeature20
357 wakaba 1.7 @@DOMMetaImpl:instanceFeatureOf: HTMLFeature
358     @@FullName:
359     @@@@: DOM Level 2 HTML
360     @@@lang:en
361 wakaba 1.17 @@enDesc:
362     Note that the <Feature::HTML> feature version <FeatureVer::2.0>
363     is <EM::incompatible> with <FeatureVer::1.0>.
364 wakaba 1.4 @@DOMMain:requireFeature:
365     DOMCore:CoreFeature20
366    
367     FeatureDef:
368     @featureName: XHTML
369     @QName: XHTMLFeature
370     @FeatureVerDef:
371 wakaba 1.1 @@Version:2.0
372 wakaba 1.7 @@FullName:
373     @@@@: DOM Level 2 HTML (with XHTML support)
374     @@@lang:en
375 wakaba 1.4 @@QName: XHTMLFeature20
376 wakaba 1.7 @@DOMMetaImpl:instanceFeatureOf: XHTMLFeature
377 wakaba 1.18 @@DOMFeature:extends: HTMLFeature20
378     @@DOMFeature:extends:
379 wakaba 1.4 DOMXML:XMLFeature20
380     @@Description:
381 wakaba 1.1 @@@lang:en
382     @@@@:
383 wakaba 1.4 DOM Level 2 HTML with XHTML support.
384     It is equal to <Feature::XML> / <FeatureVer::2.0> and
385     <Feature::HTML> / <FeatureVer::2.0>.
386    
387 wakaba 1.11 ## -- Datatypes
388    
389 wakaba 1.4 ElementTypeBinding:
390     @Name: DataTypeAlias
391     @ElementType:
392     dis:ResourceDef
393     @ShadowContent:
394 wakaba 1.17 @@rdf:type: DISLang|AnyDataType
395     @@ForCheck: ManakaiDOM|DOM
396 wakaba 1.1
397     DataTypeAlias:
398     @Name: DOMString
399 wakaba 1.4 @AliasFor:
400     @@@:
401     DOMMain:DOMString
402     @@For:
403     !ManakaiDOM:IDL
404     @Def:
405     @@For:
406     ManakaiDOM:IDL
407     @@ContentType:
408     lang:dis
409     @@DISLang:dataTypeAliasFor:
410     DOMMain:DOMString
411 wakaba 1.7
412 wakaba 1.1 DataTypeAlias:
413     @Name: Node
414 wakaba 1.4 @AliasFor:
415     @@@:
416     DOMCore:Node
417     @@For:
418     !ManakaiDOM:IDL
419     @Def:
420     @@For:
421     ManakaiDOM:IDL
422     @@ContentType:
423     lang:dis
424     @@DISLang:dataTypeAliasFor:
425     DOMCore:Node
426 wakaba 1.7
427 wakaba 1.1 DataTypeAlias:
428     @Name: Document
429 wakaba 1.4 @AliasFor:
430     @@@:
431     DOMCore:Document
432     @@For:
433     !ManakaiDOM:IDL
434     @Def:
435     @@For:
436     ManakaiDOM:IDL
437     @@ContentType:
438     lang:dis
439     @@DISLang:dataTypeAliasFor:
440     DOMCore:Document
441 wakaba 1.7
442 wakaba 1.1 DataTypeAlias:
443     @Name: NodeList
444 wakaba 1.4 @AliasFor:
445     @@@:
446     DOMCore:NodeList
447     @@For:
448     !ManakaiDOM:IDL
449     @Def:
450     @@For:
451     ManakaiDOM:IDL
452     @@ContentType:
453     lang:dis
454     @@DISLang:dataTypeAliasFor:
455     DOMCore:NodeList
456 wakaba 1.7
457 wakaba 1.1 DataTypeAlias:
458     @Name: Element
459 wakaba 1.4 @AliasFor:
460     @@@:
461     DOMCore:Element
462     @@For:
463     !ManakaiDOM:IDL
464     @Def:
465     @@For:
466     ManakaiDOM:IDL
467     @@ContentType:
468     lang:dis
469     @@DISLang:dataTypeAliasFor:
470     DOMCore:Element
471 wakaba 1.1
472 wakaba 1.11 ElementTypeBinding:
473     @Name: ReflectTypeDef
474     @ElementType:
475     dis:ResourceDef
476     @ShadowContent:
477 wakaba 1.17 @@rdf:type: DISLang|AnyDataType
478 wakaba 1.11 @@ForCheck: !ManakaiDOM|IDL
479 wakaba 1.17 @@For: ManakaiDOM|DOM
480 wakaba 1.11
481     ReflectTypeDef:
482     @QName: CDATADOMString
483     @enDesc:
484     <IF::DOMMain:DOMString> for DOM attributes reflecting
485     <SGML::CDATA> element attributes.
486     @rdfs:subClassOf: DOMString
487     @ResourceDef:
488     @@rdf:type: DOMMain|ReflectGet
489     @@DefaultValue: \
490     @@enDesc:
491     The DOM attribute returns the current value of the element attribute
492     in a transparent, case-sensitive manner.
493     \
494     If the element attribute is absent, the default value, if any,
495     or the empty string is returned.
496 wakaba 1.17 @@PerlCDef:
497 wakaba 1.11 my $ao = $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
498     ->{<Q::null:>}->{$LOCAL_NAME} ||
499     $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
500     ->{<Q::ManakaiDOM:noNS>}->{$LOCAL_NAME};
501     if ($ao) {
502     my $attr;
503     __CODE{ManakaiNode:getWeakReference||ManakaiDOM:Perl::
504     $object => $ao, $ref => $attr,
505     $class => {<ClassName::DOMCore:ManakaiDOMAttr>},
506     }__;
507     __DEEP{
508     $r = $ao-><AG::DOMCore:Attr.value>;
509     }__;
510     }
511     @ResourceDef:
512     @@QName: CDATADOMStringSet
513     @@rdf:type: DOMMain|ReflectSet
514     @@enDesc:
515     The corresponding element attribute is set to the given value,
516     in a transparent, case-sensitive manner.
517     @@ImplNote:
518     @@@lang:en
519     @@@@:
520     What will happen if the <DOM::null> value is given?
521 wakaba 1.17 @@PerlCDef:
522 wakaba 1.11 my $ao = $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
523     ->{<Q::null:>}->{$LOCAL_NAME} ||
524     $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
525     ->{<Q::ManakaiDOM:noNS>}->{$LOCAL_NAME};
526     if ($ao) {
527     my $attr;
528     __CODE{ManakaiNode:getWeakReference||ManakaiDOM:Perl::
529     $object => $ao, $ref => $attr,
530     $class => {<ClassName::DOMCore:ManakaiDOMAttr>},
531     }__;
532     __DEEP{
533     $ao-><AS::DOMCore:Attr.value> ($given);
534     }__;
535     } else {
536     __DEEP{
537     __FOR{ManakaiDOM|DOM2::
538     $self-><M::DOMCore:Element.setAttributeNS>
539     (null, $LOCAL_NAME => $given);
540     }__;
541     __FOR{!ManakaiDOM|DOM2::
542     $self-><M::DOMCore:Element.setAttribute> ($LOCAL_NAME => $given);
543     }__;
544     }__;
545     }
546    
547     ReflectTypeDef:
548     @QName: EnumDOMString
549     @enDesc:
550     <IF::DOMMain:DOMString> for DOM attributes reflecting
551     element attributes which is defined to only allow a specific
552     set of values.
553     @rdfs:subClassOf: DOMString
554     @ResourceDef:
555     @@rdf:type: DOMMain|ReflectGet
556     @@DefaultValue: \
557     @@enDesc:
558     The DOM attribute returns the current value of the element attribute
559     in lowercase.
560     \
561     If the element attribute is absent, the default value, if any,
562     or the empty string is returned.
563 wakaba 1.17 @@PerlCDef:
564 wakaba 1.11 my $ao = $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
565     ->{<Q::null:>}->{$LOCAL_NAME} ||
566     $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
567     ->{<Q::ManakaiDOM:noNS>}->{$LOCAL_NAME};
568     if ($ao) {
569     my $attr;
570     __CODE{ManakaiNode:getWeakReference||ManakaiDOM:Perl::
571     $object => $ao, $ref => $attr,
572     $class => {<ClassName::DOMCore:ManakaiDOMAttr>},
573     }__;
574     __DEEP{
575     $r = lc $ao-><AG::DOMCore:Attr.value>;
576     }__;
577     }
578     @ResourceDef:
579     @@rdf:type: DOMMain|ReflectSet
580     @@enDesc:
581     The corresponding element attribute is set to the given value,
582     in a transparent, case-sensitive manner.
583     @@ImplNote:
584     @@@lang:en
585     @@@@:
586     What will happen if the <DOM::null> value is given?
587 wakaba 1.17 @@disCDef:
588 wakaba 1.11 @@@DISPerl:cloneCode: CDATADOMStringSet
589    
590     ReflectTypeDef:
591     @QName: URIDOMString
592     @enDesc:
593     <IF::DOMMain:DOMString> for DOM attributes reflecting
594     element attributes defined to contain a IRI.
595     @rdfs:subClassOf: DOMString
596     @ResourceDef:
597     @@rdf:type: DOMMain|ReflectGet
598     @@DefaultValue: \
599     @@enDesc:
600     The DOM attribute returns the current value of the element attribute,
601     resolved to an absolute IRI.
602     \
603     If the element attribute is absent, the default value, if any,
604     or the empty string is returned.
605     @@ImplNote:
606     @@@lang:en
607     @@@@:
608     {TODO:: Resolving.
609     \
610     }
611 wakaba 1.17 @@PerlCDef:
612 wakaba 1.11 my $ao = $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
613     ->{<Q::null:>}->{$LOCAL_NAME} ||
614     $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
615     ->{<Q::ManakaiDOM:noNS>}->{$LOCAL_NAME};
616     if ($ao) {
617     my $attr;
618     __CODE{ManakaiNode:getWeakReference||ManakaiDOM:Perl::
619     $object => $ao, $ref => $attr,
620     $class => {<ClassName::DOMCore:ManakaiDOMAttr>},
621     }__;
622     __DEEP{
623     $r = $ao-><AG::DOMCore:Attr.value>;
624     }__;
625     }
626     @ResourceDef:
627     @@rdf:type: DOMMain|ReflectSet
628     @@enDesc:
629     The corresponding element attribute is set to the given literal value.
630     @@ImplNote:
631     @@@lang:en
632     @@@@:
633     What will happen if the <DOM::null> value is given?
634 wakaba 1.17 @@disCDef:
635 wakaba 1.11 @@@DISPerl:cloneCode: CDATADOMStringSet
636    
637     ReflectTypeDef:
638     @QName: Boolean
639     @enDesc:
640     <IF::DOMMain:boolean::ManakaiDOM:all> for DOM attributes reflecting
641     boolean element attributes.
642     @rdfs:subClassOf: DOMMain|boolean||ManakaiDOM|all
643     @ResourceDef:
644     @@rdf:type: DOMMain|ReflectGet
645     @@DefaultValue: false
646     @@enDesc:
647     The DOM attribute returns <DOM::true> if the element attribute
648     is set and <DOM::false> if it is absent.
649 wakaba 1.17 @@PerlCDef:
650 wakaba 1.11 my $ao = $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
651     ->{<Q::null:>}->{$LOCAL_NAME} ||
652     $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
653     ->{<Q::ManakaiDOM:noNS>}->{$LOCAL_NAME};
654     $r = $ao ? true : false;
655     @ResourceDef:
656     @@rdf:type: DOMMain|ReflectSet
657     @@enDesc:
658     The element attribute is removed if the DOM attribute
659     is set to <DOM::false> and is set to have the same
660     value as its local name if the DOM attribute is set to <DOM::true>.
661 wakaba 1.17 @@PerlCDef:
662 wakaba 1.11 my $ao = $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
663     ->{<Q::null:>}->{$LOCAL_NAME} ||
664     $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
665     ->{<Q::ManakaiDOM:noNS>}->{$LOCAL_NAME};
666     if ($ao) {
667     if ($given) {
668     my $attr;
669     __CODE{ManakaiNode:getWeakReference||ManakaiDOM:Perl::
670     $object => $ao, $ref => $attr,
671     $class => {<ClassName::DOMCore:ManakaiDOMAttr>},
672     }__;
673     __DEEP{
674     $ao-><AS::DOMCore:Attr.value> ($LOCAL_NAME);
675     }__;
676     } else {
677     if ($self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
678     ->{<Q::null:>}->{$LOCAL_NAME}) {
679     CORE::delete $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
680     ->{<Q::null:>}->{$LOCAL_NAME};
681     } else {
682     CORE::delete $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
683     ->{<Q::ManakaiDOM:noNS>}->{$LOCAL_NAME};
684     }
685     CORE::delete $ao->{<Q::infoset:ownerElement>};
686 wakaba 1.14 $ao-><M::NodeStem.orphanate>;
687 wakaba 1.11 }
688     } else {
689     if ($given) {
690     __DEEP{
691     __FOR{ManakaiDOM|DOM2::
692     $self-><M::DOMCore:Element.setAttributeNS>
693     (null, $LOCAL_NAME => $LOCAL_NAME);
694     }__;
695     __FOR{!ManakaiDOM|DOM2::
696     $self-><M::DOMCore:Element.setAttribute>
697     ($LOCAL_NAME => $LOCAL_NAME);
698     }__;
699     }__;
700     }
701     }
702    
703     ReflectTypeDef:
704     @QName: Numeric
705     @enDesc:
706     <IF::DOMMain:long::ManakaiDOM:all> for DOM attributes reflecting
707     number element attributes.
708     @rdfs:subClassOf: DOMMain|long||ManakaiDOM|all
709     @ResourceDef:
710     @@rdf:type: DOMMain|ReflectGet
711     @@DefaultValue: 0
712     @@enDesc:
713     The DOM attribute returns a numeric type value converted
714     from the element attribute value. If the convertion
715     fails or if the element attribute is absent, then
716     the default value is returned or <DOM::0> if there is
717     no default value.
718 wakaba 1.17 @@PerlCDef:
719 wakaba 1.11 my $ao = $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
720     ->{<Q::null:>}->{$LOCAL_NAME} ||
721     $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
722     ->{<Q::ManakaiDOM:noNS>}->{$LOCAL_NAME};
723     if ($ao) {
724     my $attr;
725     __CODE{ManakaiNode:getWeakReference||ManakaiDOM:Perl::
726     $object => $ao, $ref => $attr,
727     $class => {<ClassName::DOMCore:ManakaiDOMAttr>},
728     }__;
729     __DEEP{
730     $r = $ao-><AG::DOMCore:Attr.value>;
731     }__;
732     __CODE{convertToNumericType::
733     $original => $r,
734     $result => $r,
735     $default => {0},
736     }__;
737     }
738     @@ImplNote:
739     @@@lang:en
740     @@@@:
741     {TODO:: Default value other than 0.
742     \
743     }
744     @ResourceDef:
745     @@rdf:type: DOMMain|ReflectSet
746     @@enDesc:
747     The given value is converted to a string representing
748     the number in decimal (base ten) and then that
749     string is set to the element attribute.
750     @@QName: NumericSet
751 wakaba 1.17 @@PerlCDef:
752 wakaba 1.11 my $ao = $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
753     ->{<Q::null:>}->{$LOCAL_NAME} ||
754     $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
755     ->{<Q::ManakaiDOM:noNS>}->{$LOCAL_NAME};
756     if ($ao) {
757     my $attr;
758     __CODE{ManakaiNode:getWeakReference||ManakaiDOM:Perl::
759     $object => $ao, $ref => $attr,
760     $class => {<ClassName::DOMCore:ManakaiDOMAttr>},
761     }__;
762     __DEEP{
763     $ao-><AS::DOMCore:Attr.value> (0 + $given);
764     }__;
765     } else {
766     __DEEP{
767     __FOR{ManakaiDOM|DOM2::
768     $self-><M::DOMCore:Element.setAttributeNS>
769     (null, $LOCAL_NAME => 0 + $given);
770     }__;
771     __FOR{!ManakaiDOM|DOM2::
772     $self-><M::DOMCore:Element.setAttribute> ($LOCAL_NAME => 0 + $given);
773    
774     }__;
775     }__;
776     }
777    
778     @ResourceDef:
779     @@rdf:type: dis2pm|BlockCode
780     @@QName: convertToNumericType
781     @@enDesc:
782     Converts a string to a number.
783     \
784     When an HTML 5 (work in progress) user agent needs to
785     convert a string to a number, algorithms equivalent
786     to those specified in ECMA 262 section 9.3.1
787     <sw010:csection::ToNumber Applied to the String Type> and
788     8.5 <sw010:csection::The Number type> should be used
789     (possibly after suitably altering the algorithms to handle
790     numbers of the range that the user agent can support).
791     @@ImplNote:
792     @@@lang:en
793     @@@@:
794     - StringNumericLiteral := [StrWhiteSpace]
795     [StrNumericLiteral [StrWhiteSpace]]
796     \
797     - StrWhiteSpace := 1*StrWhiteSpaceChar
798     \
799     - StrWhiteSpaceChar := TAB / SP / NBSP / FF / VT / CR / LF / LS / PS / USP
800     ;; U+0009 / U+0020 / U+00A0 / U+000C / U+000D /
801     U+000A / U+2028 / U+2029 / Zs
802     \
803     - StrNumericLiteral := StrDecimalLiteral / HexIntegerLiteral
804     \
805     - StrDecimalLiteral := ["+" / "-"] StrUnsignedDecimalLiteral
806     \
807     - StrUnsignedDecimalLiteral := 'Infinity' /
808     1*DIGIT ["." 0*DIGIT] [ExponentPart] /
809     "." 1*DIGIT [ExponentPart]
810     \
811     - ExponentPart := "E" SignedInteger
812     \
813     - SignedInteger := ["+" / "-"] 1*DIGIT
814     \
815     - HexIntegerLiteral := "0x" 1*HEXDIGIT
816     @@ImplNote:
817     @@@lang:en
818     @@@@:
819     ECMA 262 3rd edition (1999) references Unicode 2.1
820     and section 7.2 <sw10:csection::White Space>
821     cites Unicode without version number, while section 6
822     <sw10:csection::Source Text> refers Unicode 2.1 or later.
823 wakaba 1.17 @@PerlCDef:
824 wakaba 1.11 if ($original =~ m{
825     \A [\x09\x0A\x0C\x0D\x20\u{00A0}\u{2028}\u{2029}\pZs]*
826    
827     (?: (
828    
829     ## Decimal
830    
831     [+-] (?: [0-9]+(?:\.[0-9]*)?([eE][+-][0-9]+)? |
832     \.[0-9]+ ([eE][+-][0-9]+)? |
833     Infinity ) |
834    
835     ## Hex
836    
837     0[xX][0-9A-Fa-f]+
838    
839     )
840    
841     [\x09\x0A\x0C\x0D\x20\u{00A0}\u{2028}\u{2029}\pZs]* )? \z
842     }s) {
843     my $__str = $1;
844     if (defined $__str) {
845     if (lc substr ($__str, 0, 2) eq '0x') {
846     $result = hex $__str;
847     } else {
848     $result = 0 + $__str;
849     }
850     ## BUG: Infinity is not supported
851     } else {
852     $result = +0;
853     }
854     } else { ## NaN
855     $result = $default;
856     }
857    
858     ReflectTypeDef:
859     @QName: UnsignedNumeric
860     @enDesc:
861     <IF::DOMMain:unsigned-long::ManakaiDOM:all> for DOM attributes reflecting
862     number element attributes.
863     @rdfs:subClassOf: DOMMain|unsigned-long||ManakaiDOM|all
864     @ResourceDef:
865     @@rdf:type: DOMMain|ReflectGet
866     @@DefaultValue: 0
867     @@enDesc:
868     The DOM attribute returns a numeric type value converted
869     from the element attribute value. If the convertion
870     fails or if the element attribute is absent, then
871     the default value is returned or <DOM::0> if there is
872     no default value.
873 wakaba 1.17 @@PerlCDef:
874 wakaba 1.11 my $ao = $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
875     ->{<Q::null:>}->{$LOCAL_NAME} ||
876     $self->{<Q::TreeCore:node>}->{<Q::infoset:attributes>}
877     ->{<Q::ManakaiDOM:noNS>}->{$LOCAL_NAME};
878     if ($ao) {
879     my $attr;
880     __CODE{ManakaiNode:getWeakReference||ManakaiDOM:Perl::
881     $object => $ao, $ref => $attr,
882     $class => {<ClassName::DOMCore:ManakaiDOMAttr>},
883     }__;
884     __DEEP{
885     $r = $ao-><AG::DOMCore:Attr.value>;
886     }__;
887     __CODE{convertToNumericType::
888     $original => $r,
889     $result => $r,
890     $default => {0},
891     }__;
892     $r = 0 if $r < 0;
893     }
894     @@ImplNote:
895     @@@lang:en
896     @@@@:
897     {TODO:: What should be returned if negative value?
898     \
899     }
900     @ResourceDef:
901     @@rdf:type: DOMMain|ReflectSet
902     @@enDesc:
903     The given value is converted to a string representing
904     the number in decimal (base ten) and then that
905     string is set to the element attribute.
906 wakaba 1.17 @@disCDef:
907 wakaba 1.11 @@@DISPerl:cloneCode: NumericSet
908    
909 wakaba 1.1 ImplNote:
910     @lang:en
911     @@:
912     The DOM Level 2 HTML Specification does not intend to define
913     exactly how a UA will respond to a change to any
914     attribute on an element that directly or indirectly refers
915 wakaba 1.15 external data, such elements are <IF::HTMLAppletElement>,
916     <IF::HTMLFrameElement>, <IF::HTMLFrameSetElement>,
917     <IF::HTMLIFrameElement>, <IF::HTMLImageElement>, <IF::HTMLLinkElement>,
918     <IF::HTMLObjectElement>, <IF::HTMLParamElement> and
919     <IF::HTMLScriptElement>.
920 wakaba 1.4 @@For:
921     ManakaiDOM:DOM
922    
923     ElementTypeBinding:
924     @Name: L2
925     @ElementType:
926     DOMMain:implementFeature
927     @ShadowContent:
928     @@@: HTMLFeature20
929     @@For:
930     ManakaiDOM:DOM2
931    
932     ElementTypeBinding:
933     @Name: PerlDef
934     @ElementType:
935     dis:Def
936     @ShadowContent:
937     @@ContentType:
938     lang:Perl
939 wakaba 1.17 @@ForCheck: ManakaiDOM|ForClass
940    
941     ElementTypeBinding:
942     @Name: PerlCDef
943     @ElementType:
944     dis:Def
945     @ShadowContent:
946     @@ContentType:
947     lang:Perl
948    
949     ElementTypeBinding:
950     @Name: IFDef
951     @ElementType:
952     dis:ResourceDef
953     @ShadowContent:
954     @@rdf:type:
955     @@@@: dis|MultipleResource
956     @@@ForCheck: !ManakaiDOM|ForIF !ManakaiDOM|ForClass
957     @@resourceFor: ManakaiDOM|ForIF
958     @@ForCheck: ManakaiDOM|DOM
959    
960     @@rdf:type:
961     @@@@: DISLang|Interface
962     @@@ForCheck: ManakaiDOM|ForIF
963    
964     ElementTypeBinding:
965 wakaba 1.18 @Name: IfCls1Def
966 wakaba 1.17 @ElementType:
967     dis:ResourceDef
968     @ShadowContent:
969     @@rdf:type:
970     @@@@: dis|MultipleResource
971     @@@ForCheck: !ManakaiDOM|ForIF !ManakaiDOM|ForClass
972     @@resourceFor: ManakaiDOM|ForIF
973     @@resourceFor:
974     @@@@: ManakaiDOM|ForClass
975     @@@ForCheck: ManakaiDOM|ManakaiDOM !=ManakaiDOM|ManakaiDOM
976     @@For: ManakaiDOM|DOM1
977     @@For: =ManakaiDOM|ManakaiDOM
978    
979     @@rdf:type:
980     @@@@: DISLang|Interface
981     @@@ForCheck: ManakaiDOM|ForIF
982    
983     @@rdf:type:
984     @@@@: DISLang|Class
985     @@@ForCheck: ManakaiDOM|ForClass
986     @@Implement:
987     @@@@: ||ManakaiDOM|ManakaiDOM||ManakaiDOM|ForIF
988     @@@ContentType: DISCore|TFPQNames
989     @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM
990     @@Implement:
991     @@@@: ||ManakaiDOM|ManakaiDOM1||ManakaiDOM|ForIF
992     @@@ContentType: DISCore|TFPQNames
993     @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM1
994     @@Implement:
995     @@@@: ||ManakaiDOM|ManakaiDOM2||ManakaiDOM|ForIF
996     @@@ContentType: DISCore|TFPQNames
997     @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM2
998     @@Implement:
999     @@@@: ||ManakaiDOM|ManakaiDOMLatest||ManakaiDOM|ForIF
1000     @@@ContentType: DISCore|TFPQNames
1001     @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOMLatest
1002    
1003     @@DOMMain:implementFeature:
1004     @@@@: HTMLFeature10
1005     @@@For: ManakaiDOM|DOM1
1006     @@DOMMain:implementFeature:
1007     @@@@: HTMLFeature20
1008     @@@For: ManakaiDOM|DOM2
1009    
1010     ElementTypeBinding:
1011 wakaba 1.18 @Name: IfClsXDef
1012 wakaba 1.17 @ElementType:
1013     dis:ResourceDef
1014     @ShadowContent:
1015     @@rdf:type:
1016     @@@@: dis|MultipleResource
1017     @@@ForCheck: !ManakaiDOM|ForIF !ManakaiDOM|ForClass
1018     @@resourceFor: ManakaiDOM|ForIF
1019     @@resourceFor:
1020     @@@@: ManakaiDOM|ForClass
1021     @@@ForCheck: ManakaiDOM|ManakaiDOM !=ManakaiDOM|ManakaiDOM
1022     @@For: ManakaiDOM|DOM1
1023     @@For: =ManakaiDOM|ManakaiDOM
1024    
1025     @@rdf:type:
1026     @@@@: DISLang|Interface
1027     @@@ForCheck: ManakaiDOM|ForIF
1028    
1029     @@rdf:type:
1030     @@@@: DISLang|Class
1031     @@@ForCheck: ManakaiDOM|ForClass
1032     @@Implement:
1033     @@@@: ||ManakaiDOM|ManakaiDOM||ManakaiDOM|ForIF
1034     @@@ContentType: DISCore|TFPQNames
1035     @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM
1036     @@Implement:
1037     @@@@: ||ManakaiDOM|ManakaiDOMLatest||ManakaiDOM|ForIF
1038     @@@ContentType: DISCore|TFPQNames
1039     @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOMLatest
1040    
1041     @@DOMMain:implementFeature:
1042     @@@@: HTMLExtendedFeature30
1043     @@@For: ManakaiDOM|ManakaiDOMLatest
1044    
1045 wakaba 1.4
1046     ElementTypeBinding:
1047     @Name: IF
1048     @ElementType:
1049     dis:ResourceDef
1050     @ShadowContent:
1051     @@rdf:type:
1052     @@@@:
1053     dis:MultipleResource
1054     @@@ForCheck:
1055     !ManakaiDOM:ForClass !ManakaiDOM:ForIF !ForHTML
1056     @@rdf:type:
1057 wakaba 1.17 @@@@: DISLang|Interface
1058 wakaba 1.4 @@@ForCheck:
1059     ManakaiDOM:ForIF
1060     @@rdf:type:
1061 wakaba 1.17 @@@@: DISLang|Class
1062 wakaba 1.4 @@@ForCheck:
1063     ManakaiDOM:ForClass
1064     @@resourceFor:
1065     @@@@:
1066     ManakaiDOM:ForIF
1067     @@@For:
1068     ManakaiDOM:DOMHTMLFeature
1069     @@@For:
1070     =ManakaiDOM:ManakaiDOM
1071     @@@ForCheck: !ForHTML
1072     @@resourceFor:
1073     @@@@:
1074     ManakaiDOM:ForClass
1075     @@@ForCheck:
1076     ManakaiDOM:ManakaiDOM !=ManakaiDOM:ManakaiDOM
1077     ManakaiDOM:DOMHTMLFeature !ForHTML
1078     @@ISA:
1079     @@@@:
1080     ManakaiDOM:ManakaiDOMObject
1081     @@@ForCheck:
1082     ManakaiDOM:ForClass
1083 wakaba 1.8 @@Implement:
1084     @@@@: ||+||ManakaiDOM|ForIF
1085     @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM1
1086     @@@ContentType: DISCore|TFPQNames
1087 wakaba 1.4
1088     ElementTypeBinding:
1089 wakaba 1.11 @Name: ClsOnly
1090     @ElementType:
1091     dis:ResourceDef
1092     @ShadowContent:
1093     @@rdf:type:
1094     @@@@:
1095     dis:MultipleResource
1096     @@@ForCheck:
1097     !ManakaiDOM:ForClass !ManakaiDOM:ForIF !ForHTML
1098     @@rdf:type:
1099     @@@@:
1100     ManakaiDOM:Class
1101     @@@ForCheck:
1102     ManakaiDOM:ForClass
1103     @@resourceFor:
1104     @@@@:
1105     ManakaiDOM:ForClass
1106     @@@ForCheck:
1107     ManakaiDOM:ManakaiDOM !=ManakaiDOM:ManakaiDOM
1108     ManakaiDOM:DOMHTMLFeature !ForHTML
1109     @@ISA:
1110     @@@@:
1111     ManakaiDOM:ManakaiDOMObject
1112     @@@ForCheck:
1113     ManakaiDOM:ForClass
1114    
1115     ElementTypeBinding:
1116 wakaba 1.18 @Name: IfCls12ETDef
1117 wakaba 1.17 @ElementType:
1118 wakaba 1.4 dis:ResourceDef
1119     @ShadowContent:
1120     @@rdf:type:
1121 wakaba 1.17 @@@@: dis|MultipleResource
1122     @@@ForCheck: !ManakaiDOM|ForIF !ManakaiDOM|ForClass !ForHTML
1123     @@resourceFor: ManakaiDOM|ForIF
1124     @@resourceFor:
1125     @@@@: ManakaiDOM|ForClass
1126     @@@ForCheck: ManakaiDOM|ManakaiDOM !=ManakaiDOM|ManakaiDOM
1127     @@For: ManakaiDOM|DOM1
1128     @@For: =ManakaiDOM|ManakaiDOM
1129     @@For: ForHTML
1130    
1131     @@rdf:type:
1132     @@@@: DISLang|Interface
1133     @@@ForCheck: ManakaiDOM|ForIF
1134    
1135     @@rdf:type:
1136     @@@@: DISLang|Class
1137     @@@ForCheck: ManakaiDOM|ForClass
1138     @@Implement:
1139     @@@@: ||ManakaiDOM|ManakaiDOM||ManakaiDOM|ForIF
1140     @@@ContentType: DISCore|TFPQNames
1141     @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM
1142     @@Implement:
1143     @@@@: ||ManakaiDOM|ManakaiDOM1||ManakaiDOM|ForIF
1144     @@@ContentType: DISCore|TFPQNames
1145 wakaba 1.4 @@@ForCheck:
1146 wakaba 1.17 ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM1 !ManakaiDOM|ManakaiDOM2
1147     @@Implement:
1148     @@@@: ||ManakaiDOM|ManakaiDOM2||ManakaiDOM|ForIF
1149     @@@ContentType: DISCore|TFPQNames
1150     @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM2
1151     @@Implement:
1152     @@@@: ||ManakaiDOM|ManakaiDOMLatest||ManakaiDOM|ForIF
1153     @@@ContentType: DISCore|TFPQNames
1154     @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOMLatest
1155    
1156     @@DOMMain:implementFeature:
1157     @@@@: HTMLFeature10
1158     @@@For: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
1159     @@DOMMain:implementFeature:
1160     @@@@: HTMLFeature20
1161     @@@For: ManakaiDOM|DOM2
1162    
1163 wakaba 1.4 @@rdf:type:
1164 wakaba 1.20 @@@@: s|ElementType
1165     @@@ForCheck: ForHTML
1166 wakaba 1.17
1167     @@s:elementType:
1168     @@@@: ||ForHTML40SE
1169     @@@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
1170     @@@ImplNote:
1171     @@@@lang:en
1172     @@@@@:
1173     DOM Level 1 First Edition refers the latest version of
1174     HTML 4.0 while Second Edition refers the second edition of
1175     HTML 4.0.
1176     @@@DISCore:stopISARecursive:1
1177     @@s:elementType:
1178     @@@@: ||ForHTML401
1179     @@@ForCheck: ManakaiDOM|DOM2
1180     @@s:elementType:
1181     @@@@: ||ForXHTML10SE
1182     @@@ForCheck: ManakaiDOM|DOM2
1183     @@@DISCore:stopISARecursive:1
1184    
1185     ElementTypeBinding:
1186 wakaba 1.18 @Name: IfCls1ETDef
1187 wakaba 1.17 @ElementType:
1188     dis:ResourceDef
1189     @ShadowContent:
1190 wakaba 1.4 @@rdf:type:
1191 wakaba 1.17 @@@@: dis|MultipleResource
1192     @@@ForCheck: !ManakaiDOM|ForIF !ManakaiDOM|ForClass !ForHTML
1193     @@resourceFor: ManakaiDOM|ForIF
1194 wakaba 1.4 @@resourceFor:
1195 wakaba 1.17 @@@@: ManakaiDOM|ForClass
1196     @@@ForCheck: ManakaiDOM|ManakaiDOM !=ManakaiDOM|ManakaiDOM
1197     @@For: ManakaiDOM|DOM1
1198     @@For: =ManakaiDOM|ManakaiDOM
1199     @@For: ForHTML
1200 wakaba 1.4
1201     @@rdf:type:
1202 wakaba 1.17 @@@@: DISLang|Interface
1203     @@@ForCheck: ManakaiDOM|ForIF
1204 wakaba 1.4
1205 wakaba 1.17 @@rdf:type:
1206     @@@@: DISLang|Class
1207     @@@ForCheck: ManakaiDOM|ForClass
1208     @@Implement:
1209     @@@@: ||ManakaiDOM|ManakaiDOM||ManakaiDOM|ForIF
1210     @@@ContentType: DISCore|TFPQNames
1211     @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM
1212     @@Implement:
1213     @@@@: ||ManakaiDOM|ManakaiDOM1||ManakaiDOM|ForIF
1214     @@@ContentType: DISCore|TFPQNames
1215 wakaba 1.4 @@@ForCheck:
1216 wakaba 1.17 ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM1
1217     @@Implement:
1218     @@@@: ||ManakaiDOM|ManakaiDOM2||ManakaiDOM|ForIF
1219 wakaba 1.8 @@@ContentType: DISCore|TFPQNames
1220 wakaba 1.17 @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM2
1221 wakaba 1.8 @@Implement:
1222 wakaba 1.17 @@@@: ||ManakaiDOM|ManakaiDOMLatest||ManakaiDOM|ForIF
1223 wakaba 1.8 @@@ContentType: DISCore|TFPQNames
1224 wakaba 1.17 @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOMLatest
1225    
1226     @@DOMMain:implementFeature:
1227     @@@@: HTMLFeature10
1228     @@@For: ManakaiDOM|DOM1
1229     @@DOMMain:implementFeature:
1230     @@@@: HTMLFeature20
1231     @@@For: ManakaiDOM|DOM2
1232    
1233     @@rdf:type:
1234 wakaba 1.20 @@@@: s|ElementType
1235     @@@ForCheck: ForHTML
1236 wakaba 1.8
1237 wakaba 1.17 @@s:elementType:
1238     @@@@: ||ForHTML40SE
1239     @@@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
1240 wakaba 1.4 @@@ImplNote:
1241     @@@@lang:en
1242     @@@@@:
1243     DOM Level 1 First Edition refers the latest version of
1244     HTML 4.0 while Second Edition refers the second edition of
1245     HTML 4.0.
1246 wakaba 1.12 @@@DISCore:stopISARecursive:1
1247 wakaba 1.17 @@s:elementType:
1248     @@@@: ||ForHTML401
1249     @@@ForCheck: ManakaiDOM|DOM2
1250     @@s:elementType:
1251     @@@@: ||ForXHTML10SE
1252     @@@ForCheck: ManakaiDOM|DOM2
1253     @@@DISCore:stopISARecursive:1
1254    
1255     ElementTypeBinding:
1256 wakaba 1.18 @Name: IfCls1ETsDef
1257 wakaba 1.17 @ElementType:
1258     dis:ResourceDef
1259     @ShadowContent:
1260     @@rdf:type:
1261     @@@@: dis|MultipleResource
1262     @@@ForCheck: !ManakaiDOM|ForIF !ManakaiDOM|ForClass !ForHTML
1263     @@resourceFor: ManakaiDOM|ForIF
1264     @@resourceFor:
1265     @@@@: ManakaiDOM|ForClass
1266     @@@ForCheck: ManakaiDOM|ManakaiDOM !=ManakaiDOM|ManakaiDOM
1267     @@For: ManakaiDOM|DOM1
1268     @@For: =ManakaiDOM|ManakaiDOM
1269     @@For: ForHTML
1270    
1271     @@rdf:type:
1272     @@@@: DISLang|Interface
1273     @@@ForCheck: ManakaiDOM|ForIF
1274    
1275     @@rdf:type:
1276     @@@@: DISLang|Class
1277     @@@ForCheck: ManakaiDOM|ForClass
1278     @@Implement:
1279     @@@@: ||ManakaiDOM|ManakaiDOM||ManakaiDOM|ForIF
1280     @@@ContentType: DISCore|TFPQNames
1281     @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM
1282     @@Implement:
1283     @@@@: ||ManakaiDOM|ManakaiDOM1||ManakaiDOM|ForIF
1284     @@@ContentType: DISCore|TFPQNames
1285 wakaba 1.4 @@@ForCheck:
1286 wakaba 1.17 ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM1
1287     @@Implement:
1288     @@@@: ||ManakaiDOM|ManakaiDOM2||ManakaiDOM|ForIF
1289     @@@ContentType: DISCore|TFPQNames
1290     @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM2
1291     @@Implement:
1292     @@@@: ||ManakaiDOM|ManakaiDOMLatest||ManakaiDOM|ForIF
1293     @@@ContentType: DISCore|TFPQNames
1294     @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOMLatest
1295    
1296     @@DOMMain:implementFeature:
1297     @@@@: HTMLFeature10
1298     @@@For: ManakaiDOM|DOM1
1299     @@DOMMain:implementFeature:
1300     @@@@: HTMLFeature20
1301     @@@For: ManakaiDOM|DOM2
1302 wakaba 1.11
1303     ElementTypeBinding:
1304     @Name: H5ETX
1305     @ElementType:
1306     dis:ResourceDef
1307     @ShadowContent:
1308 wakaba 1.18 @@ForCheck: !ManakaiDOM|all
1309 wakaba 1.17
1310 wakaba 1.11 @@rdf:type:
1311     @@@@:
1312     dis:MultipleResource
1313     @@@ForCheck:
1314     !ManakaiDOM:ForClass !ManakaiDOM:ForIF !ForHTML
1315     @@rdf:type:
1316     @@@@:
1317     ManakaiDOM:IF
1318     @@@ForCheck:
1319     ManakaiDOM:ForIF
1320     @@rdf:type:
1321     @@@@:
1322     ManakaiDOM:Class
1323     @@@ForCheck:
1324     ManakaiDOM:ForClass
1325     @@resourceFor:
1326     @@@@:
1327     ManakaiDOM:ForIF
1328     @@@ForCheck:
1329     ManakaiDOM:DOM
1330     @@@For:
1331     ManakaiDOM:DOMHTMLFeature
1332     @@@For:
1333     =ManakaiDOM:ManakaiDOM
1334     @@resourceFor:
1335     @@@@:
1336     ManakaiDOM:ForClass
1337     @@@ForCheck:
1338     ManakaiDOM:ManakaiDOM !=ManakaiDOM:ManakaiDOM ManakaiDOM:DOMHTMLFeature
1339    
1340     @@rdf:type:
1341     @@@@:
1342     s:ElementType
1343     @@@ForCheck:
1344     ForHTML
1345    
1346     @@ISA:
1347     @@@@:
1348     ::ManakaiDOM:ManakaiDOM||ManakaiDOM:ForIF
1349     @@@ForCheck:
1350     ManakaiDOM:ForIF ManakaiDOM:ManakaiDOM1
1351     @@@ContentType: DISCore|TFPQNames
1352     @@Implement:
1353     @@@@: ||+||ManakaiDOM|ForIF
1354     @@@ForCheck: ManakaiDOM|ForClass ManakaiDOM|ManakaiDOM1
1355     @@@ContentType: DISCore|TFPQNames
1356    
1357     @@DISMarkup:elementType:
1358     @@@@: ||ForHTML5
1359     @@@ForCheck: ManakaiDOM|ManakaiDOMLatest
1360 wakaba 1.12 @@@DISCore:stopISARecursive:1
1361 wakaba 1.11
1362     @@DOMMain:implementFeature: HTMLExtendedFeature30
1363    
1364     @@For: =ManakaiDOM|ManakaiDOM
1365     @@For: ManakaiDOM|ManakaiDOMLatest
1366     @@For: ForHTML5
1367 wakaba 1.4
1368     ElementTypeBinding:
1369     @Name: Method
1370     @ElementType:
1371     dis:ResourceDef
1372     @ShadowContent:
1373 wakaba 1.17 @@rdf:type: DISLang|Method
1374     @@ForCheck: ManakaiDOM|DOM !=ManakaiDOM|ManakaiDOM
1375    
1376 wakaba 1.4 ElementTypeBinding:
1377     @Name: IntMethod
1378     @ElementType:
1379     dis:ResourceDef
1380     @ShadowContent:
1381 wakaba 1.17 @@rdf:type: DISLang|Method
1382     @@ForCheck: ManakaiDOM|ForClass
1383 wakaba 1.4 @@ManakaiDOM:isForInternal: 1
1384 wakaba 1.17
1385 wakaba 1.4 ElementTypeBinding:
1386     @Name: Param
1387     @ElementType:
1388     dis:ResourceDef
1389     @ShadowContent:
1390 wakaba 1.17 @@rdf:type: DISLang|MethodParameter
1391    
1392 wakaba 1.4 ElementTypeBinding:
1393     @Name: Exception
1394     @ElementType:
1395     ManakaiDOM:raises
1396 wakaba 1.19 @ShadowContent:
1397     @@ForCheck: !ManakaiDOM|all
1398 wakaba 1.18
1399     ElementTypeBinding:
1400     @Name: RaiseException
1401     @ElementType:
1402     ManakaiDOM:raises
1403 wakaba 1.19 @ShadowContent:
1404     @@ForCheck: !ManakaiDOM|all
1405 wakaba 1.4
1406     ElementTypeBinding:
1407     @Name: Return
1408     @ElementType:
1409     dis:ResourceDef
1410     @ShadowContent:
1411 wakaba 1.17 @@rdf:type: DISLang|MethodReturn
1412 wakaba 1.4
1413     ElementTypeBinding:
1414     @Name: Attr
1415     @ElementType:
1416     dis:ResourceDef
1417     @ShadowContent:
1418 wakaba 1.17 @@rdf:type: DISLang|Attribute
1419     @@ForCheck: ManakaiDOM|DOM !=ManakaiDOM|ManakaiDOM
1420 wakaba 1.4
1421     ElementTypeBinding:
1422 wakaba 1.11 @Name: Attrs
1423     @ElementType:
1424     dis:ResourceDef
1425     @ShadowContent:
1426     @@rdf:type:
1427 wakaba 1.17 @@@@: DISLang|Attribute
1428 wakaba 1.11 @@@ForCheck: ManakaiDOM|DOM
1429     @@ForCheck: !=ManakaiDOM|ManakaiDOM
1430     @@For: ManakaiDOM|ManakaiDOM
1431     @@For: ForHTML
1432     @@rdf:type:
1433     @@@@: s|Attribute
1434     @@@ForCheck: ForHTML
1435    
1436     ElementTypeBinding:
1437 wakaba 1.4 @Name: ATTR
1438     @ElementType:
1439     dis:ResourceDef
1440     @ShadowContent:
1441     @@ForCheck:
1442     !=ManakaiDOM:ManakaiDOM
1443     @@rdf:type:
1444 wakaba 1.17 @@@@: DISLang|Attribute
1445     @@@ForCheck: ManakaiDOM|DOM
1446 wakaba 1.4 @@rdf:type:
1447 wakaba 1.17 @@@@: s|Attribute
1448     @@@ForCheck: ForHTML
1449 wakaba 1.4 @@DocAttr:
1450 wakaba 1.17 @@@@: ||ForHTML40SE
1451     @@@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
1452 wakaba 1.4 @@@ImplNote:
1453     @@@@lang:en
1454     @@@@@:
1455     DOM Level 1 First Edition refers the latest version of
1456     HTML 4.0 while Second Edition refers the second edition of
1457     HTML 4.0.
1458     @@DocAttr:
1459 wakaba 1.17 @@@@: ||ForHTML401
1460     @@@ForCheck: ManakaiDOM|DOM2
1461 wakaba 1.4 @@DocAttr:
1462 wakaba 1.17 @@@@: ||ForXHTML10SE
1463     @@@ForCheck: ManakaiDOM|DOM2
1464 wakaba 1.4
1465     ElementTypeBinding:
1466     @Name: Get
1467     @ElementType:
1468     dis:ResourceDef
1469     @ShadowContent:
1470 wakaba 1.17 @@rdf:type: DISLang|AttributeGet
1471     @@ForCheck: ManakaiDOM|DOM
1472    
1473 wakaba 1.4 ElementTypeBinding:
1474     @Name: Set
1475     @ElementType:
1476     dis:ResourceDef
1477     @ShadowContent:
1478 wakaba 1.17 @@rdf:type: DISLang|AttributeSet
1479     @@ForCheck: ManakaiDOM|DOM
1480    
1481 wakaba 1.4 ElementTypeBinding:
1482     @Name: InCase
1483     @ElementType:
1484     dis:ResourceDef
1485     @ShadowContent:
1486     @@rdf:type:
1487     ManakaiDOM:InCase
1488    
1489     ElementTypeBinding:
1490     @Name: Deprecated
1491     @ElementType:
1492     DOMHTML:isDeprecatedByHTML4
1493     @ShadowContent: 1
1494     @ShadowSibling:
1495     @@ForCheck: !ForXHTML11
1496    
1497     PropDef:
1498     @QName: isDeprecatedByHTML4
1499     @Description:
1500     @@lang:en
1501     @@@:
1502     Whether a subject resource is deprecated by HTML 4 or not.
1503 wakaba 1.17 @dataType: DISCore|Boolean
1504     @multipleProperties: DISCore|Single
1505 wakaba 1.1
1506 wakaba 1.18 IfCls1Def:
1507 wakaba 1.17 @IFQName: HTMLCollection
1508     @ClsQName: ManakaiDOMHTMLCollection
1509 wakaba 1.4
1510 wakaba 1.17 @ClsISA: NodeRef
1511 wakaba 1.4
1512 wakaba 1.1 @Description:
1513     @@lang:en
1514     @@@:
1515     A list of nodes. An individual node may be accessed
1516 wakaba 1.15 by either ordinal index or the <HA::name> or <HA::id>
1517 wakaba 1.1 of the node.
1518     \
1519 wakaba 1.15 <IF::HTMLCollection> objects are <EM::live>; they are
1520 wakaba 1.1 automatically updated when the underlying document
1521     is changed.
1522    
1523     @Attr:
1524     @@Name: length
1525     @@Description:
1526     @@@lang:en
1527     @@@@: The length of the list.
1528     @@Get:
1529 wakaba 1.17 @@@Type: ulong
1530 wakaba 1.4 @@@PerlDef:
1531     my $l = $self->{<Q::TreeCore:node>}
1532     -><M::ManakaiDOMCore:ManakaiDOMNodeObjectNode
1533     .getElementsBy>
1534     ($self->{<Q::ManakaiDOMCore:nodeMatch>});
1535     $r = @$l;
1536 wakaba 1.1 @Method:
1537     @@Name: item
1538     @@Description:
1539     @@@lang:en
1540     @@@@:
1541     Retrieve a node specified by ordinal index.
1542     @@Param:
1543     @@@Name: index
1544 wakaba 1.17 @@@Type: ulong
1545 wakaba 1.1 @@@Description:
1546     @@@@lang:en
1547     @@@@@:
1548     The index of the node to retrieve, in the document order.
1549 wakaba 1.15 The index origin is <DOM::0>.
1550 wakaba 1.1 @@Return:
1551 wakaba 1.4 @@@Type:
1552     DOMCore:Node
1553 wakaba 1.1 @@@Description:
1554     @@@@lang:en
1555     @@@@@:
1556 wakaba 1.15 The <P::index>th node.
1557 wakaba 1.1 @@@InCase:
1558     @@@@Value:
1559     @@@@@is-null:1
1560     @@@@Description:
1561     @@@@@lang:en
1562     @@@@@@:
1563 wakaba 1.15 The <P::index> is out of range.
1564 wakaba 1.4 @@@PerlDef:
1565     $r = $self->{<Q::TreeCore:node>}
1566     -><M::ManakaiDOMCore:ManakaiDOMNodeObjectNode
1567     .getElementBy>
1568     ($self->{<Q::ManakaiDOMCore:nodeMatch>}, \$index);
1569     if (defined $r) {
1570 wakaba 1.11 $r = <ClassM::DOMCore:ManakaiDOMNode.getNodeReference> ($r);
1571 wakaba 1.4 }
1572 wakaba 1.1 @Method:
1573     @@Name: namedItem
1574     @@Description:
1575     @@@lang:en
1576     @@@@:
1577     Retrieve a node using a name.
1578     \
1579     With HTML 4 documents,
1580 wakaba 1.15 it first searches for an <IF::DOMCore:Element> with a matching
1581     <HA::name> attribute and if it does not find one,
1582     it searches for an <IF::DOMCore:Element> (that is allowed to specify a
1583     <HA::name> attribute) with a matching <HA::name> attribute.
1584 wakaba 1.1 The matching is case-insensitive.
1585     \
1586     With XHTML 1.0 documents, it only searches for
1587 wakaba 1.15 an <IF::DOMCore:Element> with a matching <HA::id> attribute.
1588 wakaba 1.1 The matching is case-sensitive.
1589 wakaba 1.4 @@ImplNote:
1590     @@@lang:en
1591     @@@@:
1592     XHTML <HA::id> local attributes? XML <XML::ID> attributes?
1593     Any local <XA::id> attributes?
1594 wakaba 1.1 @@Param:
1595     @@@Name: name
1596 wakaba 1.4 @@@Type:
1597     DOMMain:DOMString
1598 wakaba 1.1 @@@Description:
1599     @@@@lang:en
1600     @@@@@:
1601 wakaba 1.15 The name of the <IF::DOMCore:Node> to retrieve.
1602 wakaba 1.1 @@Return:
1603 wakaba 1.4 @@@Type:
1604     DOMCore:Node
1605 wakaba 1.1 @@@Description:
1606     @@@@lang:en
1607     @@@@@:
1608 wakaba 1.15 The <IF::DOMCore:Node> with a <HA::name> or <HA::id> whose
1609     value matches with <P::name>.
1610 wakaba 1.1 @@@InCase:
1611     @@@@Value:
1612     @@@@@is-null:1
1613     @@@@Description:
1614     @@@@@lang:en
1615     @@@@@@:
1616 wakaba 1.15 There is no node with such a <P::name>.
1617 wakaba 1.4 @@@PerlDef:
1618     my $node = $self->{<Q::TreeCore:node>};
1619     $name = "$name";
1620     my $index = 0;
1621     if (not $node->{<Q::DOMCore:ownerDocument>}
1622     ->{<Q::DOMCore:hasFeature>}->{XML}) {
1623     $r = $self->{<Q::TreeCore:node>}
1624     -><M::ManakaiDOMCore:ManakaiDOMNodeObjectNode
1625     .getElementBy>
1626     (sub ($) {
1627 wakaba 1.7 \#line 1 "DOMHTML.ManakaiDOMHTMLCollection.namedItem.#1"
1628 wakaba 1.4 my $node = shift;
1629     if ($self->{<Q::ManakaiDOMCore:nodeMatch>}->($node)) {
1630     my $attr = $node->{<Q::infoset:attributes>}
1631     ->{<Q::null:>}->{name} ||
1632     $node->{<Q::infoset:attributes>}
1633     ->{<Q::ManakaiDOM:noNS>}->{name};
1634 wakaba 1.7 if ($attr) {
1635     my $attrn;
1636     __CODE{ManakaiNode:getWeakReference
1637     ||ManakaiDOM:Perl::
1638     $object => $attr, $ref => $attrn,
1639     $class => {<ClassName::DOMCore:ManakaiDOMAttr>},
1640     }__;
1641     __FOR{ManakaiDOM:DOM3::
1642     if ($attrn-><AG::DOMCore:Node.textContent>
1643     eq $name) {
1644     return true;
1645     }
1646     }__;
1647     __FOR{!ManakaiDOM:DOM3::
1648     if ($attrn-><AG::DOMCore:ManakaiDOMNode
1649     .textContent> eq $name) {
1650     return true;
1651     }
1652     }__;
1653 wakaba 1.4 }
1654     }
1655     return false;
1656 wakaba 1.7 \#line 1 "DOMHTML.ManakaiDOMHTMLCollection.namedItem.#2"
1657 wakaba 1.4 }, \$index);
1658     }
1659     $index = 0;
1660     $r ||= $self->{<Q::TreeCore:node>}
1661     -><M::ManakaiDOMCore:ManakaiDOMNodeObjectNode
1662     .getElementBy>
1663     (sub ($) {
1664 wakaba 1.7 \#line 1 "DOMHTML.ManakaiDOMHTMLCollection.namedItem.#3"
1665 wakaba 1.4 my $node = shift;
1666     if ($self->{<Q::ManakaiDOMCore:nodeMatch>}->($node)) {
1667     my $attr = $node->{<Q::infoset:attributes>}
1668     ->{<Q::null:>}->{id} ||
1669     $node->{<Q::infoset:attributes>}
1670     ->{<Q::ManakaiDOM:noNS>}->{id};
1671 wakaba 1.7 if ($attr) {
1672     my $attrn;
1673     __CODE{ManakaiNode:getWeakReference
1674     ||ManakaiDOM:Perl::
1675     $object => $attr, $ref => $attrn,
1676     $class => {<ClassName::DOMCore:ManakaiDOMAttr>},
1677     }__;
1678     __FOR{ManakaiDOM:DOM3::
1679     if ($attrn-><AG::DOMCore:Node.textContent>
1680     eq $name) {
1681     return true;
1682     }
1683     }__;
1684     __FOR{!ManakaiDOM:DOM3::
1685     if ($attrn-><AG::DOMCore:ManakaiDOMNode
1686     .textContent> eq $name) {
1687     return true;
1688     }
1689     }__;
1690 wakaba 1.4 }
1691     }
1692     return false;
1693 wakaba 1.7 \#line 1 "DOMHTML.ManakaiDOMHTMLCollection.namedItem.#4"
1694 wakaba 1.4 }, \$index);
1695     if (defined $r) {
1696 wakaba 1.11 $r = <ClassM::DOMCore:ManakaiDOMNode.getNodeReference> ($r);
1697 wakaba 1.4 }
1698 wakaba 1.1
1699 wakaba 1.2 ImplNote:
1700     @@lang:en
1701     @@@:
1702 wakaba 1.15 <IF::HTMLOptionCollection>: See <Module::MDOM:DOMWebForms>.
1703 wakaba 1.1
1704 wakaba 1.17 ResourceDef:
1705     @QName: ulong
1706     @For: ManakaiDOM|DOM
1707     @AliasFor: DOMMain|unsigned-long||ManakaiDOM|all
1708    
1709 wakaba 1.1 IF:
1710 wakaba 1.18 @ForCheck: !ManakaiDOM|all
1711 wakaba 1.17
1712 wakaba 1.4 @Name:
1713 wakaba 1.7 @@@: ManakaiDOMHTMLDOMImplementationIF
1714 wakaba 1.5 @@ForCheck:
1715     ManakaiDOM:ForIF
1716     @ISA:
1717     @@@:
1718     DOMCore:DOMImplementation
1719     @@ForCheck:
1720     ManakaiDOM:ForIF
1721    
1722     @Name:
1723     @@@: ManakaiDOMHTMLDOMImplementation
1724     @@ForCheck:
1725     ManakaiDOM:ForClass
1726     @ISA:
1727     @@@:
1728     DOMCore:ManakaiDOMImplementation
1729     @@ForCheck:
1730     ManakaiDOM:ForClass
1731    
1732     @For:
1733     ManakaiDOM:ManakaiDOMLatest
1734     @For:
1735     =ManakaiDOM:ManakaiDOM
1736     @DOMMain:implementFeature: HTMLFeature20
1737 wakaba 1.11 @DOMMain:implementFeature: HTMLExtendedFeature30
1738 wakaba 1.5
1739 wakaba 1.7 @DOMMetaImpl:provideFeature: HTMLFeature20
1740 wakaba 1.11 @DOMMetaImpl:provideFeature: HTMLExtendedFeature30
1741 wakaba 1.7
1742 wakaba 1.5 @Description:
1743     @@lang:en
1744     @@@:
1745     A DOM implementation with HTML-specific methods.
1746     \
1747     {NOTE:: The <IF::HTMLDOMImplementation> was part of
1748     the W3C's DOM Level 2 HTML Candicate Recommendation
1749     but later removed. The manakai DOM implementation
1750     has been decided to include this interface since
1751     there are a number of implementations supporting
1752     the <M::HTMLDOMImplementation.createHTMLDocument> method
1753     and the DOM Level 3 Core Specification belives:-) that
1754 wakaba 1.15 there is a <M::.createHTMLDocument> method.
1755 wakaba 1.5 \
1756     }
1757    
1758     @Method:
1759     @@Name: createHTMLDocument
1760     @@Description:
1761     @@@lang:en
1762     @@@@:
1763     Creates an <IF::HTMLDocument> object with the minimal tree
1764     made of <HE::html>, <HE::head>, <HE::title> and <HE::body> elements.
1765     \
1766     {NOTE:: This method creates a (non-XML) HTML document. To create
1767     a XHTML document, use <M::DOMCore:DOMImplementation.
1768     createDocument> with a root element type
1769     <Q::xhtml1:html> or with an appropriate document type
1770     node.
1771     \
1772     }
1773    
1774     @@For:
1775     ManakaiDOM:ManakaiDOMLatest
1776    
1777     @@Param:
1778     @@@Name:title
1779     @@@Type:
1780     DOMMain:DOMString
1781     @@@actualType:
1782     DOMMain:ManakaiDOMString
1783     @@@Description:
1784     @@@@lang:en
1785     @@@@@:
1786     The title of the document to create. It is set as the content of
1787     the <HE::title> element, through a child <IF::DOMCore:Text> node.
1788     @@Return:
1789     @@@Type: HTMLDocument
1790     @@@actualType: ManakaiDOMHTMLDocument
1791     @@@Description:
1792     @@@@lang:en
1793     @@@@@:
1794     A newly created HTML document.
1795     @@@PerlDef:
1796 wakaba 1.8 my $node = <ClassM::DOMCore:ManakaiDOMDocument.newObject>;
1797 wakaba 1.5 $node->{<Q::DOMCore:implementation>} = $self;
1798     $node->{<Q::ManakaiDOM:implID>}
1799     = $self->{<Q::TreeCore:node>}->{<Q::ManakaiDOM:implID>};
1800     $node->{<Q::DOMCore:hasFeature>}->{HTML} = 1;
1801 wakaba 1.9 my $cls = <ClassName::DOMCore:ManakaiDOMDocument>;
1802     $r = <Code::getWeakRef:: $object = $node, $class = $cls>;
1803 wakaba 1.5 $r-><M::DOMCore:Node.appendChild>
1804     (my $html = $r-><M::DOMCore:Document.createElement>
1805     ('HTML'));
1806     $html-><M::DOMCore:Node.appendChild>
1807     (my $head = $r-><M::DOMCore:Document.createElement>
1808     ('HEAD'));
1809     $head-><M::DOMCore:Node.appendChild>
1810     (my $titleEl = $r-><M::DOMCore:Document.createElement>
1811     ('TITLE'));
1812     if (length $title) {
1813     $titleEl-><M::DOMCore:Node.appendChild>
1814     ($r-><M::DOMCore:Document.createTextNode> ($title));
1815     }
1816     $html-><M::DOMCore:Node.appendChild>
1817     ($r-><M::DOMCore:Document.createElement>
1818     ('BODY'));
1819 wakaba 1.9 $r = <ClassM::DOMCore:ManakaiDOMNode.getNodeReference> ($node);
1820 wakaba 1.5
1821 wakaba 1.7
1822     @Method:
1823     @@Name: createXHTMLDocument
1824     @@Description:
1825     @@@lang:en
1826     @@@@:
1827     Creates an <IF::HTMLDocument> object with the minimal tree
1828     made of <HE::html>, <HE::head>, <HE::title> and <HE::body> elements
1829     and with the <Feature::XHTML> feature.
1830     \
1831     {NOTE:: This method is <EM::manakai extension>.
1832     \
1833     }
1834    
1835     @@For:
1836     ManakaiDOM:ManakaiDOMLatest
1837    
1838     @@Param:
1839     @@@Name:title
1840     @@@Type:
1841     DOMMain:DOMString
1842     @@@Description:
1843     @@@@lang:en
1844     @@@@@:
1845     The title of the document to create. It is set as the content of
1846     the <HE::title> element, through a child <IF::DOMCore:Text> node.
1847     @@Return:
1848     @@@Type: HTMLDocument
1849     @@@actualType: ManakaiDOMHTMLDocument
1850     @@@Description:
1851     @@@@lang:en
1852     @@@@@:
1853     A newly created HTML document.
1854     @@@PerlDef:
1855     __DEEP{
1856 wakaba 1.8 my $node = <ClassM::DOMCore:ManakaiDOMDocument.newObject>;
1857 wakaba 1.7 $node->{<Q::DOMCore:implementation>} = $self;
1858     $node->{<Q::ManakaiDOM:implID>}
1859     = $self->{<Q::TreeCore:node>}->{<Q::ManakaiDOM:implID>};
1860     $node->{<Q::DOMCore:hasFeature>}->{HTML} = 1;
1861     $node->{<Q::DOMCore:hasFeature>}->{XML} = 1;
1862 wakaba 1.9 my $cls = <ClassName::DOMCore:ManakaiDOMDocument>;
1863     $r = <Code::getWeakRef:: $object = $node, $class = $cls>;
1864 wakaba 1.7 $r-><M::DOMCore:Node.appendChild>
1865     (my $html = $r-><M::DOMCore:Document.createElementNS>
1866     (<Q::xhtml1:>, 'html'));
1867     $html-><M::DOMCore:Element.setAttributeNS>
1868     (<Q::xmlns:>, 'xmlns', <Q::xhtml1:>);
1869     $html-><M::DOMCore:Node.appendChild>
1870     (my $head = $r-><M::DOMCore:Document.createElementNS>
1871     (<Q::xhtml1:>, 'head'));
1872     $head-><M::DOMCore:Node.appendChild>
1873     (my $titleEl = $r-><M::DOMCore:Document.createElementNS>
1874     (<Q::xhtml1:>, 'title'));
1875     if (length $title) {
1876     $titleEl-><M::DOMCore:Node.appendChild>
1877     ($r-><M::DOMCore:Document.createTextNode> ($title));
1878     }
1879     $html-><M::DOMCore:Node.appendChild>
1880     ($r-><M::DOMCore:Document.createElementNS>
1881     (<Q::xhtml1:>, 'body'));
1882 wakaba 1.9 $r = <ClassM::DOMCore:ManakaiDOMNode.getNodeReference> ($node);
1883 wakaba 1.7 }__;
1884    
1885 wakaba 1.9 ResourceDef:
1886     @QName: getWeakRef
1887     @AliasFor:
1888     ManakaiNode:getWeakRef::ManakaiDOM:Perl
1889 wakaba 1.17 @For: ManakaiDOM|ManakaiDOM
1890 wakaba 1.9
1891 wakaba 1.18 IfCls1Def:
1892 wakaba 1.17 @IFQName: HTMLDocument
1893     @ClsQName: ManakaiHTMLDocument
1894 wakaba 1.4
1895 wakaba 1.17 @IFISA: DOMCore|Document
1896     @ClsISA: DOMCore|ManakaiDOMDocument
1897 wakaba 1.4
1898 wakaba 1.1 @Description:
1899     @@lang:en
1900     @@@:
1901     The root of the HTML document and holds the entire content.
1902    
1903 wakaba 1.9 @s:rootElementType:
1904     @@@: html||ForHTML40SE
1905     @@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
1906     @s:rootElementType:
1907     @@@: html||ForHTML401
1908     @@ForCheck: ManakaiDOM|DOM2
1909     @s:rootElementType:
1910     @@@: html||ForXHTML10SE
1911     @@ForCheck: ManakaiDOM|DOM2
1912    
1913 wakaba 1.4 @ImplNote:
1914 wakaba 1.18 @@For: !ManakaiDOM|all
1915 wakaba 1.1 @@doctype-public:
1916     -//W3C//DTD HTML 4.0//EN
1917     @@doctype-public:
1918     -//W3C//DTD HTML 4.0 Transitional//EN
1919     @@doctype-public:
1920     -//W3C//DTD HTML 4.0 Frameset//EN
1921     @@doctype-public:
1922     -//W3C//DTD HTML 4.01//EN
1923     @@doctype-public:
1924     -//W3C//DTD HTML 4.01 Transitional//EN
1925     @@doctype-public:
1926     -//W3C//DTD HTML 4.01 Frameset//EN
1927     @@doctype-public:
1928     -//W3C//DTD XHTML 1.0 Strict//EN
1929     @@doctype-public:
1930     -//W3C//DTD XHTML 1.0 Transitional//EN
1931     @@doctype-public:
1932     -//W3C//DTD XHTML 1.0 Frameset//EN
1933     @@ImplNote:
1934     @@@lang:en
1935     @@@@:
1936     TODO: doctype-system required
1937    
1938 wakaba 1.4 mediatype : text/html, text/x-html
1939    
1940 wakaba 1.1 @Attr:
1941     @@Name: title
1942     @@Description:
1943     @@@lang:en
1944     @@@@:
1945 wakaba 1.7 The title of a document, as specified by the <HE::title> element.
1946 wakaba 1.1 @@Get:
1947     @@@Type: DOMString
1948 wakaba 1.7 @@@PerlDef:
1949     __DEEP{
1950     DOC: for my $child (@{$self-><AG::DOMCore:Node.childNodes>}) {
1951     if ($child-><AG::DOMCore:Node.nodeType> ==
1952     <C::DOMCore:Node.ELEMENT_NODE> and
1953     <Code::isHTMLElement:: $elementNode = $child,
1954     $elementType = 'html'>) {
1955     for my $child (@{$child-><AG::DOMCore:Node.childNodes>}) {
1956     if ($child-><AG::DOMCore:Node.nodeType> ==
1957     <C::DOMCore:Node.ELEMENT_NODE> and
1958     <Code::isHTMLElement:: $elementNode = $child,
1959     $elementType = 'head'>) {
1960     for my $child (@{$child-><AG::DOMCore:Node.childNodes>}) {
1961     if ($child-><AG::DOMCore:Node.nodeType> ==
1962     <C::DOMCore:Node.ELEMENT_NODE> and
1963     <Code::isHTMLElement:: $elementNode = $child,
1964     $elementType = 'title'>) {
1965     __CODE{DOMCore:getNodeTextContent::
1966     $node => $child,
1967     $result => $r}__;
1968     last DOC;
1969     }
1970     }
1971     last DOC; # xhtml1:title not found
1972     }
1973     }
1974     last DOC; # xhtml1:head not found
1975     }
1976     }
1977     }__;
1978 wakaba 1.1 @@Set:
1979 wakaba 1.7 @@@Exception:
1980     @@@@@:
1981     DOMCore:DOMException.NO_MODIFICATION_ALLOWED_ERR
1982     @@@@enDesc:
1983     Either the <HE::title> element is read-only,
1984     there is no <HE::title> element and the <HE::head>
1985     element is read-only, there is no <HE::head>
1986     element and the <HE::html> element is read-only,
1987     or there is no <HE::html> element and the document
1988     node is read-only.
1989     @@@@ForCheck:
1990     ManakaiDOM:ManakaiDOM
1991     @@@Exception:
1992     @@@@@:
1993     MDOMX:MDOM_SECOND_DOC_ELEMENT
1994     @@@@enDesc:
1995     The document element (root element) of the document
1996     is not an <HE::html> element.
1997     @@@@ForCheck:
1998     ManakaiDOM:ManakaiDOM
1999     @@@ImplNote:
2000     @@@@lang:en
2001     @@@@@:
2002     The Spec. does not specify what has occured if
2003     there is no <HE::title> element.
2004 wakaba 1.1 @@@Type: DOMString
2005 wakaba 1.7 @@@PerlDef:
2006     __DEEP{
2007     my $html;
2008     for my $child (@{$self-><AG::DOMCore:Node.childNodes>}) {
2009     if ($child-><AG::DOMCore:Node.nodeType> ==
2010     <C::DOMCore:Node.ELEMENT_NODE> and
2011     <Code::isHTMLElement:: $elementNode = $child,
2012     $elementType = 'html'>) {
2013     $html = $child;
2014     last;
2015     }
2016     }
2017     unless ($html) {
2018     $html = $self-><M::DOMCore:Node.appendChild>
2019     ($self-><M::DOMCore:Document.createElementNS>
2020     (<Q::xhtml1:>, 'html'));
2021     }
2022    
2023     my $head;
2024     for my $child (@{$html-><AG::DOMCore:Node.childNodes>}) {
2025     if ($child-><AG::DOMCore:Node.nodeType> ==
2026     <C::DOMCore:Node.ELEMENT_NODE> and
2027     <Code::isHTMLElement:: $elementNode = $child,
2028     $elementType = 'head'>) {
2029     $head = $child;
2030     last;
2031     }
2032     }
2033     unless ($head) {
2034     $head = $html-><M::DOMCore:Node.appendChild>
2035     ($self-><M::DOMCore:Document.createElementNS>
2036     (<Q::xhtml1:>, 'head'));
2037     }
2038    
2039     my $title;
2040     for my $child (@{$head-><AG::DOMCore:Node.childNodes>}) {
2041     if ($child-><AG::DOMCore:Node.nodeType> ==
2042     <C::DOMCore:Node.ELEMENT_NODE> and
2043     <Code::isHTMLElement:: $elementNode = $child,
2044     $elementType = 'title'>) {
2045     $title = $child;
2046     last;
2047     }
2048     }
2049     unless ($title) {
2050     $title = $head-><M::DOMCore:Node.appendChild>
2051     ($self-><M::DOMCore:Document.createElementNS>
2052     (<Q::xhtml1:>, 'title'));
2053     }
2054    
2055     __CODE{DOMCore:setNodeTextContent::
2056     $node => $title, $given => $given}__;
2057     }__;
2058 wakaba 1.1 @Attr:
2059     @@Name: referrer
2060     @@Description:
2061     @@@lang:en
2062     @@@@:
2063     The page that linked to this page.
2064 wakaba 1.4 @@Type:
2065     DOMMain:DOMString
2066     @@actualType:
2067     DOMMain:RFC2396URI
2068 wakaba 1.1 @@Get:
2069     @@@Description:
2070     @@@@lang:en
2071     @@@@@:
2072     The RFC 2396 URI of the page.
2073     @@@InCase:
2074     @@@@Value:\
2075     @@@@Description:
2076     @@@@@lang:en
2077     @@@@@@:
2078     The user navigated to the page directly (not through a
2079     link, but for example via bookmark).
2080     @@@Def:
2081 wakaba 1.4 @@@@ContentType:
2082 wakaba 1.1 lang:dis
2083     @@@@GetProp:
2084 wakaba 1.4 DOMHTML:referrer
2085 wakaba 1.1 @Attr:
2086     @@Name: domain
2087     @@Description:
2088     @@@lang:en
2089     @@@@:
2090     The domain name of the server that served the document.
2091     @@Get:
2092     @@@Type: DOMString
2093     @@@InCase:
2094     @@@@Value:
2095     @@@@@is-null:1
2096     @@@@Description:
2097     @@@@@lang:en
2098     @@@@@@:
2099     The server cannot be identified by a domain name.
2100     @@@ImplNote:
2101     @@@@lang:en
2102     @@@@@:
2103     ISSUE: What is allowed? FQDNs? Non-FQ domain names?
2104     IPv4 addresses? IPv6 addresses with or without
2105     brackets?
2106 wakaba 1.4 @@@PerlDef:
2107 wakaba 1.1 $r = null;
2108 wakaba 1.4 if (defined $self->{<Q::TreeCore:node>}
2109     ->{<Q::DOMCore:documentURI>}) {
2110 wakaba 1.1 require URI;
2111 wakaba 1.4 my $uri = URI->new ($self->{<Q::TreeCore:node>}
2112     ->{<Q::DOMCore:documentURI>});
2113 wakaba 1.1 if ($uri->can ('host')) {
2114     $r = $uri->host;
2115     undef $r if defined $r and
2116     (length $r == 0 or
2117     substr ($r, 0, 1) eq '[');
2118     }
2119     }
2120     @Attr:
2121     @@Name: URL
2122     @@Description:
2123     @@@lang:en
2124     @@@@:
2125 wakaba 1.15 The absolute URI <SRC::RFC 2396> of the document.
2126 wakaba 1.1 @@Get:
2127     @@@Type: DOMString
2128 wakaba 1.4 @@@actualType:
2129     DOMMain:RFC2396AbsoluteURI
2130 wakaba 1.1 @@@Def:
2131 wakaba 1.4 @@@@ContentType:
2132 wakaba 1.1 lang:dis
2133     @@@@GetProp:
2134 wakaba 1.4 DOMCore:documentURI
2135 wakaba 1.1 @Attr:
2136     @@Name: body
2137     @@Description:
2138     @@@lang:en
2139     @@@@:
2140     The element that contains the content for the document.
2141     @@ImplNote:
2142     @@@lang:en
2143     @@@@:
2144 wakaba 1.15 ISSUE: Is returning <HA::frameset> is DOM Level 0 compatible?
2145 wakaba 1.1 @@Get:
2146     @@@Type: HTMLElement
2147     @@@Description:
2148     @@@@lang:en
2149     @@@@@:
2150 wakaba 1.15 The <HA::body> element or the outermost <HA::frameset> element.
2151 wakaba 1.7 @@@nullCase:
2152     @@@@enDesc:
2153     The document does not have the <HA::body> element
2154     nor a <HA::frameset> element.
2155     @@@PerlDef:
2156     __DEEP{
2157     DOC: for my $child (@{$self-><AG::DOMCore:Node.childNodes>}) {
2158     if ($child-><AG::DOMCore:Node.nodeType> ==
2159     <C::DOMCore:Node.ELEMENT_NODE> and
2160     <Code::isHTMLElement:: $elementNode = $child,
2161     $elementType = 'html'>) {
2162     for my $child (@{$child-><AG::DOMCore:Node.childNodes>}) {
2163     if ($child-><AG::DOMCore:Node.nodeType> ==
2164     <C::DOMCore:Node.ELEMENT_NODE>) {
2165     if (<Code::isHTMLElement:: $elementNode = $child,
2166     $elementType = 'body'> or
2167     <Code::isHTMLElement:: $elementNode = $child,
2168     $elementType = 'frameset'>) {
2169     $r = $child;
2170     last DOC;
2171     }
2172     }
2173     }
2174     last DOC; # xhtml1:html not found
2175     }
2176     }
2177     }__;
2178 wakaba 1.1 @@Set:
2179     @@@Type: HTMLElement
2180     @@@ImplNote:
2181     @@@@lang:en
2182     @@@@@:
2183     ISSUE: Why this attribute is writable? No exception?
2184 wakaba 1.7 @@@ImplNote:
2185     @@@@lang:en
2186     @@@@@:
2187     What should be happen if non-<HE::body> and non-<HE::frameset>
2188     element is attempted to set? A <C::DOMCore:DOMException
2189     .HIERARCHY_ERR>? The current implementation
2190     does no check.
2191     @@@Exception:
2192     @@@@@:
2193     DOMCore:DOMException.NO_MODIFICATION_ALLOWED_ERR
2194     @@@@enDesc:
2195     Either the <HE::html> element is read-only,
2196     or there is no <HE::html> element and the document
2197     node is read-only.
2198     @@@@ForCheck:
2199     ManakaiDOM:ManakaiDOM
2200     @@@Exception:
2201     @@@@@:
2202     MDOMX:MDOM_SECOND_DOC_ELEMENT
2203     @@@@enDesc:
2204     The document element (root element) of the document
2205     is not an <HE::html> element.
2206     @@@@ForCheck:
2207     ManakaiDOM:ManakaiDOM
2208     @@@ImplNote:
2209     @@@@lang:en
2210     @@@@@:
2211     The Spec. does not specify what has occured if
2212     there is no <HE::html> element.
2213     @@@PerlDef:
2214     __DEEP{
2215     my $html;
2216     for my $child (@{$self-><AG::DOMCore:Node.childNodes>}) {
2217     if ($child-><AG::DOMCore:Node.nodeType> ==
2218     <C::DOMCore:Node.ELEMENT_NODE> and
2219     <Code::isHTMLElement:: $elementNode = $child,
2220     $elementType = 'html'>) {
2221     $html = $child;
2222     last;
2223     }
2224     }
2225     unless ($html) {
2226     $html = $self-><M::DOMCore:Node.appendChild>
2227     ($self-><M::DOMCore:Document.createElementNS>
2228     (<Q::xhtml1:>, 'html'));
2229     }
2230    
2231     my $body;
2232     for my $child (@{$html-><AG::DOMCore:Node.childNodes>}) {
2233     if ($child-><AG::DOMCore:Node.nodeType> ==
2234     <C::DOMCore:Node.ELEMENT_NODE>) {
2235     if (<Code::isHTMLElement:: $elementNode = $child,
2236     $elementType = 'body'> or
2237     <Code::isHTMLElement:: $elementNode = $child,
2238     $elementType = 'frameset'>) {
2239 wakaba 1.8 $body = $child;
2240     last;
2241     }
2242 wakaba 1.7 }
2243     }
2244     if ($body) {
2245     $html-><M::DOMCore:Node.replaceChild> ($body => $given);
2246     } else {
2247     $html-><M::DOMCore:Node.appendChild> ($given);
2248     }
2249     }__;
2250 wakaba 1.1 @Attr:
2251     @@Name: images
2252     @@Description:
2253     @@@lang:en
2254     @@@@:
2255 wakaba 1.15 A collection of all the <HA::img> elements in a document.
2256 wakaba 1.1 \
2257 wakaba 1.15 {NOTE:: Only <HA::img> elements are contained for
2258 wakaba 1.1 backward compatibility.
2259     \
2260     }
2261     @@Get:
2262     @@@Type: HTMLCollection
2263 wakaba 1.4 @@@actualType:
2264     ManakaiDOMHTMLCollection
2265     @@@PerlDef:
2266     my $chk;
2267     $chk = sub {
2268 wakaba 1.7 \#line 1 "DOMHTML.ManakaiDOMHTMLElement.getImages.#1"
2269 wakaba 1.4 my ($self) = @_;
2270 wakaba 1.7 if (<Code::isHTMLElemento:: $elementNodeo = $self,
2271     $elementType = 'img'>) {
2272     return true;
2273 wakaba 1.4 } else {
2274 wakaba 1.7 return false;
2275 wakaba 1.4 }
2276 wakaba 1.7 \#line 1 "DOMHTML.ManakaiDOMHTMLElement.getImages.#2"
2277 wakaba 1.4 };
2278 wakaba 1.14 __CODE{getNodeRef::
2279     $object => {$self->{<Q::TreeCore:node>}},
2280     $ref => $r,
2281     $class => {<ClassName::ManakaiDOMHTMLCollection>},
2282 wakaba 1.4 }__;
2283     $r->{<Q::ManakaiDOMCore:nodeMatch>} = $chk;
2284    
2285 wakaba 1.1 @Attr:
2286     @@Name: applets
2287     @@Description:
2288     @@@lang:en
2289     @@@@:
2290 wakaba 1.15 A collection of all <HA::object> elements that include
2291     applets and <HA::applet> elements in the document.
2292 wakaba 1.1 @@ImplNote:
2293     @@@lang:en
2294     @@@@:
2295     There might be compatibility problems, since
2296     the two element types has different attribute sets.
2297     Old (DOM Level 0) applications might not take
2298 wakaba 1.15 <HA::object> elements into consideration.
2299 wakaba 1.1 @@Get:
2300     @@@Type: HTMLCollection
2301 wakaba 1.4 @@@actualType:
2302     ManakaiDOMHTMLCollection
2303     @@@PerlDef:
2304     my $chk;
2305 wakaba 1.7 $chk = sub {
2306     \#line 1 "DOMHTML.ManakaiDOMHTMLElement.getApplets.#1"
2307 wakaba 1.4 my ($self) = @_;
2308 wakaba 1.7 if (<Code::isHTMLElemento:: $elementNodeo = $self,
2309     $elementType = 'applet'>) {
2310     return true;
2311     } elsif (<Code::isHTMLElemento:: $elementNodeo = $self,
2312     $elementType = 'object'> and
2313     $self->{<Q::DOMHTML:isApplet>}) {
2314     return true;
2315 wakaba 1.4 } else {
2316 wakaba 1.7 return false;
2317 wakaba 1.4 }
2318 wakaba 1.7 \#line 1 "DOMHTML.ManakaiDOMHTMLElement.getApplets.#2"
2319     };
2320 wakaba 1.14 __CODE{getNodeRef::
2321     $object => {$self->{<Q::TreeCore:node>}},
2322     $ref => $r,
2323     $class => {<ClassName::ManakaiDOMHTMLCollection>},
2324 wakaba 1.4 }__;
2325     $r->{<Q::ManakaiDOMCore:nodeMatch>} = $chk;
2326 wakaba 1.7
2327 wakaba 1.1 @Attr:
2328     @@Name: links
2329     @@Description:
2330     @@@lang:en
2331     @@@@:
2332 wakaba 1.15 A collection of all <HA::a> and <HA::area> elements
2333     in a document with a value for the <HA::href> attribute.
2334 wakaba 1.1 @@Get:
2335     @@@Type: HTMLCollection
2336 wakaba 1.4 @@@actualType:
2337     ManakaiDOMHTMLCollection
2338     @@@PerlDef:
2339     my $chk;
2340 wakaba 1.7 $chk = sub {
2341     \#line 1 "DOMHTML.ManakaiDOMHTMLElement.getLinks.#1"
2342 wakaba 1.4 my ($self) = @_;
2343 wakaba 1.7 if (<Code::isHTMLElemento:: $elementNodeo = $self,
2344     $elementType = 'a'>) {
2345     return true
2346 wakaba 1.4 if $self->{<Q::infoset:attributes>}
2347     ->{<Q::null:>}->{href} or
2348     $self->{<Q::infoset:attributes>}
2349     ->{<Q::ManakaiDOM:noNS>}->{href};
2350 wakaba 1.7 } elsif (<Code::isHTMLElemento:: $elementNodeo = $self,
2351     $elementType = 'area'>) {
2352     return true
2353 wakaba 1.4 if $self->{<Q::infoset:attributes>}
2354     ->{<Q::null:>}->{href} or
2355     $self->{<Q::infoset:attributes>}
2356     ->{<Q::ManakaiDOM:noNS>}->{href};
2357     }
2358     return false;
2359 wakaba 1.7 \#line 1 "DOMHTML.ManakaiDOMHTMLElement.getLinks.#2"
2360     };
2361 wakaba 1.14 __CODE{getNodeRef::
2362     $object => {$self->{<Q::TreeCore:node>}},
2363     $ref => $r,
2364     $class => {<ClassName::ManakaiDOMHTMLCollection>},
2365 wakaba 1.4 }__;
2366     $r->{<Q::ManakaiDOMCore:nodeMatch>} = $chk;
2367 wakaba 1.7
2368 wakaba 1.1 @Attr:
2369     @@Name: forms
2370     @@Description:
2371     @@@lang:en
2372     @@@@:
2373     A collection of all the forms of a document.
2374     @@ImplNote:
2375     @@@lang:en
2376     @@@@:
2377 wakaba 1.15 It should be restricted for HTML <HA::form> elements.
2378     Neither <HA::isindex> elements nor non-HTML form elements
2379 wakaba 1.1 should be contained.
2380     @@Get:
2381     @@@Type: HTMLCollection
2382 wakaba 1.4 @@@actualType:
2383     ManakaiDOMHTMLCollection
2384     @@@PerlDef:
2385     my $chk;
2386 wakaba 1.7 $chk = sub {
2387     \#line 1 "DOMHTML.ManakaiDOMHTMLElement.getForms.#1"
2388 wakaba 1.4 my ($self) = @_;
2389 wakaba 1.7 if (<Code::isHTMLElemento:: $elementNodeo = $self,
2390     $elementType = 'form'>) {
2391     return true;
2392 wakaba 1.4 } else {
2393 wakaba 1.7 return false;
2394 wakaba 1.4 }
2395 wakaba 1.7 \#line 1 "DOMHTML.ManakaiDOMHTMLElement.getForms.#2"
2396     };
2397 wakaba 1.14 __CODE{getNodeRef::
2398     $object => {$self->{<Q::TreeCore:node>}},
2399     $ref => $r,
2400     $class => {<ClassName::ManakaiDOMHTMLCollection>},
2401 wakaba 1.4 }__;
2402     $r->{<Q::ManakaiDOMCore:nodeMatch>} = $chk;
2403 wakaba 1.1 @Attr:
2404     @@Name: anchors
2405     @@Description:
2406     @@@lang:en
2407     @@@@:
2408 wakaba 1.15 A collection of all the <HA::a> elements with a value
2409     for the <HA::name> attribute in the document.
2410 wakaba 1.1 \
2411     {NOTE:: The collection of this attribute only contains
2412 wakaba 1.15 those anchors with <HA::name> attributes,
2413     not with the <HA::id> attributes, for backward
2414 wakaba 1.1 compatibility. XHTML 1.0 deprecates the use
2415 wakaba 1.15 of the <HA::name> attribute.
2416 wakaba 1.1 \
2417     }
2418     @@Get:
2419     @@@Type: HTMLCollection
2420 wakaba 1.4 @@@actualType:
2421     ManakaiDOMHTMLCollection
2422     @@@PerlDef:
2423     my $chk;
2424 wakaba 1.7 $chk = sub {
2425     \#line 1 "DOMHTML.ManakaiDOMHTMLElement.getAnchors.#1"
2426 wakaba 1.4 my ($self) = @_;
2427 wakaba 1.7 if (<Code::isHTMLElemento:: $elementNodeo = $self,
2428     $elementType = 'a'>) {
2429     return true
2430 wakaba 1.4 if $self->{<Q::infoset:attributes>}
2431     ->{<Q::null:>}->{name} or
2432     $self->{<Q::infoset:attributes>}
2433     ->{<Q::ManakaiDOM:noNS>}->{name};
2434     }
2435     return false;
2436 wakaba 1.7 \#line 1 "DOMHTML.ManakaiDOMHTMLElement.getAnchors.#2"
2437     };
2438 wakaba 1.14 __CODE{getNodeRef::
2439     $object => {$self->{<Q::TreeCore:node>}},
2440     $ref => $r,
2441     $class => {<ClassName::ManakaiDOMHTMLCollection>},
2442 wakaba 1.4 }__;
2443     $r->{<Q::ManakaiDOMCore:nodeMatch>} = $chk;
2444 wakaba 1.7
2445 wakaba 1.1 @Attr:
2446     @@Name: cookie
2447     @@Description:
2448     @@@lang:en
2449     @@@@:
2450     The cookie, persistent state information associated
2451 wakaba 1.15 with the current frame or document <SRC::RFC 2965>.
2452 wakaba 1.1 \
2453     {NOTE:: The precise nature of a UA session is not
2454     defined.
2455     \
2456     }
2457     @@Get:
2458     @@@Type: DOMString
2459 wakaba 1.4 @@@actualType: RFC2965Cookies
2460 wakaba 1.1 @@@Description:
2461     @@@@lang:en
2462     @@@@@:
2463     A single string with each cookie's name-value pair
2464 wakaba 1.15 separated by a <CHAR::SEMICOLON>.
2465 wakaba 1.1 @@@ImplNote:
2466     @@@@lang:en
2467     @@@@@:
2468 wakaba 1.15 It is maybe RFC 2965 <CODE::cookies>.
2469 wakaba 1.1 @@@InCase:
2470     @@@@Value:\
2471     @@@@Description:
2472     @@@@@lang:en
2473     @@@@@@:
2474     No cookie is available for the current frame or document.
2475     @@Set:
2476 wakaba 1.18 @@@For: ManakaiDOM|DOM2
2477 wakaba 1.1 @@@Type: DOMString
2478 wakaba 1.4 @@@actualType: RFC2965Cookie
2479 wakaba 1.1 @@@Description:
2480     @@@@lang:en
2481     @@@@@:
2482     A single name-value pair followed by zero or more
2483 wakaba 1.15 cookie attribute values (RFC 2965 <CODE::cookie>).
2484 wakaba 1.1 \
2485 wakaba 1.15 If no <CODE::domain> attribute is specified,
2486     it defaults to the <CODE::host> portion of an
2487 wakaba 1.1 RFC 2396 absolute URI of the current frame or document.
2488     \
2489 wakaba 1.15 If no <CODE::path> attribute is specified, it defaults
2490     to the absolute <CODE::path> portion of an
2491 wakaba 1.1 RFC 2396 absolute URI of the current frame or document.
2492     \
2493 wakaba 1.15 If no <CODE::max-age> attribute is specified, it
2494 wakaba 1.1 defaults to a UA defined value.
2495     \
2496 wakaba 1.15 If a <CODE::cookie> with the specified name is already
2497 wakaba 1.1 associated, the new value as well as the new attributes
2498 wakaba 1.15 replace the old ones. If the <CODE::max-age> attribute
2499     value is <CODE::0>, any existing cookies of the specified
2500 wakaba 1.1 name are removed.
2501     @@@Exception:
2502 wakaba 1.4 @@@@@:
2503     ManakaiDOMHTML:MDOMHTML_BAD_COOKIE
2504     @@@@Description:
2505     @@@@@lang:en
2506     @@@@@@:
2507     The new value does not adhere to the
2508 wakaba 1.15 RFC 2965 <CODE::cookie>.
2509 wakaba 1.1 @Method:
2510     @@Name: open
2511     @@Description:
2512     @@@lang:en
2513     @@@@:
2514     Open a document stream for writing. If a document
2515     exists in the target, this method clears it.
2516     @@Return:
2517     @Method:
2518     @@Name: close
2519     @@Description:
2520     @@@lang:en
2521     @@@@:
2522 wakaba 1.15 Close a document stream opened by the <M::open> method
2523 wakaba 1.1 and force rendering.
2524     @@Return:
2525     @Method:
2526     @@Name: write
2527     @@Description:
2528     @@@lang:en
2529     @@@@:
2530 wakaba 1.15 Write a string to a document stream opened by <M::.open>.
2531 wakaba 1.1 @@ImplNote:
2532     @@@lang:en
2533     @@@@:
2534     This method might produce a document that is invalid.
2535     @@Param:
2536     @@@Name: text
2537     @@@Type: DOMString
2538     @@@Description:
2539     @@@@lang:en
2540     @@@@@:
2541     The string to be parsed into some structure in
2542     the document structure model.
2543     @@Return:
2544     @Method:
2545     @@Name: writeln
2546 wakaba 1.4 @@Description:
2547 wakaba 1.1 @@@lang:en
2548     @@@@:
2549     Write a string followed by a newline character
2550 wakaba 1.15 to a document stream opened by the <M::.open> method.
2551 wakaba 1.1 @@Param:
2552     @@@Name: text
2553     @@@Type: DOMString
2554     @@@Description:
2555     @@@@lang:en
2556     @@@@@:
2557     The string to be parsed into some structure in
2558     the document structure model.
2559     @@Return:
2560     @Method:
2561     @@Name: getElementsByName
2562     @@Description:
2563     @@@lang:en
2564     @@@@:
2565     With HTML 4 documents: return a collection of elements
2566     with matching name.
2567     \
2568     With XHTML 1 documents: return a collection of form controls
2569     with matching name.
2570     @@Param:
2571     @@@Name: elementName
2572     @@@Type: DOMString
2573     @@@Description:
2574     @@@@lang:en
2575     @@@@@:
2576 wakaba 1.15 The <HA::name> of the element. The matching is
2577 wakaba 1.1 case-sensitive.
2578     @@Return:
2579     @@@Type: NodeList
2580     @@@Description:
2581     @@@@lang:en
2582     @@@@@:
2583 wakaba 1.15 A collection of the element whose <HA::name> matches
2584     with <P::elementName>.
2585 wakaba 1.3 @Method:
2586     @@Name:getElementById
2587     @@Description:
2588     @@@lang:en
2589     @@@@:
2590 wakaba 1.15 Return the <IF::DOMCore:Element> whose <A::id> is given by
2591     <P::elementId>. Behavior is not defined if more than
2592     one elements has this <P::elementId>.
2593 wakaba 1.3 \
2594 wakaba 1.15 {NOTE:: This method was first defined in the <IF::HTMLDocument>
2595 wakaba 1.3 interface of DOM Level 1 but it has moved to
2596 wakaba 1.15 the <Module::MDOM:DOMCore> module in DOM Level 2.
2597 wakaba 1.3 \
2598     }
2599     @@Param:
2600     @@@Name:elementId
2601     @@@Type:
2602     DOMMain:DOMString
2603     @@@Description:
2604     @@@@lang:en
2605     @@@@@:
2606     The unique identifier of the element to retrieve.
2607     @@Return:
2608     @@@Type:
2609     DOMCore:Element
2610     @@@Description:
2611     @@@@lang:en
2612     @@@@@:The matching element.
2613 wakaba 1.7 @@@disDef:
2614     @@@@DISPerl:cloneCode:
2615     DOMCore:ManakaiDOMElement::ManakaiDOM:ManakaiDOMLatest.getElementById
2616 wakaba 1.4 @@DOMMain:implementFeature:
2617     HTMLFeature10
2618     @@For:
2619     ManakaiDOM:DOM1 !ManakaiDOM:DOM2
2620 wakaba 1.1 @ImplNote:
2621     @@lang:en
2622     @@@:
2623 wakaba 1.3 {P:: The following properties in DOM Level 0 have been deprecated
2624     by DOM HTML Specifications in favor of the corresponding
2625 wakaba 1.15 attributes in <IF::HTMLBodyElement> interface:
2626 wakaba 1.3 \
2627 wakaba 1.15 - <A::alinkColor>
2628 wakaba 1.3 \
2629 wakaba 1.15 - <A::background>
2630 wakaba 1.3 \
2631 wakaba 1.15 - <A::bgColor>
2632 wakaba 1.3 \
2633 wakaba 1.15 - <A::fgColor>
2634 wakaba 1.3 \
2635 wakaba 1.15 - <A::linkColor>
2636 wakaba 1.3 \
2637 wakaba 1.15 - <A::vlinkColor>
2638 wakaba 1.3 \
2639     }
2640 wakaba 1.9 ##HTMLDocument
2641 wakaba 1.1
2642 wakaba 1.4 ElementTypeBinding:
2643     @Name: PropDef
2644     @ElementType:
2645     dis:ResourceDef
2646     @ShadowContent:
2647     @@rdf:type:
2648 wakaba 1.5 rdf:Property
2649 wakaba 1.17 @@For: =ManakaiDOM|all
2650 wakaba 1.4
2651     PropDef:
2652     @QName: isApplet
2653     @FullName:
2654     @@lang:en
2655     @@@: Is a Java applet
2656     @Description:
2657     @@lang:en
2658     @@@:
2659     Whether an <HA::object> element is a Java applet or not.
2660    
2661     ElementTypeBinding:
2662     @Name: StringDataTypeDef
2663     @ElementType:
2664     dis:ResourceDef
2665     @ShadowContent:
2666 wakaba 1.17 @@rdf:type: DISLang|DataType
2667     @@For: ManakaiDOM|DOM
2668     @@For: =ManakaiDOM|all
2669     @@rdfs:subClassOf: DOMMain|DOMString
2670 wakaba 1.4 @@AliasFor:
2671 wakaba 1.17 @@@@: ||ManakaiDOM|all
2672     @@@For: !=ManakaiDOM|all
2673 wakaba 1.4
2674     StringDataTypeDef:
2675     @QName: RFC2965Cookies
2676     @FullName:
2677     @@lang:en
2678     @@@:
2679     RFC 2965 <CODE::cookies>
2680    
2681     StringDataTypeDef:
2682     @QName: RFC2965Cookie
2683     @FullName:
2684     @@lang:en
2685     @@@:
2686     RFC 2965 <CODE::cookie>
2687    
2688 wakaba 1.1 ImplNote:
2689     @lang:en
2690     @@:
2691     DOM attributes corresponding to HTML attributes have
2692     the semantic (including case-sensitivity) given in
2693     the HTML 4 and XHTML 1.0 specifications.
2694     \
2695     Exposing HTML attributes is for compatibility with DOM Level 0;
2696     this usage is deprecated by DOM Level 1 and 2 HTML specitications.
2697     \
2698     {FIG: HTML Data Types and DOM Data Types
2699     \
2700 wakaba 1.15 - <SGML::CDATA>:: <TYPE::DOMString>.
2701 wakaba 1.1 (Default of default: an empty string)
2702     \
2703 wakaba 1.15 - Enumerated values:: <TYPE::DOMString>.
2704 wakaba 1.1 (Normalized to lowercase in HTML.
2705     Default of default: an empty string)
2706     \
2707 wakaba 1.15 - Boolean:: <TYPE::boolean>. (Default of default: <DOM::false>.
2708 wakaba 1.1 \
2709 wakaba 1.15 - <SGML::NUMBER>:: <TYPE::long>. (Default of default: <DOM::0>.)
2710 wakaba 1.1 \
2711     }
2712     \
2713     Element type names in HTML 4 documents (exposed through
2714 wakaba 1.15 such as <A::DOMCore:Element.tagName>) are normalized in
2715 wakaba 1.1 uppercase. No specification for attribute names - it maybe
2716     should be in lowercase for compatibility.
2717    
2718 wakaba 1.18 IfCls1Def:
2719 wakaba 1.17 @IFQName: HTMLElement
2720     @ClsQName: ManakaiDOMHTMLElement
2721 wakaba 1.4
2722 wakaba 1.17 @IFISA: DOMCore|Element
2723     @ClsISA: DOMCore|ManakaiDOMElement
2724 wakaba 1.4
2725 wakaba 1.1 @Description:
2726     @@lang:en
2727     @@@:
2728     An HTML element. All specific HTML element interfaces
2729     are derived from this interface.
2730    
2731 wakaba 1.7 @s:elementType:
2732     @@@:
2733     AnyHTMLElement::ForHTML40SE
2734     @@ForCheck:
2735     ManakaiDOM:DOM1 !ManakaiDOM:DOM2
2736     @s:elementType:
2737     @@@:
2738     AnyHTMLElement::ForHTML401
2739     @@ForCheck:
2740     ManakaiDOM:DOM2
2741     @s:elementType:
2742     @@@:
2743     AnyHTMLElement::ForXHTML10SE
2744     @@ForCheck:
2745     ManakaiDOM:DOM2
2746    
2747     @ImplNote:
2748 wakaba 1.18 @@For: !ManakaiDOM|all
2749 wakaba 1.3 @@QName:
2750     xhtml1:sub
2751     \##TODO: rewrite this
2752 wakaba 1.1 @@html-element-type:sup
2753     @@html-element-type:span
2754     @@html-element-type:bdo
2755     @@html-element-type:tt
2756     @@html-element-type:i
2757     @@html-element-type:b
2758     @@html-element-type:u
2759     @@html-element-type:s
2760     @@html-element-type:strike
2761     @@html-element-type:big
2762     @@html-element-type:small
2763     @@html-element-type:em
2764     @@html-element-type:strong
2765     @@html-element-type:dfn
2766     @@html-element-type:code
2767     @@html-element-type:samp
2768     @@html-element-type:kbd
2769     @@html-element-type:var
2770     @@html-element-type:cite
2771     @@html-element-type:acronym
2772     @@html-element-type:abbr
2773     @@html-element-type:dd
2774     @@html-element-type:dt
2775     @@html-element-type:noframes
2776     @@html-element-type:noscript
2777     @@html-element-type:address
2778     @@html-element-type:center
2779 wakaba 1.7
2780 wakaba 1.3 @ImplNote:
2781     @@lang:en
2782     @@@:
2783 wakaba 1.15 The DOM Level 1 First and Second Editions said that the <HE::head>
2784 wakaba 1.3 element belongs to this category - it is considered as
2785 wakaba 1.15 an error, since there is the <IF::HTMLHeadElement>.
2786 wakaba 1.1
2787     @Attr:
2788     @@Name: id
2789 wakaba 1.7 @@DocAttr1:
2790 wakaba 1.11 id::ForHTML40SE
2791 wakaba 1.7 @@DocAttr2S:
2792 wakaba 1.11 id::ForHTML401
2793 wakaba 1.7 @@DocAttr2X:
2794 wakaba 1.11 id::ForXHTML10SE
2795     @@ReflectCDATA:
2796 wakaba 1.1 @@Get:
2797     @@Set:
2798     @@ImplNote:
2799     @@@lang:en
2800     @@@@:
2801 wakaba 1.15 Some element in HTML 4/XHTML 1.0 does not have <HA::class> attribute.
2802 wakaba 1.1 @Attr:
2803     @@Name: title
2804 wakaba 1.7 @@DocAttr1:
2805 wakaba 1.11 title::ForHTML40SE
2806 wakaba 1.7 @@DocAttr2S:
2807 wakaba 1.11 title::ForHTML401
2808 wakaba 1.7 @@DocAttr2X:
2809 wakaba 1.11 title::ForXHTML10SE
2810     @@ReflectCDATA:
2811 wakaba 1.1 @@Get:
2812     @@Set:
2813     @@ImplNote:
2814     @@@lang:en
2815     @@@@:
2816 wakaba 1.15 Some element in HTML 4/XHTML 1.0 does not have <HA::class> attribute.
2817 wakaba 1.1 @Attr:
2818     @@Name: lang
2819 wakaba 1.7 @@DocAttr1:
2820 wakaba 1.11 lang::ForHTML40SE
2821 wakaba 1.7 @@DocAttr2S:
2822 wakaba 1.11 lang::ForHTML401
2823 wakaba 1.7 @@DocAttr2X:
2824 wakaba 1.11 lang::ForXHTML10SE
2825     @@ReflectCDATA:
2826 wakaba 1.1 @@Get:
2827     @@Set:
2828     @@ImplNote:
2829     @@@lang:en
2830     @@@@:
2831 wakaba 1.15 Some element in HTML 4/XHTML 1.0 does not have <HA::class> attribute.
2832 wakaba 1.1 @Attr:
2833     @@Name: dir
2834 wakaba 1.7 @@DocAttr1:
2835 wakaba 1.11 dir::ForHTML40SE
2836 wakaba 1.7 @@DocAttr2S:
2837 wakaba 1.11 dir::ForHTML401
2838 wakaba 1.7 @@DocAttr2X:
2839 wakaba 1.11 dir::ForXHTML10SE
2840     @@ReflectCDATA:
2841 wakaba 1.1 @@Get:
2842     @@Set:
2843     @@ImplNote:
2844     @@@lang:en
2845     @@@@:
2846 wakaba 1.15 Some element in HTML 4/XHTML 1.0 does not have <HA::class> attribute.
2847 wakaba 1.1 @Attr:
2848     @@Name: className
2849 wakaba 1.7 @@DocAttr1:
2850 wakaba 1.11 class::ForHTML40SE
2851 wakaba 1.7 @@DocAttr2S:
2852 wakaba 1.11 class::ForHTML401
2853 wakaba 1.7 @@DocAttr2X:
2854 wakaba 1.11 class::ForXHTML10SE
2855     @@ReflectCDATA:
2856 wakaba 1.1 @@Get:
2857     @@Set:
2858     @@ImplNote:
2859     @@@lang:en
2860     @@@@:
2861 wakaba 1.15 Some element in HTML 4/XHTML 1.0 does not have <HA::class> attribute.
2862 wakaba 1.3
2863     @ImplNote:
2864     @@lang:en
2865     @@@:
2866 wakaba 1.15 The <A::HTMLElement.style> is reserved by DOM Level 1 First Edition
2867 wakaba 1.3 for future use. It is used later in DOM Level 2 CSS Module.
2868 wakaba 1.11 ##HTMLElement
2869 wakaba 1.1
2870 wakaba 1.7 ElementTypeBinding:
2871 wakaba 1.11 @Name: ReflectCDATA
2872 wakaba 1.7 @ElementType:
2873 wakaba 1.11 dis:Type
2874 wakaba 1.7 @ShadowContent:
2875 wakaba 1.11 @@@: DOMString
2876     @ShadowSibling:
2877     @@actualType: CDATADOMString
2878    
2879 wakaba 1.7 ElementTypeBinding:
2880 wakaba 1.11 @Name: ReflectURI
2881 wakaba 1.7 @ElementType:
2882 wakaba 1.11 dis:Type
2883 wakaba 1.7 @ShadowContent:
2884 wakaba 1.11 @@@: DOMString
2885     @ShadowSibling:
2886     @@actualType: URIDOMString
2887    
2888 wakaba 1.7 ElementTypeBinding:
2889 wakaba 1.11 @Name: ReflectEnum
2890 wakaba 1.7 @ElementType:
2891 wakaba 1.11 dis:Type
2892 wakaba 1.7 @ShadowContent:
2893 wakaba 1.11 @@@: DOMString
2894     @ShadowSibling:
2895     @@actualType: EnumDOMString
2896    
2897     ElementTypeBinding:
2898     @Name: ReflectBoolean
2899     @ElementType:
2900     dis:Type
2901     @ShadowContent:
2902     @@@: DOMMain|boolean||ManakaiDOM|all
2903     @ShadowSibling:
2904     @@actualType: Boolean
2905    
2906     ElementTypeBinding:
2907     @Name: ReflectNumeric
2908     @ElementType:
2909     dis:Type
2910     @ShadowContent:
2911     @@@: DOMMain|long||ManakaiDOM|all
2912     @ShadowSibling:
2913     @@actualType: Numeric
2914    
2915     ElementTypeBinding:
2916     @Name: DocAttr1
2917     @ElementType:
2918     dis:DocAttr
2919     @ShadowContent:
2920     @@ForCheck:
2921     ManakaiDOM:DOM1 !ManakaiDOM:DOM2
2922     ElementTypeBinding:
2923     @Name: DocAttr2S
2924     @ElementType:
2925     dis:DocAttr
2926     @ShadowContent:
2927     @@ForCheck:
2928     ManakaiDOM:DOM2
2929     ElementTypeBinding:
2930     @Name: DocAttr2X
2931     @ElementType:
2932     dis:DocAttr
2933     @ShadowContent:
2934     @@ForCheck:
2935     ManakaiDOM:DOM2
2936 wakaba 1.7
2937     ResourceDef:
2938     @QName: AnyHTMLElement
2939     @enDesc:
2940     Any HTML element types.
2941     @rdf:type:
2942     s:AnyElementInNS
2943     @AppName:
2944     @@@:
2945     xhtml1:*
2946     @@ContentType:
2947     dis:TypeQName
2948     @ForCheck: ForHTML
2949    
2950     ## TODO: Move to attribute set
2951    
2952     @AttrDef:
2953     @@QName: dir
2954     @AttrDef:
2955     @@QName: id
2956     @AttrDef:
2957     @@QName: lang
2958 wakaba 1.18 # @@DeprecatedBy:
2959     # DOMHTML:XHTML1.0
2960 wakaba 1.7 @AttrDef:
2961     @@QName: class
2962     @AttrDef:
2963     @@QName: title
2964    
2965     ElementTypeBinding:
2966     @Name: AttrDef
2967     @ElementType:
2968     dis:ResourceDef
2969     @ShadowContent:
2970     @@rdf:type:
2971     s:Attribute
2972 wakaba 1.17 @@ForCheck: ForHTML
2973 wakaba 1.7
2974     ResourceDef:
2975     @QName: isHTMLElement
2976     @rdf:type:
2977     dis2pm:InlineCode
2978     @enDesc:
2979     Tests whether this is an HTML element of the given type or not.
2980     @Param:
2981     @@Name: elementNode
2982     @@Type:
2983     DOMCore:Element
2984     @@enDesc:
2985     The element node to test.
2986     @Param:
2987     @@Name: elementType
2988     @@Type:
2989     DOMMain:DOMString
2990     @@enDesc:
2991     The element type name to test.
2992 wakaba 1.17 @PerlCDef:
2993 wakaba 1.7 do {
2994     my $__ln = $elementNode->{<Q::TreeCore:node>}
2995     ->{<Q::infoset:localName>};
2996     if (defined $__ln) { ## Namespace-aware node
2997     my $__ns = $elementNode->{<Q::TreeCore:node>}
2998     ->{<Q::infoset:namespaceName>};
2999     if ($__ns eq <Q::xhtml1:> or
3000     (not defined $__ns and
3001 wakaba 1.10 $elementNode->{<Q::TreeCore:node>}
3002     ->{<Q::DOMCore:ownerDocument>}
3003     ->{<Q::DOMCore:hasFeature>}
3004 wakaba 1.7 ->{HTML})) {
3005     $elementType eq $__ln ? true : false;
3006     } else {
3007     false;
3008     }
3009 wakaba 1.10 } elsif ($elementNode->{<Q::TreeCore:node>}
3010     ->{<Q::DOMCore:ownerDocument>}->{<Q::DOMCore:hasFeature>}
3011 wakaba 1.7 ->{HTML}) {
3012 wakaba 1.10 if ($elementNode->{<Q::TreeCore:node>}
3013     ->{<Q::DOMCore:ownerDocument>}->{<Q::DOMCore:hasFeature>}
3014 wakaba 1.7 ->{XML}) {
3015     $elementType eq $elementNode-><AG::DOMCore:Node.nodeName>
3016     ? true : false;
3017     } else {
3018     $elementType eq lc ($elementNode-><AG::DOMCore:Node.nodeName>)
3019     ? true : false;
3020     }
3021     } else {
3022     false;
3023     }
3024     }
3025    
3026     ResourceDef:
3027 wakaba 1.14 @QName: NodeStem
3028     @AliasFor: ManakaiNode|NodeStem||ManakaiDOM|Perl
3029     @For: ManakaiDOM|Perl
3030    
3031     ResourceDef:
3032     @QName: NodeRef
3033     @AliasFor: ManakaiNode|NodeRef||ManakaiDOM|Perl
3034     @For: ManakaiDOM|Perl
3035    
3036     ResourceDef:
3037     @QName: getNodeRef
3038     @AliasFor: ManakaiNode|getNewReference||ManakaiDOM|Perl
3039     @For: ManakaiDOM|Perl
3040    
3041     ResourceDef:
3042 wakaba 1.7 @QName: isHTMLElemento
3043     @rdf:type:
3044     dis2pm:InlineCode
3045     @enDesc:
3046     Tests whether this is an HTML element of the given type or not.
3047     @Param:
3048     @@Name: elementNodeo
3049 wakaba 1.14 @@Type: NodeStem
3050 wakaba 1.7 @@enDesc:
3051     The element node to test.
3052     @Param:
3053     @@Name: elementType
3054     @@Type:
3055     DOMMain:DOMString
3056     @@enDesc:
3057     The element type name to test.
3058 wakaba 1.17 @PerlCDef:
3059 wakaba 1.7 do {
3060     my $__ln = $elementNodeo->{<Q::infoset:localName>};
3061     if (defined $__ln) { ## Namespace-aware node
3062     my $__ns = $elementNodeo->{<Q::infoset:namespaceName>};
3063     if ($__ns eq <Q::xhtml1:> or
3064     (not defined $__ns and
3065 wakaba 1.10 $elementNodeo->{<Q::DOMCore:ownerDocument>}
3066     ->{<Q::DOMCore:hasFeature>}
3067 wakaba 1.7 ->{HTML})) {
3068     $elementType eq $__ln ? true : false;
3069     } else {
3070     false;
3071     }
3072 wakaba 1.10 } elsif ($elementNodeo
3073     ->{<Q::DOMCore:ownerDocument>}->{<Q::DOMCore:hasFeature>}
3074 wakaba 1.7 ->{HTML}) {
3075     my $elClass = <ClassName::DOMCore:ManakaiDOMElement>;
3076     my $elementNode = <Code::ManakaiNode:getWeakRef
3077     ||ManakaiDOM:Perl::
3078     $object = $elementNodeo,
3079     $class = $elClass,
3080     >;
3081 wakaba 1.10 if ($elementNodeo
3082     ->{<Q::DOMCore:ownerDocument>}->{<Q::DOMCore:hasFeature>}
3083 wakaba 1.7 ->{XML}) {
3084     $elementType eq $elementNode-><AG::DOMCore:Node.nodeName>
3085     ? true : false;
3086     } else {
3087     $elementType eq lc ($elementNode-><AG::DOMCore:Node.nodeName>)
3088     ? true : false;
3089     }
3090     } else {
3091     false;
3092     }
3093     }
3094    
3095    
3096     ElementTypeBinding:
3097     @Name: enDesc
3098     @ElementType:
3099     dis:Description
3100     @ShadowContent:
3101     @@lang:en
3102    
3103 wakaba 1.18 IfCls1ETDef:
3104 wakaba 1.4 @ETQName:
3105     xhtml1:html
3106 wakaba 1.9 @QName:
3107     @@@: html
3108     @@ForCheck: s|ForML
3109 wakaba 1.4
3110     @IFQName:
3111     @@@: HTMLHtmlElement
3112     @ClsQName:
3113     @@@: ManakaiDOMHTMLHtmlElement
3114     @ISAHTMLElement:
3115 wakaba 1.1
3116 wakaba 1.4 @ATTR:
3117 wakaba 1.1 @@Name: version
3118 wakaba 1.4 @@Deprecated:
3119 wakaba 1.11 @@ReflectCDATA:
3120 wakaba 1.1 @@Get:
3121     @@Set:
3122    
3123 wakaba 1.18 IfCls1ETDef:
3124 wakaba 1.4 @ETQName:
3125     xhtml1:head
3126     @IFQName:
3127     @@@: HTMLHeadElement
3128     @ClsQName:
3129     @@@: ManakaiDOMHTMLHeadElement
3130     @ISAHTMLElement:
3131 wakaba 1.1
3132 wakaba 1.4 @ATTR:
3133 wakaba 1.1 @@Name: profile
3134 wakaba 1.11 @@ReflectCDATA:
3135 wakaba 1.1 @@Get:
3136     @@Set:
3137    
3138 wakaba 1.17 IfCls1ETDef:
3139 wakaba 1.4 @ETQName:
3140     xhtml1:link
3141     @IFQName:
3142     @@@: HTMLLinkElement
3143     @ClsQName:
3144     @@@: ManakaiDOMHTMLLinkElement
3145     @ISAHTMLElement:
3146 wakaba 1.1
3147     @Attr:
3148     @@Name: disabled
3149     @@Description:
3150     @@@lang:en
3151     @@@@:
3152     Whether the link is enabled or not. This is currently
3153     only used for style sheet links and may be used to
3154     activate or deactivate the style sheet.
3155     @@Get:
3156     @@@Type:
3157     DOMMain:boolean
3158     @@@InCase:
3159     @@@@Value: true
3160     @@@@Description:
3161     @@@@@lang:en
3162     @@@@@@:
3163     The link is disabled.
3164     @@@InCase:
3165     @@@@Value: false
3166     @@@@Description:
3167     @@@@@lang:en
3168     @@@@@@:
3169     The link is enabled.
3170     @@@Def:
3171 wakaba 1.4 @@@@ContentType:
3172 wakaba 1.1 lang:dis
3173     @@@@GetProp:
3174     DOMHTML:disabled
3175     @@Set:
3176     @@@Type:
3177     DOMMain:boolean
3178     @@@InCase:
3179     @@@@Value: true
3180     @@@@Description:
3181     @@@@@lang:en
3182     @@@@@@:
3183     The link is disabled.
3184     @@@InCase:
3185     @@@@Value: false
3186     @@@@Description:
3187     @@@@@lang:en
3188     @@@@@@:
3189     The link is enabled.
3190     @@@Def:
3191 wakaba 1.4 @@@@ContentType:
3192 wakaba 1.1 lang:dis
3193     @@@@SetProp:
3194     DOMHTML:disabled
3195 wakaba 1.4 @@ImplNote:
3196     @@@lang:en
3197     @@@@:
3198     A version of WinIE 3 has a <HA::disable> attribute by mistake.
3199     @ATTR:
3200 wakaba 1.1 @@Name: charset
3201 wakaba 1.11 @@ReflectCDATA:
3202 wakaba 1.1 @@Get:
3203     @@Set:
3204 wakaba 1.4 @ATTR:
3205 wakaba 1.1 @@Name: href
3206 wakaba 1.11 @@ReflectURI:
3207 wakaba 1.1 @@Get:
3208     @@Set:
3209 wakaba 1.4 @ATTR:
3210 wakaba 1.1 @@Name: hreflang
3211 wakaba 1.11 @@ReflectCDATA:
3212 wakaba 1.1 @@Get:
3213     @@Set:
3214 wakaba 1.4 @ATTR:
3215 wakaba 1.1 @@Name: media
3216 wakaba 1.11 @@ReflectCDATA:
3217 wakaba 1.1 @@Get:
3218     @@Set:
3219 wakaba 1.4 @ATTR:
3220 wakaba 1.1 @@Name: rel
3221 wakaba 1.11 @@ReflectCDATA:
3222 wakaba 1.1 @@Get:
3223     @@Set:
3224 wakaba 1.4 @ATTR:
3225 wakaba 1.1 @@Name: rev
3226 wakaba 1.11 @@ReflectCDATA:
3227 wakaba 1.1 @@Get:
3228     @@Set:
3229 wakaba 1.4 @ATTR:
3230 wakaba 1.1 @@Name: target
3231 wakaba 1.11 @@ReflectCDATA:
3232 wakaba 1.1 @@Get:
3233     @@Set:
3234 wakaba 1.4 @ATTR:
3235 wakaba 1.1 @@Name: type
3236 wakaba 1.11 @@ReflectCDATA:
3237 wakaba 1.1 @@Get:
3238     @@Set:
3239 wakaba 1.17 ##HTMLLinkElement
3240 wakaba 1.1
3241 wakaba 1.17 IfCls1ETDef:
3242 wakaba 1.4 @ETQName:
3243     xhtml1:title
3244     @IFQName:
3245     @@@: HTMLTitleElement
3246     @ClsQName:
3247     @@@: ManakaiDOMHTMLTitleElement
3248     @ISAHTMLElement:
3249 wakaba 1.17
3250 wakaba 1.4
3251 wakaba 1.1 @Attr:
3252     @@Name: text
3253     @@Description:
3254     @@@lang:en
3255     @@@@:
3256     The title.
3257     @@Get:
3258     @@@Type: DOMString
3259     @@@Def:
3260 wakaba 1.4 @@@@ContentType:
3261     lang:dis
3262     @@@@DISPerl:cloneCode:
3263 wakaba 1.7 DOMCore:ManakaiDOMNode::ManakaiDOM:ManakaiDOMLatest.textContent.get
3264 wakaba 1.1 @@Set:
3265     @@@Type: DOMString
3266     @@@Def:
3267 wakaba 1.4 @@@@ContentType:
3268     lang:dis
3269     @@@@DISPerl:cloneCode:
3270 wakaba 1.7 DOMCore:ManakaiDOMNode::ManakaiDOM:ManakaiDOMLatest.textContent.set
3271 wakaba 1.17 ##HTMLTitleElement
3272 wakaba 1.1
3273 wakaba 1.17 IfCls1ETDef:
3274 wakaba 1.4 @ETQName:
3275     xhtml1:meta
3276     @IFQName:
3277     @@@: HTMLMetaElement
3278     @ClsQName:
3279     @@@: ManakaiDOMHTMLMetaElement
3280     @ISAHTMLElement:
3281    
3282     @ATTR:
3283 wakaba 1.1 @@Name: content
3284 wakaba 1.11 @@ReflectCDATA:
3285 wakaba 1.1 @@Get:
3286     @@Set:
3287 wakaba 1.4 @ATTR:
3288     @@AName:
3289     @@@@: http-equiv
3290     @@DOMAName:
3291     @@@@: httpEquiv
3292 wakaba 1.11 @@ReflectCDATA:
3293 wakaba 1.1 @@Get:
3294     @@Set:
3295 wakaba 1.4 @ATTR:
3296 wakaba 1.1 @@Name: name
3297 wakaba 1.11 @@ReflectCDATA:
3298 wakaba 1.1 @@Get:
3299     @@Set:
3300 wakaba 1.4 @ATTR:
3301 wakaba 1.1 @@Name: scheme
3302 wakaba 1.11 @@ReflectCDATA:
3303 wakaba 1.1 @@Get:
3304     @@Set:
3305    
3306 wakaba 1.17 IfCls1ETDef:
3307 wakaba 1.4 @ETQName:
3308     xhtml1:base
3309     @IFQName:
3310     @@@: HTMLBaseElement
3311     @ClsQName:
3312     @@@: ManakaiDOMHTMLBaseElement
3313     @ISAHTMLElement:
3314    
3315     @ATTR:
3316 wakaba 1.1 @@Name: href
3317 wakaba 1.11 @@ReflectURI:
3318 wakaba 1.1 @@Get:
3319     @@Set:
3320 wakaba 1.4 @ATTR:
3321 wakaba 1.1 @@Name: target
3322 wakaba 1.11 @@ReflectCDATA:
3323 wakaba 1.1 @@Get:
3324     @@Set:
3325    
3326 wakaba 1.4 ElementTypeBinding:
3327     @Name: ISAHTMLElement
3328 wakaba 1.1 @ElementType:
3329 wakaba 1.4 dis:ISA
3330     @ShadowContent:
3331     @@@: HTMLElement
3332     @@ForCheck:
3333     ManakaiDOM:ForIF
3334     @ShadowSibling:
3335     @@ISA:
3336     @@@@: ManakaiDOMHTMLElement
3337     @@@ForCheck:
3338     ManakaiDOM:ForClass
3339    
3340 wakaba 1.17 IfCls1ETDef:
3341 wakaba 1.4 @ETQName:
3342     xhtml1:isindex
3343     @IFQName:
3344     @@@: HTMLIsIndexElement
3345     @ClsQName:
3346     @@@: ManakaiDOMHTMLIsIndexElement
3347     @ISAHTMLElement:
3348    
3349     @ForCheck: !ForXHTML11
3350    
3351 wakaba 1.1 @Attr:
3352     @@Name: form
3353     @@Description:
3354     @@@lang:en
3355     @@@@:
3356 wakaba 1.15 The <HE::form> element containing this element.
3357 wakaba 1.1 \
3358 wakaba 1.15 {NOTE:: Although DOM has this attribute, the <HE::isindex>
3359     is independent from any <HE::form> by definition.
3360 wakaba 1.1 \
3361     }
3362     @@Get:
3363 wakaba 1.2 @@@Type:
3364 wakaba 1.4 DOMHTML:HTMLFormElement
3365 wakaba 1.1 @@@InCase:
3366     @@@@Value:
3367     @@@@@is-null:1
3368     @@@@Description:
3369     @@@@@lang:en
3370     @@@@@@:
3371     This element is not within the context of a form.
3372 wakaba 1.7 @@@disDef:
3373     @@@@DISLang:nop:
3374 wakaba 1.4 @ATTR:
3375 wakaba 1.1 @@Name: prompt
3376 wakaba 1.4 @@Deprecated:
3377 wakaba 1.11 @@ReflectCDATA:
3378 wakaba 1.1 @@Get:
3379     @@Set:
3380    
3381 wakaba 1.4 ElementTypeBinding:
3382 wakaba 1.7 @Name: disDef
3383     @ElementType:
3384     dis:Def
3385     @ShadowContent:
3386     @@ContentType:
3387     lang:dis
3388 wakaba 1.17 @@ForCheck: ManakaiDOM|ForClass
3389    
3390     ElementTypeBinding:
3391     @Name: disCDef
3392     @ElementType:
3393     dis:Def
3394     @ShadowContent:
3395     @@ContentType:
3396     lang:dis
3397 wakaba 1.7
3398     ElementTypeBinding:
3399 wakaba 1.4 @Name: ETQName
3400     @ElementType:
3401 wakaba 1.7 dis:AppName
3402 wakaba 1.4 @ShadowContent:
3403     @@ForCheck:
3404     s:ForML
3405 wakaba 1.17 @@ContentType: DISCore|QName
3406 wakaba 1.7
3407 wakaba 1.4 ElementTypeBinding:
3408     @Name: IFQName
3409     @ElementType:
3410     dis:QName
3411     @ShadowContent:
3412     @@ForCheck:
3413     ManakaiDOM:ForIF
3414     ElementTypeBinding:
3415     @Name: ClsQName
3416 wakaba 1.1 @ElementType:
3417 wakaba 1.4 dis:QName
3418     @ShadowContent:
3419     @@ForCheck:
3420     ManakaiDOM:ForClass
3421    
3422 wakaba 1.17 IfCls1ETDef:
3423 wakaba 1.4 @ETQName:
3424     xhtml1:style
3425     @IFQName: HTMLStyleElement
3426     @ClsQName: ManakaiDOMHTMLStyleElement
3427     @ISAHTMLElement:
3428    
3429 wakaba 1.1 @Attr:
3430     @@Name: disabled
3431     @@Description:
3432     @@@lang:en
3433     @@@@:
3434     Whether the style sheet is enabled or not.
3435     @@Get:
3436     @@@Type:
3437     DOMMain:boolean
3438     @@@InCase:
3439     @@@@Value: true
3440     @@@@Description:
3441     @@@@@lang:en
3442     @@@@@@:The style sheet is disabled.
3443     @@@InCase:
3444     @@@@Value: false
3445     @@@@Description:
3446     @@@@@lang:en
3447     @@@@@@:The style sheet is enabled.
3448     @@@Def:
3449 wakaba 1.4 @@@@ContentType:
3450 wakaba 1.1 lang:dis
3451     @@@@GetProp:
3452     DOMHTML:disabled
3453     @@Set:
3454     @@@Type:
3455     DOMMain:boolean
3456     @@@InCase:
3457     @@@@Value: true
3458     @@@@Description:
3459     @@@@@lang:en
3460     @@@@@@:The style sheet is disabled.
3461     @@@InCase:
3462     @@@@Value: false
3463     @@@@Description:
3464     @@@@@lang:en
3465     @@@@@@:The style sheet is enabled.
3466     @@@Def:
3467 wakaba 1.4 @@@@ContentType:
3468 wakaba 1.1 lang:dis
3469     @@@@SetProp:
3470     DOMHTML:disabled
3471 wakaba 1.4 @ATTR:
3472 wakaba 1.1 @@Name: media
3473 wakaba 1.11 @@ReflectCDATA:
3474 wakaba 1.1 @@Get:
3475     @@Set:
3476 wakaba 1.4 @ATTR:
3477 wakaba 1.1 @@Name: type
3478 wakaba 1.11 @@ReflectCDATA:
3479 wakaba 1.1 @@Get:
3480     @@Set:
3481    
3482 wakaba 1.7 PropDef:
3483     @QName: disabled
3484     @enDesc:
3485     <A::.disabled>.
3486    
3487 wakaba 1.4 ElementTypeBinding:
3488     @Name: DOMAName
3489 wakaba 1.1 @ElementType:
3490 wakaba 1.4 dis:Name
3491     @ShadowContent:
3492 wakaba 1.17 @@ForCheck: ManakaiDOM|DOM
3493    
3494 wakaba 1.4 ElementTypeBinding:
3495     @Name: AName
3496     @ElementType:
3497     dis:Name
3498     @ShadowContent:
3499 wakaba 1.17 @@ForCheck: s|ForML
3500    
3501     ElementTypeBinding:
3502     @Name: plAName
3503     @ElementType:
3504     DISPerl:methodName
3505     @ShadowContent:
3506     @@ForCheck: ManakaiDOM|DOM
3507     @@ContentType: lang|Perl
3508 wakaba 1.4
3509 wakaba 1.11 IF:
3510 wakaba 1.17 @ForCheck: !ManakaiDOM|all
3511    
3512 wakaba 1.11 @IFQName: HTMLStrictlyInlineContainerExtended
3513     @ClsQName: ManakaiDOMHTMLStrictlyInlineContainerExtended
3514     @DOMMain:implementFeature: HTMLExtendedFeature30
3515    
3516     @Method:
3517     @@Name: appendNewAnchor
3518     @@enDesc:
3519     Appends a new <HE::a> element.
3520     @@Param:
3521     @@@Name: hrefArg
3522     @@@Type: DOMString
3523     @@@enDesc:
3524     A URI reference to be set to the <HA::href> attribute
3525     of the newly created element.
3526     @@Param:
3527     @@@Name: textArg
3528     @@@Type: DOMString
3529     @@@enDesc:
3530     Text content of the newly created element.
3531     @@@nullCase:
3532     @@@@enDesc: No text node is added.
3533     @@Param:
3534     @@@Name: classArg
3535     @@@Type: DOMString
3536     @@@enDesc:
3537     A space-separeted list of classes to be set to
3538     the <HA::class> attribute of the newly created element.
3539     @@@nullCase:
3540     @@@@enDesc:
3541     No class is set.
3542 wakaba 1.13 @@@ImplNote:
3543     @@@@lang:en
3544     @@@@@:
3545     <IF::DOMTokenString> and <IF::DOMStringList> shuld also be supported.
3546 wakaba 1.11 @@Return:
3547     @@@Type: HTMLAnchorElement
3548     @@@enDesc:
3549     The newly created <HE::a> element.
3550     @@@RaiseException:
3551     @@@@@: MDOMX|NOMOD_THIS
3552     @@@@enDesc:
3553     This node is read-only.
3554     @@@PerlDef:
3555     __DEEP{
3556     $self-><M::DOMCore:Node.appendChild>
3557     ($r = $self-><AG::DOMCore:Node.ownerDocument>
3558     -><M::DOMCore:Document.createElementNS>
3559     (<Q::xhtml1:>, 'a'));
3560     $r-><AS::HTMLAnchorElement.href> ($hrefArg);
3561     if (defined $textArg) {
3562     $r-><AS::DOMCore:Node.textContent> ($textArg);
3563     }
3564     if (defined $classArg) {
3565     $r-><AS::HTMLElement.className> ($classArg);
3566     }
3567     }__;
3568    
3569     @Method:
3570     @@Name: appendNewAbbr
3571     @@enDesc:
3572     Appends a new <HE::abbr> element.
3573     @@Param:
3574     @@@Name: shortForm
3575     @@@Type: DOMString
3576     @@@enDesc:
3577     Text content of the newly created element.
3578     @@@nullCase:
3579     @@@@enDesc: No text node is added.
3580     @@Param:
3581     @@@Name: longForm
3582     @@@Type: DOMString
3583     @@@enDesc:
3584     A text to be set to the <HA::title> attribute
3585     of the newly created element.
3586     @@@nullCase:
3587     @@@@enDesc: No long form.
3588     @@Param:
3589     @@@Name: classArg
3590     @@@Type: DOMString
3591     @@@enDesc:
3592     A space-separeted list of classes to be set to
3593     the <HA::class> attribute of the newly created element.
3594     @@@nullCase:
3595     @@@@enDesc:
3596     No class is set.
3597     @@Return:
3598     @@@Type: HTMLElement
3599     @@@enDesc:
3600     The newly created <HE::abbr> element.
3601     @@@RaiseException:
3602     @@@@@: MDOMX|NOMOD_THIS
3603     @@@@enDesc:
3604     This node is read-only.
3605     @@@PerlDef:
3606     __DEEP{
3607     $self-><M::DOMCore:Node.appendChild>
3608     ($r = $self-><AG::DOMCore:Node.ownerDocument>
3609     -><M::DOMCore:Document.createElementNS>
3610     (<Q::xhtml1:>, 'abbr'));
3611     if (defined $shortForm) {
3612     $r-><AS::DOMCore:Node.textContent> ($shortForm);
3613     }
3614     if (defined $longForm) {
3615     $r-><AS::HTMLElement.title> ($longForm);
3616     }
3617     if (defined $classArg) {
3618     $r-><AS::HTMLElement.className> ($classArg);
3619     }
3620     }__;
3621    
3622     @Method:
3623     @@Name: appendNewDfn
3624     @@enDesc:
3625     Appends a new <HE::dfn> element.
3626     @@Param:
3627     @@@Name: textArg
3628     @@@Type: DOMString
3629     @@@enDesc:
3630     Text content of the newly created element.
3631     @@@nullCase:
3632     @@@@enDesc: No text node is added.
3633     @@Param:
3634     @@@Name: titleArg
3635     @@@Type: DOMString
3636     @@@enDesc:
3637     A definitive word to be set to
3638     the <HA::title> attribute of the newly created element.
3639     @@@nullCase:
3640     @@@@enDesc:
3641     No title is set.
3642     @@Param:
3643     @@@Name: classArg
3644     @@@Type: DOMString
3645     @@@enDesc:
3646     A space-separeted list of classes to be set to
3647     the <HA::class> attribute of the newly created element.
3648     @@@nullCase:
3649     @@@@enDesc:
3650     No class is set.
3651     @@Return:
3652     @@@Type: HTMLElement
3653     @@@enDesc:
3654     The newly created <HE::dfn> element.
3655     @@@RaiseException:
3656     @@@@@: MDOMX|NOMOD_THIS
3657     @@@@enDesc:
3658     This node is read-only.
3659     @@@PerlDef:
3660     __DEEP{
3661     $self-><M::DOMCore:Node.appendChild>
3662     ($r = $self-><AG::DOMCore:Node.ownerDocument>
3663     -><M::DOMCore:Document.createElementNS>
3664     (<Q::xhtml1:>, 'dfn'));
3665     if (defined $textArg) {
3666     $r-><AS::DOMCore:Node.textContent> ($textArg);
3667     }
3668     if (defined $titleArg) {
3669     $r-><AS::HTMLElement.title> ($titleArg);
3670     }
3671     if (defined $classArg) {
3672     $r-><AS::HTMLElement.className> ($classArg);
3673     }
3674     }__;
3675    
3676     @enImplNote:
3677 wakaba 1.13 {TODO::
3678     <P::classArg>s should also accept <IF::DOMTokenString> (HTML5)
3679     and <IF::DOMStringList> (DOM3) and any Perl array references.
3680     (Pending until the publication of a fixed draft of HTML5)
3681     }
3682 wakaba 1.11
3683     @Method:
3684     @@Name: appendNewPhrase
3685     @@enDesc:
3686     Appends a new phrase element or text.
3687     @@Param:
3688     @@@Name: namespaceNameArg
3689     @@@Type: DOMString
3690     @@@enDesc:
3691     Element type namespace URI.
3692     @@@nullCase:
3693     @@@@enDesc:
3694 wakaba 1.13 The HTML namespace URI, <URI::http://www.w3.org/1999/xhtml>,
3695     is assumed.
3696     \
3697     {NOTE:: The <DOM::null> namespace is not supported.
3698     }
3699 wakaba 1.11 @@Param:
3700     @@@Name: localNameArg
3701     @@@Type: DOMString
3702     @@@enDesc:
3703     Element type local name.
3704     @@@nullCase:
3705     @@@@enDesc:
3706 wakaba 1.13 No element is added and the <P::namespaceNameArg> is ignored.
3707 wakaba 1.11 @@Param:
3708     @@@Name: textArg
3709     @@@Type: DOMString
3710     @@@enDesc:
3711     Text content of the newly created element.
3712     If <P::localNameArg> is <DOM::null>, the <P::textArg>
3713 wakaba 1.13 is directly appended to this element as a new <IF::Text> node.
3714 wakaba 1.11 @@@nullCase:
3715     @@@@enDesc: No text node is added.
3716     @@Param:
3717     @@@Name: classArg
3718     @@@Type: DOMString
3719     @@@enDesc:
3720     A space-separeted list of classes to be set to
3721     the <HA::class> attribute of the newly created element.
3722     If the <P::localNameArg> is <DOM::null>, this parameter
3723     is ignored.
3724     @@@nullCase:
3725     @@@@enDesc:
3726     No class is set.
3727     @@Return:
3728     @@@Type: HTMLElement
3729     @@@enDesc:
3730     The newly created element.
3731     @@@nullCase:
3732     @@@@enDesc:
3733     If <P::localNameArg>
3734     is <DOM::null>.
3735     @@@RaiseException:
3736     @@@@@: MDOMX|NOMOD_THIS
3737     @@@@enDesc:
3738     This node is read-only.
3739     @@@RaiseException:
3740     @@@@@: DOMCore|DOMException.INVALID_CHARACTER_ERR
3741     @@@@enDesc:
3742     <P::localNameArg> is not a legal <CODE::Name>
3743     of the markup language in use.
3744     @@@RaiseException:
3745     @@@@@: DOMCore|DOMException.NAMESPACE_ERR
3746     @@@@enDesc:
3747     <P::localNameArg> is not a legal <CODE::NCName>
3748     of the XML version in use.
3749     @@@PerlDef:
3750     __DEEP{
3751     if (defined $localNameArg) {
3752     $self-><M::DOMCore:Node.appendChild>
3753     ($r = $self-><AG::DOMCore:Node.ownerDocument>
3754     -><M::DOMCore:Document.createElementNS>
3755     (defined $namespaceNameArg
3756     ? $namespaceNameArg : <Q::xhtml1:>,
3757     $localNameArg));
3758     if (defined $textArg) {
3759     $r-><AS::DOMCore:Node.textContent> ($textArg);
3760     }
3761     if (defined $classArg) {
3762     $r-><AS::HTMLElement.className> ($classArg);
3763     }
3764     } else {
3765     $self-><M::DOMCore:Node.appendChild>
3766     ($self-><AG::DOMCore:Node.ownerDocument>
3767     -><M::DOMCore:Document.createTextNode> ($textArg));
3768     }
3769     }__;
3770     ##HTMLStrictlyInlineContainerExtended
3771    
3772     ClsOnly:
3773 wakaba 1.17 @ForCheck: !ManakaiDOM|all
3774    
3775 wakaba 1.11 @For: ManakaiDOM|ManakaiDOMLatest
3776     @ClsQName: ManakaiDOMHTMLStrictlyInlineElementExtended
3777     @ClsISA: ManakaiDOMHTMLStrictlyInlineContainerExtended
3778     @ClsISA: ManakaiDOMHTMLElement
3779    
3780     @enDesc:
3781     Strictly inline-level content elements whose content
3782     is also strictly inline-level content.
3783    
3784     @enImplNote:
3785     Future version of manakai might split this class into
3786     indivisual element type classes.
3787    
3788     @s:elementType: em||ForHTML5
3789     @s:elementType: small||ForHTML5
3790     @s:elementType: i||ForHTML5
3791     @s:elementType: var||ForHTML5
3792     @s:elementType: kbd||ForHTML5
3793     @s:elementType: sup||ForHTML5
3794     @s:elementType: sub||ForHTML5
3795     @s:elementType: cite||ForHTML5
3796     @s:elementType: abbr||ForHTML5
3797     @s:elementType: dfn||ForHTML5
3798     ##HTMLStrictlyInlineElementExtended
3799    
3800     ResourceDef:
3801     @QName: em
3802     @rdf:type: s|ElementType
3803     @For: ForHTML
3804     @ETQName: xhtml1|em
3805    
3806     ResourceDef:
3807     @QName: small
3808     @rdf:type: s|ElementType
3809     @For: ForHTML
3810     @ETQName: xhtml1|small
3811    
3812     ResourceDef:
3813     @QName: i
3814     @rdf:type: s|ElementType
3815     @For: ForHTML
3816     @ETQName: xhtml1|i
3817    
3818     ResourceDef:
3819     @QName: var
3820     @rdf:type: s|ElementType
3821     @For: ForHTML
3822     @ETQName: xhtml1|var
3823    
3824     ResourceDef:
3825     @QName: kbd
3826     @rdf:type: s|ElementType
3827     @For: ForHTML
3828     @ETQName: xhtml1|kbd
3829    
3830     ResourceDef:
3831     @QName: sup
3832     @rdf:type: s|ElementType
3833     @For: ForHTML
3834     @ETQName: xhtml1|sup
3835    
3836     ResourceDef:
3837     @QName: sub
3838     @rdf:type: s|ElementType
3839     @For: ForHTML
3840     @ETQName: xhtml1|sub
3841    
3842     ResourceDef:
3843     @QName: cite
3844     @rdf:type: s|ElementType
3845     @For: ForHTML
3846     @ETQName: xhtml1|cite
3847    
3848     ResourceDef:
3849     @QName: abbr
3850     @rdf:type: s|ElementType
3851     @For: ForHTML
3852     @ETQName: xhtml1|abbr
3853    
3854     ResourceDef:
3855     @QName: dfn
3856     @rdf:type: s|ElementType
3857     @For: ForHTML
3858     @ETQName: xhtml1|dfn
3859    
3860     IF:
3861 wakaba 1.17 @ForCheck: !ManakaiDOM|all
3862    
3863 wakaba 1.11 @IFQName: HTMLStructuredInlineContainerExtended
3864     @ClsQName: ManakaiDOMHTMLStructuredInlineContainerExtended
3865     @DOMMain:implementFeature: HTMLExtendedFeature30
3866    
3867     @Method:
3868     @@Name: appendNewUl
3869     @@enDesc:
3870     Appends a new empty <HE::ul> element.
3871     @@enImplNote:
3872     Array containing items should be accepted as a parameter?
3873     @@Return:
3874     @@@Type: HTMLUListElement
3875     @@@enDesc:
3876     The newly created <HE::ul> element.
3877     @@@RaiseException:
3878     @@@@@: MDOMX|NOMOD_THIS
3879     @@@@enDesc:
3880     This node is read-only.
3881     @@@PerlDef:
3882     __DEEP{
3883     $self-><M::DOMCore:Node.appendChild>
3884     ($r = $self-><AG::DOMCore:Node.ownerDocument>
3885     -><M::DOMCore:Document.createElementNS>
3886     (<Q::xhtml1:>, 'ul'));
3887     }__;
3888    
3889     @Method:
3890     @@Name: appendNewDl
3891     @@enDesc:
3892     Appends a new empty <HE::dl> element.
3893     @@enImplNote:
3894     Array containing items should be accepted as a parameter?
3895     @@Return:
3896     @@@Type: HTMLDListElement
3897     @@@enDesc:
3898     The newly created <HE::dl> element.
3899     @@@RaiseException:
3900     @@@@@: MDOMX|NOMOD_THIS
3901     @@@@enDesc:
3902     This node is read-only.
3903     @@@PerlDef:
3904     __DEEP{
3905     $self-><M::DOMCore:Node.appendChild>
3906     ($r = $self-><AG::DOMCore:Node.ownerDocument>
3907     -><M::DOMCore:Document.createElementNS>
3908     (<Q::xhtml1:>, 'dl'));
3909     }__;
3910    
3911    
3912     @Method:
3913     @@Name: appendNewTable
3914     @@enDesc:
3915     Appends a new empty table whose only child is a <HE::tbody> element.
3916     @@enImplNote:
3917     Array containing items should be accepted as a parameter?
3918     Caption? Row & Col number?
3919     @@Return:
3920     @@@Type: HTMLTableElement
3921     @@@enDesc:
3922     The newly created <HE::table> element.
3923     @@@RaiseException:
3924     @@@@@: MDOMX|NOMOD_THIS
3925     @@@@enDesc:
3926     This node is read-only.
3927     @@@PerlDef:
3928     __DEEP{
3929     my $od = $self-><AG::DOMCore:Node.ownerDocument>;
3930     $self-><M::DOMCore:Node.appendChild>
3931     ($r = $od-><M::DOMCore:Document.createElementNS>
3932     (<Q::xhtml1:>, 'table'));
3933     $r-><M::DOMCore:Node.appendChild>
3934     ($od-><M::DOMCore:Document.createElementNS>
3935     (<Q::xhtml1:>, 'tbody'));
3936     }__;
3937     ##StructuredInlineContainerExtended
3938    
3939     IF:
3940 wakaba 1.17 @ForCheck: !ManakaiDOM|all
3941    
3942 wakaba 1.11 @IFQName: HTMLInlineContainerExtended
3943     @ClsQName: ManakaiDOMHTMLInlineContainerExtended
3944     @DOMMain:implementFeature: HTMLExtendedFeature30
3945    
3946     @IFISA: HTMLStrictlyInlineContainerExtended
3947     @ClsISA: ManakaiDOMHTMLStrictlyInlineContainerExtended
3948    
3949     @IFISA: HTMLStructuredInlineContainerExtended
3950     @ClsISA: ManakaiDOMHTMLStructuredInlineContainerExtended
3951     ##HTMLInlineContainerExtended
3952    
3953     ClsOnly:
3954 wakaba 1.17 @ForCheck: !ManakaiDOM|all
3955    
3956 wakaba 1.11 @For: ManakaiDOM|ManakaiDOMLatest
3957     @ClsQName: ManakaiDOMHTMLInlineElementExtended
3958     @ClsISA: ManakaiDOMHTMLInlineContainerExtended
3959     @ClsISA: ManakaiDOMHTMLElement
3960    
3961     @enDesc:
3962     Strictly inline-level content elements whose content
3963     is conditionally either strictly inline-level content or
3964     any inline-level content.
3965    
3966     @enImplNote:
3967     Future version of manakai might split this class into
3968     indivisual element type classes.
3969    
3970     @s:elementType: code||ForHTML5
3971     @s:elementType: samp||ForHTML5
3972     @s:elementType: span||ForHTML5
3973     ##HTMLInlineElementExtended
3974    
3975     ResourceDef:
3976     @QName: code
3977     @rdf:type: s|ElementType
3978     @For: ForHTML
3979     @ETQName: xhtml1|code
3980    
3981     ResourceDef:
3982     @QName: samp
3983     @rdf:type: s|ElementType
3984     @For: ForHTML
3985     @ETQName: xhtml1|samp
3986    
3987     ResourceDef:
3988     @QName: span
3989     @rdf:type: s|ElementType
3990     @For: ForHTML
3991     @ETQName: xhtml1|span
3992    
3993     IF:
3994 wakaba 1.17 @ForCheck: !ManakaiDOM|all
3995    
3996 wakaba 1.11 @IFQName: HTMLBlockContainerExtended
3997     @ClsQName: ManakaiDOMHTMLBlockContainerExtended
3998     @DOMMain:implementFeature: HTMLExtendedFeature30
3999    
4000     @IFISA: HTMLStructuredInlineContainerExtended
4001     @ClsISA: ManakaiDOMHTMLStructuredInlineContainerExtended
4002    
4003     @Method:
4004     @@Name: appendNewParagraph
4005     @@enDesc:
4006     Appends a new <HE::p> element.
4007     @@Return:
4008     @@@Type: HTMLParagraphElement
4009     @@@enDesc:
4010     The newly created <HE::p> element.
4011     @@@RaiseException:
4012     @@@@@: MDOMX|NOMOD_THIS
4013     @@@@enDesc:
4014     This node is read-only.
4015     @@@PerlDef:
4016     __DEEP{
4017     $self-><M::DOMCore:Node.appendChild>
4018     ($r = $self-><AG::DOMCore:Node.ownerDocument>
4019     -><M::DOMCore:Document.createElementNS>
4020     (<Q::xhtml1:>, 'p'));
4021     }__;
4022     ##HTMLBlockContainerExtended
4023    
4024     IF:
4025 wakaba 1.17 @ForCheck: !ManakaiDOM|all
4026    
4027 wakaba 1.11 @IFQName: HTMLSectioningElementExtended
4028     @ClsQName: ManakaiDOMHTMLSectioningElementExtended
4029     @DOMMain:implementFeature: HTMLExtendedFeature30
4030    
4031     @IFISA: HTMLBlockContainerExtended
4032     @ClsISA: ManakaiDOMHTMLBlockContainerExtended
4033    
4034     @Method:
4035     @@Name: appendNewSection
4036     @@enDesc:
4037     Appends a new <HE::section> element.
4038     @@ImplNote:
4039     @@@lang:en
4040     @@@@:
4041     Better method name?
4042     @@Param:
4043     @@@Name: title
4044     @@@Type: DOMString
4045     @@@enDesc:
4046     The title text of the section. If this parameter is
4047     specified, the newly created <HE::section> element
4048     has a newly created heading element with a
4049     text node whose <A::DOMCore:CharacterData.data> is set to <P::title>.
4050     @@@nullCase:
4051     @@@@enDesc:
4052     The newly created section does not have an initial
4053     heading element.
4054     @@Return:
4055     @@@Type: HTMLSectionElementExtended
4056     @@@actualType: ManakaiDOMHTMLSectionElementExtended
4057     @@@enDesc:
4058     The newly created <HE::section> element.
4059     @@@RaiseException:
4060     @@@@@: MDOMX|NOMOD_THIS
4061     @@@@enDesc:
4062     This node is read-only.
4063     @@@PerlDef:
4064     __DEEP{
4065     $self-><M::DOMCore:Node.appendChild>
4066     ($r = $self-><AG::DOMCore:Node.ownerDocument>
4067     -><M::DOMCore:Document.createElementNS>
4068     (<Q::xhtml1:>, 'section'));
4069     if (defined $title) {
4070     $r-><M::DOMCore:Node.appendChild>
4071     ($self-><AG::DOMCore:Node.ownerDocument>
4072     -><M::DOMCore:Document.createElementNS>
4073     (<Q::xhtml1:>, 'h1'))
4074     ## TODO: Rank
4075     -><AS::DOMCore:Node.textContent> ($title);
4076     }
4077     }__;
4078    
4079     @Attr:
4080     @@Name: heading
4081     @@enDesc:
4082     The heading element for this section.
4083     @@enImplNote:
4084     {TODO:: Update as in Web Applications 1.0.
4085     \
4086     }
4087     @@Type: HTMLElement
4088     @@Get:
4089     @@@nullCase:
4090     @@@@enDesc:
4091     This sectioning element does not have a heading.
4092     @@@PerlDef:
4093     for my $co (@{$self->{<Q::TreeCore:node>}->{<Q::infoset:children>}}) {
4094     if ($co->{<Q::DOMCore:nodeType>} eq <Q::infoset:Element> and
4095     (<Code::isHTMLElemento:: $elementNodeo = $co,
4096     $elementType = 'h1'> or
4097     <Code::isHTMLElemento:: $elementNodeo = $co,
4098     $elementType = 'h2'> or
4099     <Code::isHTMLElemento:: $elementNodeo = $co,
4100     $elementType = 'h3'> or
4101     <Code::isHTMLElemento:: $elementNodeo = $co,
4102     $elementType = 'h4'> or
4103     <Code::isHTMLElemento:: $elementNodeo = $co,
4104     $elementType = 'h5'> or
4105     <Code::isHTMLElemento:: $elementNodeo = $co,
4106     $elementType = 'h6'>)) {
4107     $r = <ClassM::DOMCore:ManakaiDOMNode.getNodeReference> ($co);
4108     last;
4109     }
4110     }
4111     @@enImplNote: Should setter be defined as e.g. caption?
4112    
4113     @Method:
4114     @@Name: createHeading
4115     @@enDesc:
4116     Creates a heading element and preprends as the first
4117     child node of this element or returns an existing one.
4118     @@enImplNote:
4119     Should prepend or append? Rank?
4120     @@Return:
4121     @@@Type: HTMLHeadingElement
4122     @@@enDesc:
4123     A heading element.
4124     @@@RaiseException:
4125     @@@@@: MDOMX|NOMOD_THIS
4126     @@@@enDesc:
4127     This node is read-only.
4128     @@@PerlDef:
4129     A: {
4130     for my $co (@{$self->{<Q::TreeCore:node>}->{<Q::infoset:children>}}) {
4131     if ($co->{<Q::DOMCore:nodeType>} eq <Q::infoset:Element> and
4132     (<Code::isHTMLElemento:: $elementNodeo = $co,
4133     $elementType = 'h1'> or
4134     <Code::isHTMLElemento:: $elementNodeo = $co,
4135     $elementType = 'h2'> or
4136     <Code::isHTMLElemento:: $elementNodeo = $co,
4137     $elementType = 'h3'> or
4138     <Code::isHTMLElemento:: $elementNodeo = $co,
4139     $elementType = 'h4'> or
4140     <Code::isHTMLElemento:: $elementNodeo = $co,
4141     $elementType = 'h5'> or
4142     <Code::isHTMLElemento:: $elementNodeo = $co,
4143     $elementType = 'h6'>)) {
4144     $r = <ClassM::DOMCore:ManakaiDOMNode.getNodeReference> ($co);
4145     last A;
4146     }
4147     }
4148    
4149     ## Not found
4150     __DEEP{
4151     $r = $self-><M::DOMCore:Node.insertBefore>
4152     ($self-><AG::DOMCore:Node.ownerDocument>
4153     -><M::DOMCore:Document.createElementNS>
4154     (<Q::xhtml1:>, 'h1'),
4155     $self-><AG::DOMCore:Node.firstChild>);
4156     }__;
4157     }
4158     ##HTMLSectioningElementExtended
4159    
4160     ElementTypeBinding:
4161     @Name: enImplNote
4162     @ElementType:
4163     dis:ImplNote
4164     @ShadowContent:
4165     @@lang:en
4166    
4167     H5ETX:
4168     @ETQName: xhtml1|section
4169     @IFQName: HTMLSectionElementExtended
4170     @ClsQName: ManakaiDOMHTMLSectionElementExtended
4171    
4172     @IFISA: HTMLSectioningElementExtended
4173     @ClsISA: ManakaiDOMHTMLSectioningElementExtended
4174     @ISAHTMLElement:
4175     ##HTMLSectionElementExtended
4176    
4177     ElementTypeBinding:
4178     @Name: nullCase
4179     @ElementType:
4180     dis:ResourceDef
4181     @ShadowContent:
4182     @@rdf:type: ManakaiDOM|InCase
4183     @@Value:
4184     @@@is-null:1
4185    
4186 wakaba 1.18 IfCls1ETDef:
4187 wakaba 1.4 @ETQName:
4188     xhtml1:body
4189     @IFQName: HTMLBodyElement
4190     @ClsQName: ManakaiDOMHTMLBodyElement
4191     @ISAHTMLElement:
4192    
4193     @ATTR:
4194     @@AName: alink
4195     @@DOMAName: aLink
4196 wakaba 1.17 @@plAName: alink
4197 wakaba 1.4 @@Deprecated:
4198 wakaba 1.11 @@ReflectCDATA:
4199 wakaba 1.1 @@Get:
4200     @@Set:
4201 wakaba 1.4 @ATTR:
4202 wakaba 1.1 @@Name: background
4203 wakaba 1.4 @@Deprecated:
4204 wakaba 1.11 @@ReflectURI:
4205 wakaba 1.1 @@Get:
4206     @@Set:
4207 wakaba 1.4 @ATTR:
4208     @@DOMAName: bgColor
4209     @@AName: bgcolor
4210 wakaba 1.17 @@plAName: bgcolor
4211 wakaba 1.4 @@Deprecated:
4212 wakaba 1.11 @@ReflectCDATA:
4213 wakaba 1.1 @@Get:
4214     @@Set:
4215 wakaba 1.4 @ATTR:
4216 wakaba 1.1 @@Name: link
4217 wakaba 1.4 @@Deprecated:
4218 wakaba 1.11 @@ReflectCDATA:
4219     @@Get:
4220     @@Set:
4221     @ATTR:
4222     @@Name: text
4223     @@Deprecated:
4224     @@ReflectCDATA:
4225     @@Get:
4226     @@Set:
4227     @Attr:
4228     @@DOMAName: vLink
4229     @@AName: vlink
4230 wakaba 1.17 @@plAName: vlink
4231 wakaba 1.11 @@Deprecated:
4232     @@ReflectCDATA:
4233     @@Get:
4234     @@Set:
4235     ##HTMLBodyElement
4236    
4237     IF:
4238 wakaba 1.17 @ForCheck: !ManakaiDOM|all
4239    
4240 wakaba 1.11 @IFQName: HTMLBodyElementExtended
4241     @ClsQName: ManakaiDOMHTMLBodyElementExtended
4242    
4243     @IFISA: HTMLSectioningElementExtended
4244     @ClsISA: ManakaiDOMHTMLSectioningElementExtended
4245     @ClsISA: ManakaiDOMHTMLBodyElement
4246     ##HTMLBodyElementExtended
4247    
4248     ImplNote:
4249     @@lang:en
4250     @@@:
4251 wakaba 1.15 <IF::HTMLFormElement>, <IF::HTMLSelectElement>,
4252     <IF::HTMLOptionElement>, <IF::HTMLOptGroupElement>,
4253     <IF::HTMLInputElement>, <IF::HTMLTextAreaElement>,
4254     <IF::HTMLButtonElement>, <IF::HTMLFieldSetElement>,
4255     <IF::HTMLLegendElement>: See <Module::MDOM:DOMWebForms>.
4256 wakaba 1.11
4257     FeatureDef:
4258     @QName: HTMLExtendedFeature
4259     @featureQName: ManakaiDOM|HTML
4260     @FeatureVerDef:
4261     @@QName: HTMLExtendedFeature30
4262     @@enDesc:
4263     Extended interfaces.
4264     @@DOMMain:requireFeature: HTMLFeature20
4265     @@DOMMain:requireFeature: DOMCore|CoreFeature30
4266     @@DOMMetaImpl:instanceFeatureOf: HTMLExtendedFeature
4267     @@Version: 3.0
4268    
4269     IF:
4270 wakaba 1.17 @ForCheck: !ManakaiDOM|all
4271    
4272 wakaba 1.11 @IFQName: HTMLListElementExtended
4273     @ClsQName: ManakaiDOMHTMLListElementExtended
4274     @DOMMain:implementFeature: HTMLExtendedFeature30
4275    
4276     @Method:
4277     @@Name: insertItem
4278     @@enDesc:
4279     Inserts a new empty item in the list. The new item is
4280     inserted immediately before the current <P::index>th
4281     item in the list.
4282     \
4283     If this node is a <HE::dl> element, a pair of
4284     <HE::dt> element and <HE::dd> element is
4285     inserted immediately before the <P::index>th <HE::dt> element.
4286     Otherwise, a <HE::li> element is inserted
4287     immediately before the <P::index>th <HE::li> element.
4288 wakaba 1.13 @@enImplNote:
4289     This behaviour may be changed if the HTML5 introduces
4290     the <QUOTE::di> element type which contains pair of <HE::dt>
4291     and <HE::dd> elements.
4292 wakaba 1.11 @@Param:
4293     @@@Name:index
4294     @@@Type:DOMMain|long||ManakaiDOM|all
4295     @@@enDesc:
4296     The item number where to insert a new item.
4297     The index starts from <DOM::0>.
4298     @@@InCase:
4299     @@@@enLabel:
4300     <DOM::-1> or equal to the number of items
4301     @@@@enDesc:
4302     The new item is appended.
4303     @@Return:
4304     @@@Type: HTMLElement
4305     @@@actualType: ManakaiDOMHTMLElement
4306     @@@enDesc:
4307     The newly created element. If this node is a <HE::dl>
4308     element, the newly created <HE::dt> element is returned.
4309     Otherwise, the <HE::li> element is returned.
4310     @@@RaiseException:
4311     @@@@@: MDOMX|NOMOD_THIS
4312     @@@@enDesc:
4313     This node is read-only.
4314     @@@RaiseException:
4315     @@@@@: DOMCore|DOMException.INDEX_SIZE_ERR
4316     @@@@enDesc:
4317     If the specified <P::index> is greater than
4318     the number of rows or if the <P::index> is a negative
4319     number other than <DOM::-1>.
4320     @@@PerlDef:
4321     @@@@ImplNote:
4322     @@@@@lang:en
4323     @@@@@@:
4324     For non-<HE::dl> elements.
4325     @@@@@:
4326     if ($self->{<Q::TreeCore:node>}->{<Q::DOMCore:read-only>}) {
4327     __EXCEPTION{
4328     MDOMX:NOMOD_THIS::
4329     }__;
4330     }
4331    
4332     my $before;
4333     my $after;
4334     __CODE{splitChildrenByElementIndex::
4335     $children => {[@{$self->{<Q::TreeCore:node>}
4336     ->{<Q::infoset:children>}}]},
4337     $before => $before, $after => $after,
4338     $elementType => 'li', $index => $index,
4339     }__;
4340    
4341     __DEEP{
4342     $r = $self-><AG::DOMCore:Node.ownerDocument>
4343     -><M::DOMCore:Document.createElementNS>
4344     (<Q::xhtml1:>, 'li');
4345     }__;
4346 wakaba 1.14 $self->{<Q::TreeCore:node>}-><M::NodeStem.importTree>
4347 wakaba 1.11 ($r->{<Q::TreeCore:node>});
4348     $r->{<Q::TreeCore:node>}->{<Q::infoset:parent>}
4349     = $self->{<Q::TreeCore:node>};
4350     $self->{<Q::TreeCore:node>}->{<Q::infoset:children>}
4351     = [@$before, $r->{<Q::TreeCore:node>}, @$after];
4352    
4353     ##HTMLListElementExtended
4354    
4355     ElementTypeBinding:
4356     @Name: IFISA
4357     @ElementType:
4358     dis:ISA
4359     @ShadowContent:
4360     @@ForCheck: ManakaiDOM|ForIF
4361    
4362     ElementTypeBinding:
4363     @Name: ClsISA
4364     @ElementType:
4365     dis:ISA
4366     @ShadowContent:
4367     @@ForCheck: ManakaiDOM|ForClass
4368    
4369     IF:
4370 wakaba 1.18 @For: !ManakaiDOM|all
4371 wakaba 1.17
4372 wakaba 1.11 @IFQName: HTMLUListElementExtended
4373     @ClsQName: ManakaiDOMHTMLUListElementExtended
4374     @DOMMain:implementFeature: HTMLExtendedFeature30
4375    
4376     @IFISA: HTMLListElementExtended
4377    
4378     @ClsISA: ManakaiDOMHTMLListElementExtended
4379     @ClsISA: ManakaiDOMHTMLUListElement
4380     ##HTMLUListElementExtended
4381    
4382     IF:
4383 wakaba 1.17 @For: !ManakaiDOM|all
4384    
4385 wakaba 1.11 @IFQName: HTMLOListElementExtended
4386     @ClsQName: ManakaiDOMHTMLOListElementExtended
4387     @DOMMain:implementFeature: HTMLExtendedFeature30
4388    
4389     @IFISA: HTMLListElementExtended
4390    
4391     @ClsISA: ManakaiDOMHTMLListElementExtended
4392     @ClsISA: ManakaiDOMHTMLOListElement
4393     ##HTMLOListElementExtended
4394    
4395     IF:
4396 wakaba 1.17 @For: !ManakaiDOM|all
4397    
4398 wakaba 1.11 @IFQName: HTMLDListElementExtended
4399     @ClsQName: ManakaiDOMHTMLDListElementExtended
4400     @DOMMain:implementFeature: HTMLExtendedFeature30
4401    
4402     @IFISA: HTMLListElementExtended
4403    
4404     @ClsISA: ManakaiDOMHTMLListElementExtended
4405     @ClsISA: ManakaiDOMHTMLDListElement
4406    
4407     @Method:
4408     @@Name: insertItem
4409     @@ManakaiDOM:isRedefining:1
4410     @@ForCheck: ManakaiDOM|ForClass
4411     @@enDesc:
4412     Inserts a new empty pair of <HE::dt> and
4413     <HE::dd> elements in the list. The new item is
4414     inserted immediately before the current <P::index>th
4415     <HE::dt> element in the list.
4416     @@Param:
4417     @@@Name:index
4418     @@@Type:DOMMain|long||ManakaiDOM|all
4419     @@@enDesc:
4420     The item number where to insert a new item.
4421     The index starts from <DOM::0>.
4422     @@@InCase:
4423     @@@@enLabel:
4424     <DOM::-1> or equal to the number of items
4425     @@@@enDesc:
4426     The new item is appended.
4427     @@Return:
4428     @@@Type: HTMLElement
4429     @@@actualType: ManakaiDOMHTMLElement
4430     @@@enDesc:
4431     The newly created <HE::dt> element. Note that
4432     the new <HE::dd> element can be obtained by
4433     <AG::DOMCore:Node.nextSibling> attribute of the returned
4434     node.
4435     @@@RaiseException:
4436     @@@@@: MDOMX|NOMOD_THIS
4437     @@@@enDesc:
4438     This node is read-only.
4439     @@@RaiseException:
4440     @@@@@: DOMCore|DOMException.INDEX_SIZE_ERR
4441     @@@@enDesc:
4442     If the specified <P::index> is greater than
4443     the number of rows or if the <P::index> is a negative
4444     number other than <DOM::-1>.
4445     @@@PerlDef:
4446     @@@@ImplNote:
4447     @@@@@lang:en
4448     @@@@@@:
4449     For non-<HE::dl> elements.
4450     @@@@@:
4451     if ($self->{<Q::TreeCore:node>}->{<Q::DOMCore:read-only>}) {
4452     __EXCEPTION{
4453     MDOMX:NOMOD_THIS::
4454     }__;
4455     }
4456    
4457     my $before;
4458     my $after;
4459     __CODE{splitChildrenByElementIndex::
4460     $children => {[@{$self->{<Q::TreeCore:node>}
4461     ->{<Q::infoset:children>}}]},
4462     $before => $before, $after => $after,
4463     $elementType => 'dt', $index => $index,
4464     }__;
4465    
4466     my $dd;
4467     __DEEP{
4468     my $od = $self-><AG::DOMCore:Node.ownerDocument>;
4469     $r = $od-><M::DOMCore:Document.createElementNS>
4470     (<Q::xhtml1:>, 'dt');
4471     $dd = $od-><M::DOMCore:Document.createElementNS>
4472     (<Q::xhtml1:>, 'dd');
4473     }__;
4474 wakaba 1.14 $self->{<Q::TreeCore:node>}-><M::NodeStem.importTree>
4475 wakaba 1.11 ($r->{<Q::TreeCore:node>});
4476     $r->{<Q::TreeCore:node>}->{<Q::infoset:parent>}
4477     = $self->{<Q::TreeCore:node>};
4478 wakaba 1.14 $self->{<Q::TreeCore:node>}-><M::NodeStem.importTree>
4479 wakaba 1.11 ($dd->{<Q::TreeCore:node>});
4480     $dd->{<Q::TreeCore:node>}->{<Q::infoset:parent>}
4481     = $self->{<Q::TreeCore:node>};
4482     $self->{<Q::TreeCore:node>}->{<Q::infoset:children>}
4483     = [@$before, $r->{<Q::TreeCore:node>},
4484     $dd->{<Q::TreeCore:node>}, @$after];
4485    
4486     ##HTMLDListElementExtended
4487    
4488     ResourceDef:
4489     @QName: splitChildrenByElementIndex
4490     @rdf:type: dis2pm|BlockCode
4491     @enDesc:
4492     Splits a child node list into two groups: nodes before
4493     <P::index>th <P::elementType> element node (not inclusive) and
4494     any remind nodes.
4495 wakaba 1.17 @PerlCDef:
4496 wakaba 1.11 my $__i = 0;
4497 wakaba 1.12 $before = [];
4498 wakaba 1.11 $after = $children;
4499     FIND: {
4500 wakaba 1.12 if ($index == -1) {
4501     $before = $after;
4502     $after = [];
4503     last FIND;
4504     }
4505 wakaba 1.11 while (my $__co = shift @$after) {
4506     if ($__co->{<Q::DOMCore:nodeType>} eq <Q::infoset:Element> and
4507     <Code::isHTMLElemento:: $elementNodeo = $__co,
4508     $elementType = $elementType>) {
4509     if ($index == $__i++) { ## Position found
4510     unshift @$after, $__co;
4511     last FIND;
4512     } else {
4513     push @$before, $__co;
4514     }
4515     } else {
4516     push @$before, $__co;
4517     }
4518     }
4519     last FIND if $index == $__i; ## Equal to number
4520    
4521     __EXCEPTION{DOMCore:ManakaiDOMException.INDEX_SIZE_ERR::
4522     MDOMX:param-name => 'index',
4523     }__
4524     } # FIND
4525 wakaba 1.17 @For: ManakaiDOM|ManakaiDOM
4526 wakaba 1.1
4527 wakaba 1.11 ElementTypeBinding:
4528     @Name: enLabel
4529     @ElementType:
4530     dis:Label
4531     @ShadowContent:
4532     @@lang:en
4533 wakaba 1.2
4534 wakaba 1.17 IfCls1ETDef:
4535 wakaba 1.4 @ETQName:
4536     xhtml1:ul
4537     @IFQName: HTMLUListElement
4538     @ClsQName: ManakaiDOMHTMLUListElement
4539     @ISAHTMLElement:
4540    
4541     @ATTR:
4542 wakaba 1.2 @@Name: compact
4543 wakaba 1.4 @@Deprecated:
4544 wakaba 1.11 @@ReflectBoolean:
4545 wakaba 1.1 @@Get:
4546 wakaba 1.2 @@@InCase:
4547     @@@@Value: true
4548     @@@InCase:
4549     @@@@Value: false
4550     @@Set:
4551     @@@InCase:
4552     @@@@Value: true
4553     @@@InCase:
4554     @@@@Value: false
4555 wakaba 1.4 @ATTR:
4556 wakaba 1.2 @@Name: type
4557 wakaba 1.4 @@Deprecated:
4558 wakaba 1.11 @@ReflectCDATA:
4559 wakaba 1.1 @@Get:
4560     @@Set:
4561 wakaba 1.2
4562 wakaba 1.17 IfCls1ETDef:
4563 wakaba 1.4 @ETQName:
4564     xhtml1:ol
4565     @IFQName: HTMLOListElement
4566     @ClsQName:ManakaiDOMHTMLOListElement
4567     @ISAHTMLElement:
4568    
4569     @ATTR:
4570 wakaba 1.2 @@Name: compact
4571 wakaba 1.4 @@Deprecated:
4572 wakaba 1.11 @@ReflectBoolean:
4573 wakaba 1.1 @@Get:
4574 wakaba 1.2 @@@InCase:
4575     @@@@Value: true
4576     @@@InCase:
4577     @@@@Value: false
4578 wakaba 1.1 @@Set:
4579 wakaba 1.2 @@@InCase:
4580     @@@@Value: true
4581     @@@InCase:
4582     @@@@Value: false
4583 wakaba 1.4 @ATTR:
4584 wakaba 1.2 @@Name: start
4585 wakaba 1.4 @@Deprecated:
4586 wakaba 1.11 @@ReflectNumeric:
4587 wakaba 1.1 @@Get:
4588     @@Set:
4589     @Attr:
4590 wakaba 1.2 @@Name: type
4591 wakaba 1.4 @@Deprecated:
4592 wakaba 1.11 @@ReflectCDATA:
4593 wakaba 1.1 @@Get:
4594     @@Set:
4595 wakaba 1.2
4596 wakaba 1.17 IfCls1ETDef:
4597 wakaba 1.4 @ETQName:
4598     xhtml1:dl
4599     @IFQName: HTMLDListElement
4600     @ClsQName: ManakaiDOMHTMLDListElement
4601     @ISAHTMLElement:
4602    
4603     @ATTR:
4604 wakaba 1.2 @@Name: compact
4605 wakaba 1.4 @@Deprecated:
4606 wakaba 1.11 @@ReflectBoolean:
4607 wakaba 1.1 @@Get:
4608 wakaba 1.2 @@@InCase:
4609     @@@@Value: true
4610     @@@InCase:
4611     @@@@Value: false
4612 wakaba 1.1 @@Set:
4613 wakaba 1.2 @@@InCase:
4614     @@@@Value: true
4615     @@@InCase:
4616     @@@@Value: false
4617    
4618 wakaba 1.17 IfCls1ETDef:
4619 wakaba 1.4 @ETQName:
4620     xhtml1:dir
4621     @IFQName: HTMLDirectoryElement
4622     @ClsQName: ManakaiDOMHTMLDirectoryElement
4623     @ISAHTMLElement:
4624     @Deprecated:
4625    
4626 wakaba 1.1 @Attr:
4627 wakaba 1.2 @@Name: compact
4628 wakaba 1.4 @@Deprecated:
4629 wakaba 1.11 @@ReflectBoolean:
4630 wakaba 1.1 @@Get:
4631 wakaba 1.2 @@@InCase:
4632     @@@@Value: true
4633     @@@InCase:
4634     @@@@Value: false
4635 wakaba 1.1 @@Set:
4636 wakaba 1.2 @@@InCase:
4637     @@@@Value: true
4638     @@@InCase:
4639     @@@@Value: false
4640 wakaba 1.1
4641 wakaba 1.17 IfCls1ETDef:
4642 wakaba 1.4 @ETQName:
4643     xhtml1:menu
4644     @IFQName: HTMLMenuElement
4645     @ClsQName: ManakaiDOMHTMLMenuElement
4646     @ISAHTMLElement:
4647     @Deprecated:
4648    
4649     @ATTR:
4650 wakaba 1.2 @@Name: compact
4651 wakaba 1.4 @@Deprecated:
4652 wakaba 1.11 @@ReflectBoolean:
4653 wakaba 1.1 @@Get:
4654     @@@InCase:
4655 wakaba 1.2 @@@@Value: true
4656 wakaba 1.1 @@@InCase:
4657 wakaba 1.2 @@@@Value: false
4658     @@Set:
4659 wakaba 1.1 @@@InCase:
4660     @@@@Value: true
4661     @@@InCase:
4662     @@@@Value: false
4663 wakaba 1.2
4664 wakaba 1.17 IfCls1ETDef:
4665 wakaba 1.4 @ETQName:
4666     xhtml1:li
4667     @IFQName: HTMLLIElement
4668     @ClsQName: ManakaiDOMHTMLLIElement
4669     @ISAHTMLElement:
4670    
4671     @ATTR:
4672 wakaba 1.1 @@Name: type
4673 wakaba 1.4 @@Deprecated:
4674 wakaba 1.11 @@ReflectCDATA:
4675 wakaba 1.1 @@Get:
4676     @@Set:
4677     @Attr:
4678     @@Name: value
4679 wakaba 1.4 @@Deprecated:
4680 wakaba 1.11 @@ReflectNumeric:
4681 wakaba 1.1 @@Get:
4682     @@Set:
4683 wakaba 1.2
4684 wakaba 1.17 IfCls1ETDef:
4685 wakaba 1.4 @ETQName:
4686     xhtml1:div
4687     @IFQName: HTMLDivElement
4688     @ClsQName: ManakaiDOMHTMLDivElement
4689     @ISAHTMLElement:
4690    
4691     @ATTR:
4692 wakaba 1.1 @@Name: align
4693 wakaba 1.4 @@Deprecated:
4694 wakaba 1.11 @@ReflectEnum:
4695 wakaba 1.1 @@Get:
4696     @@Set:
4697 wakaba 1.2
4698 wakaba 1.17 IfCls1ETDef:
4699 wakaba 1.4 @ETQName:
4700     xhtml1:p
4701     @IFQName: HTMLParagraphElement
4702     @ClsQName: ManakaiDOMHTMLParagraphElement
4703     @ISAHTMLElement:
4704    
4705     @ATTR:
4706 wakaba 1.1 @@Name: align
4707 wakaba 1.4 @@Deprecated:
4708 wakaba 1.11 @@ReflectEnum:
4709 wakaba 1.1 @@Get:
4710     @@Set:
4711 wakaba 1.2
4712 wakaba 1.4 ForDef:
4713 wakaba 1.17 @QName: DOMHTML|ForAnET
4714     ForDef:
4715 wakaba 1.4 @QName:
4716     DOMHTML:ForH1
4717 wakaba 1.17 @ISA: DOMHTML|ForAnET
4718 wakaba 1.4 ForDef:
4719     @QName:
4720     DOMHTML:ForH2
4721 wakaba 1.17 @ISA: DOMHTML|ForAnET
4722 wakaba 1.4 ForDef:
4723     @QName:
4724     DOMHTML:ForH3
4725 wakaba 1.17 @ISA: DOMHTML|ForAnET
4726 wakaba 1.4 ForDef:
4727     @QName:
4728     DOMHTML:ForH4
4729 wakaba 1.17 @ISA: DOMHTML|ForAnET
4730 wakaba 1.4 ForDef:
4731     @QName:
4732     DOMHTML:ForH5
4733 wakaba 1.17 @ISA: DOMHTML|ForAnET
4734 wakaba 1.4 ForDef:
4735     @QName:
4736     DOMHTML:ForH6
4737 wakaba 1.17 @ISA: DOMHTML|ForAnET
4738 wakaba 1.4
4739 wakaba 1.1 IF:
4740 wakaba 1.17 @For: !ManakaiDOM|all
4741    
4742 wakaba 1.11 @IFQName: HTMLParagraphElementExtended
4743     @ClsQName: ManakaiDOMHTMLParagraphElementExtended
4744     @DOMMain:implementFeature: HTMLExtendedFeature30
4745    
4746     @IFISA: HTMLBlockContainerExtended
4747     @IFISA: HTMLParagraphElement
4748    
4749     @ClsISA: ManakaiDOMHTMLBlockContainerExtended
4750     @ClsISA: ManakaiDOMHTMLParagraphElement
4751     ##HTMLParagraphElementExtended
4752    
4753     IF:
4754 wakaba 1.17 @For: !ManakaiDOM|all
4755    
4756 wakaba 1.11 @IFQName: HTMLHeadingElementExtended
4757     @ClsQName: ManakaiDOMHTMLHeadingElementExtended
4758     @DOMMain:implementFeature: HTMLExtendedFeature30
4759    
4760 wakaba 1.14 @IFISA: HTMLStrictlyInlineContainerExtended
4761 wakaba 1.11 @IFISA: HTMLHeadingElement
4762    
4763 wakaba 1.14 @ClsISA: ManakaiDOMHTMLStrictlyInlineContainerExtended
4764 wakaba 1.11 @ClsISA: ManakaiDOMHTMLHeadingElement
4765     ##HTMLHeadingElementExtended
4766    
4767 wakaba 1.18 IfCls1ETsDef:
4768 wakaba 1.4 @rdf:type:
4769     @@@:
4770     dis:MultipleResource
4771     @@For: ForHTML
4772     @@ForCheck:
4773     !ManakaiDOM:ForIF !ManakaiDOM:ForClass
4774     !ForH1 !ForH2 !ForH3 !ForH4 !ForH5 !ForH6
4775     @resourceFor:
4776     @@@: ForH1
4777     @@For: ForHTML
4778     @resourceFor:
4779     @@@: ForH2
4780     @@For: ForHTML
4781     @resourceFor:
4782     @@@: ForH3
4783     @@For: ForHTML
4784     @resourceFor:
4785     @@@: ForH4
4786     @@For: ForHTML
4787     @resourceFor:
4788     @@@: ForH5
4789     @@For: ForHTML
4790     @resourceFor:
4791     @@@: ForH6
4792     @@For: ForHTML
4793     @rdf:type:
4794 wakaba 1.17 @@@: s|ElementType
4795     @@ForCheck: ForAnET
4796 wakaba 1.4
4797 wakaba 1.8 @ETQName:
4798 wakaba 1.4 @@@:
4799 wakaba 1.2 xhtml1:h1
4800 wakaba 1.4 @@ForCheck: ForH1
4801 wakaba 1.8 @ETQName:
4802 wakaba 1.4 @@@:
4803 wakaba 1.2 xhtml1:h2
4804 wakaba 1.4 @@ForCheck: ForH2
4805 wakaba 1.8 @ETQName:
4806 wakaba 1.4 @@@:
4807 wakaba 1.2 xhtml1:h3
4808 wakaba 1.4 @@ForCheck: ForH3
4809 wakaba 1.8 @ETQName:
4810 wakaba 1.4 @@@:
4811 wakaba 1.2 xhtml1:h4
4812 wakaba 1.4 @@ForCheck: ForH4
4813 wakaba 1.8 @ETQName:
4814 wakaba 1.4 @@@:
4815 wakaba 1.2 xhtml1:h5
4816 wakaba 1.4 @@ForCheck: ForH5
4817 wakaba 1.8 @ETQName:
4818 wakaba 1.4 @@@:
4819 wakaba 1.2 xhtml1:h6
4820 wakaba 1.4 @@ForCheck: ForH6
4821 wakaba 1.8
4822     @s:elementType:
4823     @@@: ||ForHTML40SE||ForH1
4824     @@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
4825 wakaba 1.19 @@ContentType: DISCore|TFPQNames
4826 wakaba 1.8 @@DISCore:stopISARecursive:1
4827     @s:elementType:
4828     @@@: ||ForHTML401||ForH1
4829     @@ForCheck: ManakaiDOM|DOM2
4830     @@ContentType: DISCore|TFPQNames
4831     @@DISCore:stopISARecursive:1
4832     @s:elementType:
4833     @@@: ||ForXHTML10SE||ForH1
4834     @@ForCheck: ManakaiDOM|DOM2
4835     @@ContentType: DISCore|TFPQNames
4836     @@DISCore:stopISARecursive:1
4837     @s:elementType:
4838     @@@: ||ForHTML40SE||ForH2
4839     @@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
4840     @@ContentType: DISCore|TFPQNames
4841     @s:elementType:
4842     @@@: ||ForHTML401||ForH2
4843     @@ForCheck: ManakaiDOM|DOM2
4844     @@ContentType: DISCore|TFPQNames
4845     @s:elementType:
4846     @@@: ||ForXHTML10SE||ForH2
4847     @@ForCheck: ManakaiDOM|DOM2
4848     @@ContentType: DISCore|TFPQNames
4849     @s:elementType:
4850     @@@: ||ForHTML40SE||ForH3
4851     @@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
4852     @@ContentType: DISCore|TFPQNames
4853     @s:elementType:
4854     @@@: ||ForHTML401||ForH3
4855     @@ForCheck: ManakaiDOM|DOM2
4856     @@ContentType: DISCore|TFPQNames
4857     @s:elementType:
4858     @@@: ||ForXHTML10SE||ForH3
4859     @@ForCheck: ManakaiDOM|DOM2
4860     @@ContentType: DISCore|TFPQNames
4861     @s:elementType:
4862     @@@: ||ForHTML40SE||ForH4
4863     @@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
4864     @@ContentType: DISCore|TFPQNames
4865     @s:elementType:
4866     @@@: ||ForHTML401||ForH4
4867     @@ForCheck: ManakaiDOM|DOM2
4868     @@ContentType: DISCore|TFPQNames
4869     @s:elementType:
4870     @@@: ||ForXHTML10SE||ForH4
4871     @@ForCheck: ManakaiDOM|DOM2
4872     @@ContentType: DISCore|TFPQNames
4873     @s:elementType:
4874     @@@: ||ForHTML40SE||ForH5
4875     @@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
4876     @@ContentType: DISCore|TFPQNames
4877     @s:elementType:
4878     @@@: ||ForHTML401||ForH5
4879     @@ForCheck: ManakaiDOM|DOM2
4880     @@ContentType: DISCore|TFPQNames
4881     @s:elementType:
4882     @@@: ||ForXHTML10SE||ForH5
4883     @@ForCheck: ManakaiDOM|DOM2
4884     @@ContentType: DISCore|TFPQNames
4885     @s:elementType:
4886     @@@: ||ForHTML40SE||ForH6
4887     @@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
4888     @@ContentType: DISCore|TFPQNames
4889     @s:elementType:
4890     @@@: ||ForHTML401||ForH6
4891     @@ForCheck: ManakaiDOM|DOM2
4892     @@ContentType: DISCore|TFPQNames
4893     @s:elementType:
4894     @@@: ||ForXHTML10SE||ForH6
4895     @@ForCheck: ManakaiDOM|DOM2
4896     @@ContentType: DISCore|TFPQNames
4897 wakaba 1.4
4898     @IFQName: HTMLHeadingElement
4899     @ClsQName: ManakaiDOMHTMLHeadingElement
4900     @ISAHTMLElement:
4901    
4902 wakaba 1.11 @Attrs:
4903 wakaba 1.1 @@Name: align
4904 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForH1
4905     @@docAttrP2S: ||ForHTML401||ForH1
4906     @@docAttrP2X: ||ForXHTML10SE||ForH1
4907     @@docAttrP1S: ||ForHTML40SE||ForH2
4908     @@docAttrP2S: ||ForHTML401||ForH2
4909     @@docAttrP2X: ||ForXHTML10SE||ForH2
4910     @@docAttrP1S: ||ForHTML40SE||ForH3
4911     @@docAttrP2S: ||ForHTML401||ForH3
4912     @@docAttrP2X: ||ForXHTML10SE||ForH3
4913     @@docAttrP1S: ||ForHTML40SE||ForH4
4914     @@docAttrP2S: ||ForHTML401||ForH4
4915     @@docAttrP2X: ||ForXHTML10SE||ForH4
4916     @@docAttrP1S: ||ForHTML40SE||ForH5
4917     @@docAttrP2S: ||ForHTML401||ForH5
4918     @@docAttrP2X: ||ForXHTML10SE||ForH5
4919     @@docAttrP1S: ||ForHTML40SE||ForH6
4920     @@docAttrP2S: ||ForHTML401||ForH6
4921     @@docAttrP2X: ||ForXHTML10SE||ForH6
4922 wakaba 1.4 @@Deprecated:
4923 wakaba 1.11 @@ReflectEnum:
4924 wakaba 1.1 @@Get:
4925     @@Set:
4926 wakaba 1.11
4927     ElementTypeBinding:
4928     @Name: docAttrP1S
4929     @ElementType:
4930     dis:DocAttr
4931     @ShadowContent:
4932     @@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
4933     @@ContentType: DISCore|TFPQNames
4934     ElementTypeBinding:
4935 wakaba 1.18 @Name: docAttrP2S
4936 wakaba 1.11 @ElementType:
4937     dis:DocAttr
4938     @ShadowContent:
4939     @@ForCheck: ManakaiDOM|DOM2
4940     @@ContentType: DISCore|TFPQNames
4941     ElementTypeBinding:
4942     @Name: docAttrP2X
4943     @ElementType:
4944     dis:DocAttr
4945     @ShadowContent:
4946     @@ForCheck: ManakaiDOM|DOM2
4947     @@ContentType: DISCore|TFPQNames
4948 wakaba 1.2
4949 wakaba 1.17 IFDef:
4950     @IFQName: HTMLBlockquoteElement
4951     @IFISA: HTMLElement
4952 wakaba 1.4
4953 wakaba 1.3 @Description:
4954     @@lang:en
4955     @@@:
4956 wakaba 1.15 The <IF::HTMLBlockquoteElement> interface was contained
4957 wakaba 1.3 in the DOM Level 1 First Edition by error. The
4958 wakaba 1.15 <IF::HTMLQuoteElement> interface should must used instead.
4959     <SRC::DOM Level 1 Errata>
4960 wakaba 1.3 @Attr:
4961     @@Name:cite
4962     @@Get:
4963     @@@Type:
4964     DOMMain:DOMString
4965     @@Set:
4966     @@@Type:
4967     DOMMain:DOMString
4968 wakaba 1.4 @ForCheck:
4969     =ManakaiDOM:DOM1
4970    
4971     ForDef:
4972     @QName:
4973     DOMHTML:ForBlockquote
4974 wakaba 1.17 @ISA: DOMHTML|ForAnET
4975 wakaba 1.4 ForDef:
4976     @QName:
4977     DOMHTML:ForQ
4978 wakaba 1.17 @ISA: DOMHTML|ForAnET
4979 wakaba 1.3
4980 wakaba 1.18 IfCls1ETsDef:
4981 wakaba 1.4 @rdf:type:
4982     @@@:
4983     dis:MultipleResource
4984     @@ForCheck: ForHTML
4985     @@ForCheck:
4986     !ManakaiDOM:ForIF !ManakaiDOM:ForClass
4987     !ForBlockquote !ForQ
4988     @resourceFor:
4989     @@@:ForBlockquote
4990     @@ForCheck:ForHTML
4991     @resourceFor:
4992     @@@:ForQ
4993     @@ForCheck:ForHTML
4994     @rdf:type:
4995 wakaba 1.17 @@@: s|ElementType
4996     @@ForCheck: ForAnET
4997 wakaba 1.4
4998     @ETQName:
4999     @@@:
5000 wakaba 1.2 xhtml1:blockquote
5001 wakaba 1.4 @@ForCheck:ForBlockquote
5002     @ETQName:
5003     @@@:
5004 wakaba 1.2 xhtml1:q
5005 wakaba 1.4 @@ForCheck:ForQ
5006    
5007     @IFQName: HTMLQuoteElement
5008     @ClsQName: ManakaiDOMHTMLQuoteElement
5009     @ISAHTMLElement:
5010    
5011 wakaba 1.8 @s:elementType:
5012     @@@: ||ForHTML40SE||ForBlockquote
5013     @@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
5014     @@ContentType: DISCore|TFPQNames
5015     @@DISCore:stopISARecursive:1
5016     @s:elementType:
5017     @@@: ||ForHTML401||ForBlockquote
5018     @@ForCheck: ManakaiDOM|DOM2
5019     @@ContentType: DISCore|TFPQNames
5020     @@DISCore:stopISARecursive:1
5021     @s:elementType:
5022     @@@: ||ForXHTML10SE||ForBlockquote
5023     @@ForCheck: ManakaiDOM|DOM2
5024     @@ContentType: DISCore|TFPQNames
5025     @@DISCore:stopISARecursive:1
5026    
5027     @s:elementType:
5028     @@@: ||ForHTML40SE||ForQ
5029     @@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
5030     @@ContentType: DISCore|TFPQNames
5031     @s:elementType:
5032     @@@: ||ForHTML401||ForQ
5033     @@ForCheck: ManakaiDOM|DOM2
5034     @@ContentType: DISCore|TFPQNames
5035     @s:elementType:
5036     @@@: ||ForXHTML10SE||ForQ
5037     @@ForCheck: ManakaiDOM|DOM2
5038     @@ContentType: DISCore|TFPQNames
5039    
5040 wakaba 1.11 @Attrs:
5041 wakaba 1.1 @@Name: cite
5042 wakaba 1.11 @@ReflectURI:
5043     @@docAttrP1S: ||ForHTML40SE||ForQ
5044     @@docAttrP2S: ||ForHTML401||ForQ
5045     @@docAttrP2X: ||ForXHTML10SE||ForQ
5046     @@docAttrP1S: ||ForHTML40SE||ForBlockquote
5047     @@docAttrP2S: ||ForHTML401||ForBlockquote
5048     @@docAttrP2X: ||ForXHTML10SE||ForBlockquote
5049 wakaba 1.1 @@Get:
5050     @@Set:
5051 wakaba 1.2
5052 wakaba 1.8 ElementTypeBinding:
5053     @Name: elementType
5054     @ElementType:
5055     s:elementType
5056     @ShadowContent:
5057     @@DISCore:stopISARecursive:1
5058    
5059 wakaba 1.17 IfCls1ETDef:
5060 wakaba 1.4 @ETQName:
5061     xhtml1:pre
5062     @IFQName: HTMLPreElement
5063     @ClsQName: ManakaiDOMHTMLPreElement
5064     @ISAHTMLElement:
5065    
5066     @ATTR:
5067 wakaba 1.1 @@Name: width
5068 wakaba 1.4 @@Deprecated:1
5069 wakaba 1.11 @@ReflectNumeric:
5070 wakaba 1.1 @@Get:
5071     @@Set:
5072 wakaba 1.2
5073 wakaba 1.17 IfCls1ETDef:
5074 wakaba 1.4 @ETQName:
5075     xhtml1:br
5076     @IFQName: HTMLBRElement
5077     @ClsQName:ManakaiDOMHTMLBRElement
5078     @ISAHTMLElement:
5079    
5080     @ATTR:
5081 wakaba 1.1 @@Name: clear
5082 wakaba 1.4 @@Deprecated:1
5083 wakaba 1.11 @@ReflectCDATA:
5084 wakaba 1.1 @@Get:
5085     @@Set:
5086 wakaba 1.2
5087 wakaba 1.17 IfCls12ETDef:
5088 wakaba 1.4 @ETQName:
5089     xhtml1:basefont
5090     @IFQName: HTMLBaseFontElement
5091     @ClsQName:ManakaiDOMHTMLBaseFontElement
5092     @ISAHTMLElement:
5093     @Deprecated:
5094    
5095     @ATTR:
5096 wakaba 1.1 @@Name: color
5097 wakaba 1.4 @@Deprecated:
5098 wakaba 1.11 @@ReflectCDATA:
5099 wakaba 1.1 @@Get:
5100     @@Set:
5101 wakaba 1.7 @ATTR:
5102 wakaba 1.1 @@Name: face
5103 wakaba 1.4 @@Deprecated:
5104 wakaba 1.11 @@ReflectCDATA:
5105 wakaba 1.1 @@Get:
5106     @@Set:
5107 wakaba 1.4 @ATTR:
5108 wakaba 1.1 @@Name: size
5109 wakaba 1.2 @@Description:
5110     @@@lang:en
5111     @@@@:Computed font size.
5112 wakaba 1.4 @@@For:
5113     ManakaiDOM:DOM2
5114     @@Deprecated:
5115 wakaba 1.11 @@Type:
5116     @@@@:
5117     DOMMain:long
5118     @@@For:
5119     ManakaiDOM:DOM2
5120     @@actualType:
5121     @@@@: Numeric
5122     @@@For: ManakaiDOM|DOM2
5123     @@Type:
5124     @@@@:
5125     DOMMain:DOMString
5126     @@@For:
5127     ManakaiDOM:DOM1 !ManakaiDOM:DOM2
5128     @@actualType:
5129     @@@@: CDATADOMString
5130     @@@For: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
5131 wakaba 1.1 @@Get:
5132 wakaba 1.11 @@@ImplNote:
5133     @@@@lang:en
5134     @@@@@:
5135     TODO: Computed value should be returned.
5136 wakaba 1.15 In DOM Level 1, it was <EM::not> the computed value
5137     and the type was <TYPE::DOMString>.
5138 wakaba 1.1 @@Set:
5139     @@Level[list]:
5140 wakaba 1.2 1
5141 wakaba 1.1 2
5142     @@SpecLevel[list]:
5143 wakaba 1.2 1
5144 wakaba 1.1 2
5145 wakaba 1.2
5146 wakaba 1.17 IfCls1ETDef:
5147 wakaba 1.4 @ETQName:
5148     xhtml1:font
5149     @IFQName: HTMLFontElement
5150     @ClsQName:ManakaiDOMHTMLFontElement
5151     @ISAHTMLElement:
5152     @Deprecated:
5153    
5154     @ATTR:
5155 wakaba 1.1 @@Name: color
5156 wakaba 1.4 @@Deprecated:
5157 wakaba 1.11 @@ReflectCDATA:
5158 wakaba 1.1 @@Get:
5159     @@Set:
5160 wakaba 1.7 @ATTR:
5161 wakaba 1.1 @@Name: face
5162 wakaba 1.4 @@Deprecated:
5163 wakaba 1.11 @@ReflectCDATA:
5164 wakaba 1.1 @@Get:
5165     @@Set:
5166 wakaba 1.7 @ATTR:
5167 wakaba 1.1 @@Name: size
5168 wakaba 1.4 @@Deprecated:
5169 wakaba 1.2 @@ImplNote:
5170     @@@lang:en
5171     @@@@:
5172 wakaba 1.15 This is <EM::not> the computed size.
5173 wakaba 1.11 @@ReflectCDATA:
5174 wakaba 1.1 @@Get:
5175     @@Set:
5176 wakaba 1.2
5177 wakaba 1.17 IfCls1ETDef:
5178 wakaba 1.4 @ETQName:
5179     xhtml1:hr
5180     @IFQName: HTMLHRElement
5181     @ClsQName:ManakaiDOMHTMLHRElement
5182     @ISAHTMLElement:
5183    
5184     @ATTR:
5185 wakaba 1.1 @@Name: align
5186 wakaba 1.4 @@Deprecated:
5187 wakaba 1.11 @@ReflectEnum:
5188 wakaba 1.1 @@Get:
5189     @@Set:
5190 wakaba 1.4 @ATTR:
5191     @@AName:noshade
5192     @@DOMAName: noShade
5193 wakaba 1.17 @@plAName: noshade
5194 wakaba 1.4 @@Deprecated:
5195 wakaba 1.11 @@ReflectBoolean:
5196 wakaba 1.1 @@Get:
5197     @@@InCase:
5198     @@@@Value: true
5199     @@@InCase:
5200     @@@@Value: false
5201     @@Set:
5202     @@@InCase:
5203     @@@@Value: true
5204     @@@InCase:
5205     @@@@Value: false
5206 wakaba 1.4 @ATTR:
5207 wakaba 1.1 @@Name: size
5208 wakaba 1.4 @@Deprecated:
5209 wakaba 1.11 @@ReflectCDATA:
5210 wakaba 1.1 @@Get:
5211     @@Set:
5212 wakaba 1.4 @ATTR:
5213 wakaba 1.1 @@Name: width
5214 wakaba 1.4 @@Deprecated:
5215 wakaba 1.11 @@ReflectCDATA:
5216 wakaba 1.1 @@Get:
5217     @@Set:
5218 wakaba 1.2
5219 wakaba 1.4 ForDef:
5220     @QName:
5221     DOMHTML:ForIns
5222 wakaba 1.17 @ISA: DOMHTML|ForAnET
5223 wakaba 1.4 ForDef:
5224     @QName:
5225     DOMHTML:ForDel
5226 wakaba 1.17 @ISA: DOMHTML|ForAnET
5227 wakaba 1.4
5228 wakaba 1.18 IfCls1ETsDef:
5229 wakaba 1.4 @rdf:type:
5230     @@@:
5231     dis:MultipleResource
5232     @@ForCheck:
5233     !ManakaiDOM:ForIF !ManakaiDOM:ForClass
5234     !ForIns !ForDel
5235     @@For: ForHTML
5236     @resourceFor:
5237     @@@: ForIns
5238     @@For:ForHTML
5239     @resourceFor:
5240     @@@: ForDel
5241     @@For:ForHTML
5242     @rdf:type:
5243     @@@:
5244     s:ElementType
5245 wakaba 1.17 @@ForCheck: ForAnET
5246 wakaba 1.4
5247     @ETQName:
5248     @@@:
5249 wakaba 1.2 xhtml1:ins
5250 wakaba 1.4 @@ForCheck:ForIns
5251     @ETQName:
5252     @@@:
5253 wakaba 1.2 xhtml1:del
5254 wakaba 1.4 @@ForCheck:ForDel
5255    
5256 wakaba 1.8 @elementType:
5257     @@@: ||ForHTML40SE||ForIns
5258     @@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
5259     @@ContentType: DISCore|TFPQNames
5260     @elementType:
5261     @@@: ||ForHTML401||ForIns
5262     @@ForCheck: ManakaiDOM|DOM2
5263     @@ContentType: DISCore|TFPQNames
5264     @elementType:
5265     @@@: ||ForXHTML10SE||ForIns
5266     @@ForCheck: ManakaiDOM|DOM2
5267     @@ContentType: DISCore|TFPQNames
5268    
5269     @elementType:
5270     @@@: ||ForHTML40SE||ForDel
5271     @@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
5272     @@ContentType: DISCore|TFPQNames
5273     @elementType:
5274     @@@: ||ForHTML401||ForDel
5275     @@ForCheck: ManakaiDOM|DOM2
5276     @@ContentType: DISCore|TFPQNames
5277     @elementType:
5278     @@@: ||ForXHTML10SE||ForDel
5279     @@ForCheck: ManakaiDOM|DOM2
5280     @@ContentType: DISCore|TFPQNames
5281    
5282 wakaba 1.4 @IFQName: HTMLModElement
5283     @ClsQName:ManakaiDOMHTMLModElement
5284     @ISAHTMLElement:
5285    
5286 wakaba 1.11 @Attrs:
5287 wakaba 1.1 @@Name: cite
5288 wakaba 1.11 @@ReflectURI:
5289 wakaba 1.1 @@Get:
5290     @@Set:
5291 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForIns
5292     @@docAttrP2S: ||ForHTML401||ForIns
5293     @@docAttrP2X: ||ForXHTML10SE||ForIns
5294     @@docAttrP1S: ||ForHTML40SE||ForDel
5295     @@docAttrP2S: ||ForHTML401||ForDel
5296     @@docAttrP2X: ||ForXHTML10SE||ForDel
5297     @Attrs:
5298 wakaba 1.4 @@AName: datetime
5299     @@DOMAName: dateTime
5300 wakaba 1.11 @@ReflectCDATA:
5301 wakaba 1.1 @@Get:
5302     @@Set:
5303 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForIns
5304     @@docAttrP2S: ||ForHTML401||ForIns
5305     @@docAttrP2X: ||ForXHTML10SE||ForIns
5306     @@docAttrP1S: ||ForHTML40SE||ForDel
5307     @@docAttrP2S: ||ForHTML401||ForDel
5308     @@docAttrP2X: ||ForXHTML10SE||ForDel
5309 wakaba 1.2
5310 wakaba 1.17 IfCls1ETDef:
5311 wakaba 1.4 @ETQName:
5312     xhtml1:a
5313     @IFQName: HTMLAnchorElement
5314     @ClsQName:ManakaiDOMHTMLAnchorElement
5315     @ISAHTMLElement:
5316    
5317     @ATTR:
5318     @@AName:accesskey
5319     @@DOMAName: accessKey
5320 wakaba 1.17 @@plAName: accesskey
5321 wakaba 1.11 @@ReflectCDATA:
5322 wakaba 1.1 @@Get:
5323     @@Set:
5324 wakaba 1.4 @ATTR:
5325 wakaba 1.1 @@Name: charset
5326 wakaba 1.11 @@ReflectCDATA:
5327 wakaba 1.1 @@Get:
5328     @@Set:
5329 wakaba 1.4 @ATTR:
5330 wakaba 1.1 @@Name: coords
5331 wakaba 1.11 @@ReflectCDATA:
5332 wakaba 1.1 @@Get:
5333     @@Set:
5334 wakaba 1.4 @ATTR:
5335 wakaba 1.1 @@Name: href
5336 wakaba 1.11 @@ReflectURI:
5337 wakaba 1.1 @@Get:
5338     @@Set:
5339 wakaba 1.4 @ATTR:
5340 wakaba 1.1 @@Name: hreflang
5341 wakaba 1.11 @@ReflectCDATA:
5342 wakaba 1.1 @@Get:
5343     @@Set:
5344 wakaba 1.4 @ATTR:
5345 wakaba 1.1 @@Name: name
5346 wakaba 1.11 @@ReflectCDATA:
5347 wakaba 1.1 @@Get:
5348     @@Set:
5349 wakaba 1.4 @ATTR:
5350 wakaba 1.1 @@Name: rel
5351 wakaba 1.11 @@ReflectCDATA:
5352 wakaba 1.1 @@Get:
5353     @@Set:
5354 wakaba 1.4 @ATTR:
5355 wakaba 1.1 @@Name: rev
5356 wakaba 1.11 @@ReflectCDATA:
5357 wakaba 1.1 @@Get:
5358     @@Set:
5359 wakaba 1.4 @ATTR:
5360 wakaba 1.1 @@Name: shape
5361 wakaba 1.11 @@ReflectCDATA:
5362 wakaba 1.1 @@Get:
5363     @@Set:
5364 wakaba 1.4 @ATTR:
5365     @@AName:tabindex
5366     @@DOMAName: tabIndex
5367 wakaba 1.17 @@plAName: tabindex
5368 wakaba 1.11 @@ReflectNumeric:
5369 wakaba 1.1 @@Get:
5370     @@Set:
5371 wakaba 1.4 @ATTR:
5372 wakaba 1.1 @@Name: target
5373 wakaba 1.11 @@ReflectCDATA:
5374 wakaba 1.1 @@Get:
5375     @@Set:
5376 wakaba 1.4 @ATTR:
5377 wakaba 1.1 @@Name: type
5378 wakaba 1.11 @@ReflectCDATA:
5379 wakaba 1.1 @@Get:
5380     @@Set:
5381     @Method:
5382     @@Name: blur
5383 wakaba 1.4 @@Description:
5384 wakaba 1.2 @@@lang:en
5385     @@@@:Remove the focus from this element.
5386     @@Return:
5387 wakaba 1.1 @Method:
5388     @@Name: focus
5389 wakaba 1.2 @@Description:
5390     @@@lang:en
5391     @@@@:Give the focus to this element.
5392     @@Return:
5393 wakaba 1.17 ##HTMLAnchorElement
5394 wakaba 1.2
5395 wakaba 1.11 IF:
5396 wakaba 1.17 @For: !ManakaiDOM|all
5397    
5398 wakaba 1.11 @IFQName: HTMLAnchorElementExtended
5399     @ClsQName: ManakaiDOMHTMLAnchorElementExtended
5400    
5401     @IFISA: HTMLAnchorElement
5402     @IFISA: HTMLStrictlyInlineContainerExtended
5403    
5404     @ClsISA: ManakaiDOMHTMLAnchorElement
5405     @ClsISA: ManakaiDOMHTMLStrictlyInlineContainerExtended
5406     ##HTMLAnchorElementExtended
5407    
5408 wakaba 1.17 IfCls12ETDef:
5409 wakaba 1.4 @ETQName:
5410     xhtml1:img
5411     @IFQName: HTMLImageElement
5412     @ClsQName:ManakaiDOMHTMLImageElement
5413     @ISAHTMLElement:
5414    
5415 wakaba 1.11 @ResourceDef:
5416     @@rdf:type:
5417 wakaba 1.17 @@@@: DISLang|Attribute
5418 wakaba 1.11 @@@ForCheck: ManakaiDOM|DOM
5419    
5420     @@For: ManakaiDOM|DOM1
5421    
5422     @@rdf:type:
5423     @@@@: s|Attribute
5424     @@@ForCheck: ForHTML
5425    
5426     @@For: ForHTML401
5427     @@For: ForXHTML10SE
5428     @@enImplNote: Does 10SE defines this attr?
5429    
5430 wakaba 1.1 @@Name: name
5431 wakaba 1.2 @@Description:
5432     @@@lang:en
5433     @@@@:
5434     The name of the element.
5435     \
5436     {NOTE:: This attribute is provided for backwards compatibility.
5437 wakaba 1.15 Whilst HTML 4.01 added the <HA::name> attribute
5438 wakaba 1.2 for compatibility, the DOM HTML Specifications
5439     does not address this fact - i.e. HTML's and DOM's
5440 wakaba 1.15 <CODE::name> attributes are not formally associated.
5441 wakaba 1.2 \
5442     }
5443     @@DocAttr:
5444 wakaba 1.4 @@@@:
5445     ::ForHTML401
5446     @@@For:
5447     ManakaiDOM:ManakaiDOMLatest
5448     @@DocAttr:
5449     @@@@:
5450     ::ForXHTML10SE
5451     @@@For:
5452     ManakaiDOM:ManakaiDOMLatest
5453 wakaba 1.11 @@ReflectCDATA:
5454 wakaba 1.1 @@Get:
5455     @@Set:
5456 wakaba 1.4 @ATTR:
5457 wakaba 1.1 @@Name: align
5458 wakaba 1.4 @@Deprecated:
5459 wakaba 1.11 @@ReflectEnum:
5460 wakaba 1.1 @@Get:
5461     @@Set:
5462 wakaba 1.4 @ATTR:
5463 wakaba 1.1 @@Name: alt
5464 wakaba 1.11 @@ReflectCDATA:
5465 wakaba 1.1 @@Get:
5466     @@Set:
5467 wakaba 1.4 @ATTR:
5468 wakaba 1.1 @@Name: border
5469 wakaba 1.4 @@Deprecated:
5470 wakaba 1.11 @@ReflectCDATA:
5471 wakaba 1.1 @@Get:
5472     @@Set:
5473 wakaba 1.2 @@ImplNote:
5474     @@@lang:en
5475     @@@@:
5476 wakaba 1.15 The type is <TYPE::DOMString> in both DOM Levels 1 and 2.
5477 wakaba 1.4 @ATTR:
5478 wakaba 1.1 @@Name: height
5479 wakaba 1.4 @@Deprecated:
5480 wakaba 1.11 @@ReflectStringLong:
5481 wakaba 1.1 @@Get:
5482     @@Set:
5483     @@Level[list]:
5484 wakaba 1.2 1
5485 wakaba 1.1 2
5486     @@SpecLevel[list]:
5487 wakaba 1.2 1
5488 wakaba 1.1 2
5489 wakaba 1.4 @ATTR:
5490 wakaba 1.1 @@Name: hspace
5491 wakaba 1.4 @@Deprecated:
5492 wakaba 1.11 @@ReflectStringLong:
5493 wakaba 1.1 @@Get:
5494 wakaba 1.4 @@Set:
5495 wakaba 1.1 @@Level[list]:
5496 wakaba 1.2 1
5497 wakaba 1.1 2
5498     @@SpecLevel[list]:
5499 wakaba 1.2 1
5500 wakaba 1.1 2
5501 wakaba 1.4 @ATTR:
5502     @@AName:ismap
5503     @@DOMAName: isMap
5504 wakaba 1.17 @@plAName: ismap
5505 wakaba 1.11 @@ReflectBoolean:
5506 wakaba 1.1 @@Get:
5507     @@@InCase:
5508     @@@@Value: true
5509     @@@InCase:
5510     @@@@Value: false
5511     @@Set:
5512     @@@InCase:
5513     @@@@Value: true
5514     @@@InCase:
5515     @@@@Value: false
5516 wakaba 1.4 @ATTR:
5517     @@AName:longdesc
5518     @@DOMAName: longDesc
5519 wakaba 1.17 @@plAName: longdesc
5520 wakaba 1.11 @@ReflectURI:
5521 wakaba 1.1 @@Get:
5522     @@Set:
5523 wakaba 1.4 @ATTR:
5524 wakaba 1.1 @@Name: src
5525 wakaba 1.11 @@ReflectURI:
5526 wakaba 1.1 @@Get:
5527     @@Set:
5528 wakaba 1.4 @ATTR:
5529     @@AName:usemap
5530     @@DOMAName: useMap
5531 wakaba 1.17 @@plAName: usemap
5532 wakaba 1.11 @@ReflectURI:
5533 wakaba 1.1 @@Get:
5534     @@Set:
5535 wakaba 1.2 @@ImplNote:
5536     @@@lang:en
5537     @@@@:
5538 wakaba 1.15 The HTML 4 and XHTML 1.0 <HA::usemap> attribute value is
5539     of <SGML::%URI;>, while the XHTML m12n <HA::usemap> value
5540     is <XML::IDREF>.
5541 wakaba 1.4 @ATTR:
5542 wakaba 1.1 @@Name: vspace
5543 wakaba 1.4 @@Deprecated:
5544 wakaba 1.11 @@ReflectStringLong:
5545 wakaba 1.1 @@Get:
5546     @@Set:
5547     @@Level[list]:
5548 wakaba 1.2 1
5549 wakaba 1.1 2
5550     @@SpecLevel[list]:
5551 wakaba 1.2 1
5552 wakaba 1.1 2
5553     @Attr:
5554     @@Name: width
5555 wakaba 1.4 @@Deprecated:
5556 wakaba 1.11 @@ReflectStringLong:
5557 wakaba 1.1 @@Get:
5558     @@Set:
5559     @@Level[list]:
5560 wakaba 1.2 1
5561 wakaba 1.1 2
5562     @@SpecLevel[list]:
5563 wakaba 1.2 1
5564 wakaba 1.1 2
5565 wakaba 1.17 ##HTMLImageElement
5566 wakaba 1.2
5567 wakaba 1.11 ElementTypeBinding:
5568     @Name: ReflectStringLong
5569     @ElementType:
5570     dis:Type
5571     @ShadowContent:
5572     @@@: DOMMain|long
5573     @@For: ManakaiDOM|DOM2
5574     @ShadowSibling:
5575     @@actualType:
5576     @@@@: Numeric
5577     @@@For: ManakaiDOM|DOM2
5578     @@Type:
5579     @@@@: DOMMain|DOMString
5580     @@@For: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
5581     @@actualType:
5582     @@@@: CDATADOMString
5583     @@@For: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
5584    
5585 wakaba 1.18 IfCls1ETDef:
5586 wakaba 1.4 @ETQName:
5587     xhtml1:object
5588     @IFQName: HTMLObjectElement
5589     @ClsQName:ManakaiDOMHTMLObjectElement
5590     @ISAHTMLElement:
5591    
5592 wakaba 1.2 @ImplNote:
5593     @@lang:en
5594     @@@:
5595     In some environments some attributes may be read-only
5596     once the underlying object is instantiated.
5597 wakaba 1.1 @Attr:
5598     @@Name: form
5599 wakaba 1.2 @@Description:
5600     @@@lang:en
5601     @@@@:
5602 wakaba 1.15 The <HE::form> element containing this control.
5603 wakaba 1.1 @@Get:
5604 wakaba 1.2 @@@Type:
5605 wakaba 1.4 DOMHTML:HTMLFormElement
5606 wakaba 1.2 @@@Description:
5607     @@@@lang:en
5608     @@@@@:
5609     This control is not within the context of a form.
5610 wakaba 1.1 @Attr:
5611     @@Name: code
5612 wakaba 1.11 @@enDesc:
5613     Applet class file.
5614 wakaba 1.1 @@Get:
5615     @@@Type: DOMString
5616     @@Set:
5617     @@@Type: DOMString
5618 wakaba 1.4 @ATTR:
5619 wakaba 1.1 @@Name: align
5620 wakaba 1.4 @@Deprecated:
5621 wakaba 1.11 @@ReflectEnum:
5622 wakaba 1.1 @@Get:
5623     @@Set:
5624 wakaba 1.4 @ATTR:
5625 wakaba 1.1 @@Name: archive
5626 wakaba 1.11 @@ReflectCDATA:
5627 wakaba 1.1 @@Get:
5628     @@Set:
5629 wakaba 1.4 @ATTR:
5630 wakaba 1.1 @@Name: border
5631 wakaba 1.4 @@Deprecated:
5632 wakaba 1.11 @@ReflectCDATA:
5633 wakaba 1.1 @@Get:
5634     @@Set:
5635 wakaba 1.4 @ATTR:
5636     @@AName:codebase
5637     @@DOMAName: codeBase
5638 wakaba 1.17 @@plAName: codebase
5639 wakaba 1.11 @@ReflectURI:
5640 wakaba 1.1 @@Get:
5641     @@Set:
5642 wakaba 1.4 @ATTR:
5643     @@AName:codetype
5644     @@DOMAName: codeType
5645 wakaba 1.17 @@plAName: codetype
5646 wakaba 1.11 @@ReflectCDATA:
5647 wakaba 1.1 @@Get:
5648     @@Set:
5649 wakaba 1.4 @ATTR:
5650 wakaba 1.1 @@Name: data
5651 wakaba 1.11 @@ReflectURI:
5652     @@@ImplNote: Relative to codebase
5653 wakaba 1.1 @@Get:
5654     @@Set:
5655 wakaba 1.4 @ATTR:
5656 wakaba 1.1 @@Name: declare
5657 wakaba 1.11 @@ReflectBoolean:
5658 wakaba 1.1 @@Get:
5659     @@@InCase:
5660     @@@@Value: true
5661     @@@InCase:
5662     @@@@Value: false
5663     @@Set:
5664     @@@InCase:
5665     @@@@Value: true
5666     @@@InCase:
5667     @@@@Value: false
5668 wakaba 1.4 @ATTR:
5669 wakaba 1.1 @@Name: height
5670 wakaba 1.4 @@Deprecated:
5671 wakaba 1.11 @@ReflectCDATA:
5672 wakaba 1.1 @@Get:
5673     @@Set:
5674 wakaba 1.4 @ATTR:
5675 wakaba 1.1 @@Name: hspace
5676 wakaba 1.4 @@Deprecated:
5677 wakaba 1.11 @@ReflectNumeric:
5678 wakaba 1.1 @@Get:
5679     @@Set:
5680 wakaba 1.4 @ATTR:
5681 wakaba 1.1 @@Name: name
5682 wakaba 1.11 @@ReflectCDATA:
5683 wakaba 1.1 @@Get:
5684     @@Set:
5685 wakaba 1.4 @ATTR:
5686     @@AName:standby
5687     @@DOMAName: standby
5688 wakaba 1.11 @@ReflectCDATA:
5689 wakaba 1.1 @@Get:
5690     @@Set:
5691 wakaba 1.4 @ATTR:
5692     @@AName:tabindex
5693     @@DOMAName: tabIndex
5694 wakaba 1.11 @@ReflectNumeric:
5695 wakaba 1.1 @@Get:
5696     @@Set:
5697 wakaba 1.4 @ATTR:
5698 wakaba 1.1 @@Name: type
5699 wakaba 1.11 @@ReflectCDATA:
5700 wakaba 1.1 @@Get:
5701     @@Set:
5702     @Attr:
5703 wakaba 1.4 @@AName:usemap
5704     @@DOMAName: useMap
5705 wakaba 1.17 @@plAName: usemap
5706 wakaba 1.11 @@ReflectURI:
5707 wakaba 1.1 @@Get:
5708     @@Set:
5709 wakaba 1.2 @@ImplNote:
5710     @@@lang:en
5711     @@@@:
5712 wakaba 1.15 In HTML 4 or XHTML 1.0, the <HA::usemap> attribute is
5713     a <SGML::%URI;>. In XHTML m12n, the <HA::usemap>
5714     is an <XML::IDREF>.
5715 wakaba 1.4 @ATTR:
5716 wakaba 1.1 @@Name: vspace
5717 wakaba 1.4 @@Deprecated:
5718 wakaba 1.11 @@ReflectNumeric:
5719 wakaba 1.1 @@Get:
5720     @@Set:
5721 wakaba 1.4 @ATTR:
5722 wakaba 1.1 @@Name: width
5723 wakaba 1.11 @@ReflectCDATA:
5724 wakaba 1.1 @@Get:
5725     @@Set:
5726     @Attr:
5727     @@Name: contentDocument
5728 wakaba 1.2 @@Description:
5729     @@@lang:en
5730     @@@@:
5731     The document this object contains, if any and available.
5732 wakaba 1.1 @@Get:
5733     @@@Type: Document
5734 wakaba 1.2 @@@InCase:
5735     @@@@Value:
5736     @@@@@is-null:1
5737     @@@@Description:
5738     @@@@@lang:en
5739     @@@@@@:
5740     There is no containing document or
5741     there is but it is not available.
5742 wakaba 1.4 @@@Def:
5743     @@@@ContentType:
5744     lang:dis
5745     @@@@GetPropNode:
5746     DOMHTML:contentDocument
5747 wakaba 1.1 @@Level[list]: 2
5748     @@SpecLevel[list]: 2
5749 wakaba 1.4 @@L2:
5750 wakaba 1.17 ##HTMLObjectElement
5751 wakaba 1.2
5752 wakaba 1.4 PropDef:
5753 wakaba 1.7 @QName: referrer
5754     @enDesc:
5755     <A::HTMLDocument.referrer>.
5756    
5757     PropDef:
5758 wakaba 1.4 @QName: contentDocument
5759     @Type:
5760     ManakaiDOMCore:ManakaiDOMNodeObjectNode::ManakaiDOM:ManakaiDOMCommon
5761     @Description:
5762     @@lang:en
5763     @@@:
5764     An (external) <IF::Document> node object referred from an element.
5765    
5766 wakaba 1.17 IfCls1ETDef:
5767 wakaba 1.4 @ETQName:
5768     xhtml1:param
5769     @IFQName: HTMLParamElement
5770     @ClsQName:ManakaiDOMHTMLParamElement
5771     @ISAHTMLElement:
5772    
5773     @ATTR:
5774 wakaba 1.1 @@Name: name
5775 wakaba 1.11 @@ReflectCDATA:
5776 wakaba 1.1 @@Get:
5777     @@Set:
5778 wakaba 1.4 @ATTR:
5779 wakaba 1.1 @@Name: type
5780 wakaba 1.11 @@ReflectCDATA:
5781 wakaba 1.1 @@Get:
5782     @@Set:
5783 wakaba 1.4 @ATTR:
5784 wakaba 1.1 @@Name: value
5785 wakaba 1.11 @@ReflectCDATA:
5786 wakaba 1.1 @@Get:
5787     @@Set:
5788 wakaba 1.4 @ATTR:
5789     @@AName:valuetype
5790     @@DOMAName: valueType
5791 wakaba 1.17 @@plAName: valuetype
5792 wakaba 1.11 @@ReflectCDATA:
5793 wakaba 1.1 @@Get:
5794     @@Set:
5795 wakaba 1.2
5796 wakaba 1.17 IfCls12ETDef:
5797 wakaba 1.4 @ETQName:
5798     xhtml1:applet
5799     @IFQName: HTMLAppletElement
5800     @ClsQName:ManakaiDOMHTMLAppletElement
5801     @ISAHTMLElement:
5802     @Deprecated:
5803    
5804     @ATTR:
5805 wakaba 1.1 @@Name: align
5806 wakaba 1.4 @@Deprecated:
5807 wakaba 1.11 @@ReflectEnum:
5808 wakaba 1.1 @@Get:
5809     @@Set:
5810 wakaba 1.4 @ATTR:
5811 wakaba 1.1 @@Name: alt
5812 wakaba 1.4 @@Deprecated:
5813 wakaba 1.11 @@ReflectCDATA:
5814 wakaba 1.1 @@Get:
5815     @@Set:
5816 wakaba 1.4 @ATTR:
5817 wakaba 1.1 @@Name: archive
5818 wakaba 1.4 @@Deprecated:
5819 wakaba 1.11 @@ReflectCDATA:
5820 wakaba 1.1 @@Get:
5821     @@Set:
5822 wakaba 1.4 @ATTR:
5823 wakaba 1.1 @@Name: code
5824 wakaba 1.4 @@Deprecated:
5825 wakaba 1.11 @@ReflectCDATA:
5826     @@@ImplNote: URI?
5827 wakaba 1.1 @@Get:
5828     @@Set:
5829 wakaba 1.4 @ATTR:
5830     @@AName:codebase
5831     @@DOMAName: codeBase
5832 wakaba 1.17 @@plAName: codebase
5833 wakaba 1.4 @@Deprecated:
5834 wakaba 1.11 @@ReflectURI:
5835 wakaba 1.1 @@Get:
5836     @@Set:
5837 wakaba 1.4 @ATTR:
5838 wakaba 1.2 @@Name: height
5839 wakaba 1.4 @@Deprecated:
5840 wakaba 1.11 @@ReflectCDATA:
5841     @@Get:
5842 wakaba 1.1 @@Set:
5843 wakaba 1.4 @ATTR:
5844 wakaba 1.1 @@Name: hspace
5845 wakaba 1.4 @@Deprecated:
5846 wakaba 1.11 @@ReflectStringLong:
5847 wakaba 1.1 @@Get:
5848 wakaba 1.4 @@Set:
5849 wakaba 1.1 @@Level[list]:
5850 wakaba 1.2 1
5851 wakaba 1.1 2
5852     @@SpecLevel[list]:
5853 wakaba 1.2 1
5854 wakaba 1.1 2
5855 wakaba 1.4 @ATTR:
5856 wakaba 1.1 @@Name: name
5857 wakaba 1.4 @@Deprecated:
5858 wakaba 1.11 @@ReflectCDATA:
5859 wakaba 1.1 @@Get:
5860     @@Set:
5861     @Attr:
5862     @@Name: object
5863 wakaba 1.4 @@Deprecated:
5864 wakaba 1.11 @@ReflectCDATA:
5865 wakaba 1.1 @@Get:
5866     @@Set:
5867     @@Level[list]:
5868 wakaba 1.2 1
5869 wakaba 1.1 @@SpecLevel[list]:
5870 wakaba 1.2 1
5871 wakaba 1.1 2
5872     @Attr:
5873     @@Name: vspace
5874 wakaba 1.4 @@Deprecated:
5875 wakaba 1.11 @@ReflectStringLong:
5876 wakaba 1.1 @@Get:
5877     @@Set:
5878     @@Level[list]:
5879 wakaba 1.2 1
5880 wakaba 1.1 2
5881     @@SpecLevel[list]:
5882 wakaba 1.2 1
5883 wakaba 1.1 2
5884     @Attr:
5885     @@Name: width
5886 wakaba 1.4 @@Deprecated:
5887 wakaba 1.11 @@ReflectCDATA:
5888 wakaba 1.1 @@Get:
5889     @@Set:
5890 wakaba 1.17 ##HTMLAppletElement
5891 wakaba 1.7
5892     ResourceDef:
5893     @QName:
5894     DOMMain:long
5895     @AliasFor:
5896     DOMMain:long::ManakaiDOM:all
5897     @ForCheck:
5898     !=ManakaiDOM:all
5899 wakaba 1.17 @For: ManakaiDOM|DOM
5900 wakaba 1.2
5901 wakaba 1.17 IfCls1ETDef:
5902 wakaba 1.4 @ETQName:
5903     xhtml1:map
5904     @IFQName: HTMLMapElement
5905     @ClsQName:ManakaiDOMHTMLMapElement
5906     @ISAHTMLElement:
5907    
5908 wakaba 1.1 @Attr:
5909     @@Name: areas
5910 wakaba 1.2 @@Description:
5911     @@@lang:en
5912     @@@@:
5913     The list of areas defined for this image map.
5914 wakaba 1.1 @@Get:
5915     @@@Type: HTMLCollection
5916 wakaba 1.4 @ATTR:
5917 wakaba 1.1 @@Name: name
5918 wakaba 1.11 @@ReflectCDATA:
5919 wakaba 1.1 @@Get:
5920     @@Set:
5921 wakaba 1.17 ##HTMLMapElement
5922 wakaba 1.2
5923 wakaba 1.17 IfCls1ETDef:
5924 wakaba 1.4 @ETQName:
5925     xhtml1:area
5926     @IFQName: HTMLAreaElement
5927     @ClsQName:ManakaiDOMAreaElement
5928     @ISAHTMLElement:
5929    
5930     @ATTR:
5931     @@AName: accesskey
5932     @@DOMAName: accessKey
5933 wakaba 1.17 @@plAName: accesskey
5934 wakaba 1.11 @@ReflectCDATA:
5935 wakaba 1.1 @@Get:
5936     @@Set:
5937 wakaba 1.4 @ATTR:
5938 wakaba 1.1 @@Name: alt
5939 wakaba 1.11 @@ReflectCDATA:
5940 wakaba 1.1 @@Get:
5941     @@Set:
5942 wakaba 1.4 @ATTR:
5943 wakaba 1.1 @@Name: coords
5944 wakaba 1.11 @@ReflectCDATA:
5945 wakaba 1.1 @@Get:
5946     @@Set:
5947 wakaba 1.4 @ATTR:
5948 wakaba 1.1 @@Name: href
5949 wakaba 1.11 @@ReflectURI:
5950 wakaba 1.1 @@Get:
5951     @@Set:
5952 wakaba 1.4 @ATTR:
5953     @@AName:nohref
5954     @@DOMAName: noHref
5955 wakaba 1.17 @@plAName: nohref
5956 wakaba 1.11 @@ReflectBoolean:
5957 wakaba 1.1 @@Get:
5958     @@@InCase:
5959     @@@@Value: true
5960     @@@InCase:
5961     @@@@Value: false
5962     @@Set:
5963     @@@InCase:
5964     @@@@Value: true
5965     @@@InCase:
5966     @@@@Value: false
5967 wakaba 1.4 @ATTR:
5968 wakaba 1.11 @@ReflectCDATA:
5969 wakaba 1.1 @@Name: shape
5970     @@Get:
5971     @@Set:
5972     @Attr:
5973 wakaba 1.4 @@AName:tabindex
5974     @@DOMAName: tabIndex
5975 wakaba 1.11 @@ReflectNumeric:
5976 wakaba 1.1 @@Get:
5977     @@Set:
5978 wakaba 1.4 @ATTR:
5979 wakaba 1.1 @@Name: target
5980 wakaba 1.11 @@ReflectCDATA:
5981 wakaba 1.1 @@Get:
5982     @@Set:
5983 wakaba 1.17 ##HTMLAreaElement
5984 wakaba 1.2
5985 wakaba 1.17 IfCls1ETDef:
5986 wakaba 1.4 @ETQName:
5987     xhtml1:script
5988     @IFQName: HTMLScriptElement
5989     @ClsQName:ManakaiDOMHTMLScriptElement
5990     @ISAHTMLElement:
5991    
5992 wakaba 1.1 @Attr:
5993     @@Name: text
5994 wakaba 1.2 @@Description:
5995     @@@lang:en
5996     @@@@:
5997     The script content of this element.
5998     @@ImplNote:
5999     @@@lang:en
6000     @@@@:
6001 wakaba 1.15 ISSUE: How interact with <HA::src>?
6002 wakaba 1.1 @@Get:
6003     @@@Type: DOMString
6004     @@Set:
6005     @@@Type: DOMString
6006     @Attr:
6007 wakaba 1.4 @@DOMAName: htmlFor
6008 wakaba 1.2 @@Description:
6009     @@@lang:en
6010     @@@@:
6011     {NOTE:: Reserved for future use by the DOM HTML Specifications.
6012 wakaba 1.15 The HTML <HA::for> attribute is also reserved
6013 wakaba 1.2 by the HTML 4 Specifications.
6014     \
6015     }
6016 wakaba 1.1 @@Get:
6017     @@@Type: DOMString
6018     @@Set:
6019     @@@Type: DOMString
6020     @Attr:
6021     @@Name: event
6022 wakaba 1.2 @@Description:
6023     @@@lang:en
6024     @@@@:
6025     {NOTE:: Reserved for future use by the DOM HTML Specifications.
6026 wakaba 1.15 The HTML <HA::event> attribute is also reserved
6027 wakaba 1.2 by the HTML 4 Specification.
6028     \
6029     }
6030 wakaba 1.1 @@Get:
6031     @@@Type: DOMString
6032     @@Set:
6033     @@@Type: DOMString
6034 wakaba 1.4 @ATTR:
6035 wakaba 1.1 @@Name: charset
6036 wakaba 1.11 @@ReflectCDATA:
6037 wakaba 1.1 @@Get:
6038     @@Set:
6039 wakaba 1.4 @ATTR:
6040 wakaba 1.1 @@Name: defer
6041 wakaba 1.11 @@ReflectBoolean:
6042 wakaba 1.1 @@Get:
6043     @@@InCase:
6044     @@@@Value: true
6045     @@@InCase:
6046     @@@@Value: false
6047     @@Set:
6048     @@@InCase:
6049     @@@@Value: true
6050     @@@InCase:
6051     @@@@Value: false
6052 wakaba 1.4 @ATTR:
6053 wakaba 1.1 @@Name: src
6054 wakaba 1.11 @@ReflectURI:
6055 wakaba 1.1 @@Get:
6056     @@Set:
6057 wakaba 1.4 @ATTR:
6058 wakaba 1.1 @@Name: type
6059 wakaba 1.11 @@ReflectCDATA:
6060 wakaba 1.1 @@Get:
6061     @@Set:
6062 wakaba 1.17 ##HTMLScriptElement
6063 wakaba 1.2
6064 wakaba 1.17 IfCls1ETDef:
6065 wakaba 1.4 @ETQName:
6066     xhtml1:table
6067     @IFQName: HTMLTableElement
6068     @ClsQName:ManakaiDOMHTMLTableElement
6069     @ISAHTMLElement:
6070    
6071 wakaba 1.1 @Attr:
6072     @@Name: caption
6073 wakaba 1.2 @@Description:
6074     @@@lang:en
6075     @@@@:
6076 wakaba 1.15 The <HE::caption> of the table.
6077 wakaba 1.1 @@Get:
6078     @@@Type: HTMLTableCaptionElement
6079 wakaba 1.2 @@@InCase:
6080     @@@@Label:
6081     @@@@@lang:en
6082     @@@@@@:
6083 wakaba 1.15 void (= <DOM::null>?)
6084 wakaba 1.2 @@@@Description:
6085     @@@@@lang:en
6086     @@@@@@: There is no caption.
6087 wakaba 1.1 @@Set:
6088     @@@Type: HTMLTableCaptionElement
6089     @@@Exception:
6090 wakaba 1.4 @@@@@:
6091     ManakaiDOMHTML:MDOM_NOT_CAPTION
6092     @@@@Description:
6093     @@@@@lang:en
6094     @@@@@@:
6095 wakaba 1.15 The given element is not a <HE::caption>.
6096 wakaba 1.1 @@Level[list]:
6097 wakaba 1.2 1
6098 wakaba 1.1 @@SpecLevel[list]:
6099 wakaba 1.2 1
6100 wakaba 1.1 2
6101     @Attr:
6102     @@Name: tHead
6103 wakaba 1.17 @@plAName: thead
6104 wakaba 1.2 @@Description:
6105     @@@lang:en
6106     @@@@:
6107 wakaba 1.15 The <HE::thead> of this table.
6108 wakaba 1.1 @@Get:
6109     @@@Type: HTMLTableSectionElement
6110 wakaba 1.2 @@@InCase:
6111     @@@@Value:
6112     @@@@@is-null:1
6113     @@@@Description:
6114     @@@@@lang:en
6115     @@@@@@:
6116 wakaba 1.15 There is no <HE::thead>.
6117 wakaba 1.1 @@Set:
6118     @@@Type: HTMLTableSectionElement
6119     @@@Exception:
6120 wakaba 1.2 @@@@Name: HIERARCHY_REQUEST_ERR
6121 wakaba 1.1 @@@@Type:
6122     DOMCore:DOMException
6123 wakaba 1.2 @@@@SubType:
6124     ManakaiDOMHTML:MDOM_BAD_ELEMENT_TYPE
6125     @@@@Description:
6126     @@@@@lang:en
6127     @@@@@@:
6128 wakaba 1.15 The given element is not a <HE::thead>.
6129 wakaba 1.1 @@Level[list]:
6130     1
6131     @@SpecLevel[list]:
6132     1
6133     2
6134     @Attr:
6135     @@Name: tFoot
6136 wakaba 1.17 @@plAName: tfoot
6137 wakaba 1.2 @@Description:
6138     @@@lang:en
6139     @@@@:
6140 wakaba 1.15 The <HE::tfoot> of this table.
6141 wakaba 1.1 @@Get:
6142     @@@Type: HTMLTableSectionElement
6143 wakaba 1.2 @@@InCase:
6144     @@@@Value:
6145     @@@@@is-null:1
6146     @@@@Description:
6147     @@@@@lang:en
6148     @@@@@@:
6149 wakaba 1.15 There is no <HE::tfoot>.
6150 wakaba 1.1 @@Set:
6151     @@@Type: HTMLTableSectionElement
6152     @@@Exception:
6153 wakaba 1.2 @@@@Name: HIERARCHY_REQUEST_ERR
6154 wakaba 1.1 @@@@Type:
6155     DOMCore:DOMException
6156 wakaba 1.2 @@@@SubType:
6157     @@@@@QName:
6158     ManakaiDOMHTML:MDOM_NOT_TFOOT
6159     @@@@@Description:
6160     @@@@@@lang:en
6161     @@@@@@@:
6162 wakaba 1.15 The given element is not a <HE::tfoot>.
6163 wakaba 1.1 @@Level[list]:
6164     1
6165     @@SpecLevel[list]:
6166     1
6167     2
6168     @Attr:
6169     @@Name: rows
6170 wakaba 1.2 @@Description:
6171     @@@lang:en
6172     @@@@:
6173     A collection of all the rows (child or grandchild
6174 wakaba 1.15 <HE::tr> elements) in this table.
6175 wakaba 1.1 @@Get:
6176     @@@Type: HTMLCollection
6177     @Attr:
6178     @@Name: tBodies
6179 wakaba 1.17 @@plAName: tbodies
6180 wakaba 1.2 @@Description:
6181     @@@lang:en
6182     @@@@:
6183     A collection of the table bodies.
6184     @@ImplNote:
6185     @@@lang:en
6186     @@@@:
6187     ISSUE: What is collected if simple table?
6188 wakaba 1.1 @@Get:
6189     @@@Type: HTMLCollection
6190 wakaba 1.4 @ATTR:
6191 wakaba 1.1 @@Name: align
6192 wakaba 1.4 @@Deprecated:
6193 wakaba 1.11 @@ReflectEnum:
6194 wakaba 1.1 @@Get:
6195     @@Set:
6196 wakaba 1.4 @ATTR:
6197     @@AName:bgcolor
6198     @@DOMAName: bgColor
6199 wakaba 1.17 @@plAName: bgcolor
6200 wakaba 1.11 @@ReflectCDATA:
6201 wakaba 1.1 @@Get:
6202     @@Set:
6203 wakaba 1.4 @ATTR:
6204 wakaba 1.1 @@Name: border
6205 wakaba 1.11 @@ReflectCDATA:
6206 wakaba 1.1 @@Get:
6207     @@Set:
6208 wakaba 1.4 @ATTR:
6209     @@AName:cellpadding
6210     @@DOMAName: cellPadding
6211 wakaba 1.17 @@plAName: cellpadding
6212 wakaba 1.11 @@ReflectCDATA:
6213 wakaba 1.1 @@Get:
6214     @@Set:
6215 wakaba 1.4 @ATTR:
6216     @@AName:cellspacing
6217     @@DOMAName: cellSpacing
6218 wakaba 1.17 @@plAName: cellspacing
6219 wakaba 1.11 @@ReflectCDATA:
6220 wakaba 1.1 @@Get:
6221     @@Set:
6222 wakaba 1.4 @ATTR:
6223 wakaba 1.1 @@Name: frame
6224 wakaba 1.11 @@ReflectEnum:
6225 wakaba 1.1 @@Get:
6226     @@Set:
6227 wakaba 1.2 @@ImplNote:
6228     @@@lang:en
6229     @@@@:
6230 wakaba 1.15 How <HTML::border> is implemented in DOM Level 0?
6231 wakaba 1.4 @ATTR:
6232 wakaba 1.1 @@Name: rules
6233 wakaba 1.11 @@ReflectEnum:
6234 wakaba 1.1 @@Get:
6235     @@Set:
6236 wakaba 1.4 @ATTR:
6237 wakaba 1.1 @@Name: summary
6238 wakaba 1.11 @@ReflectCDATA:
6239 wakaba 1.1 @@Get:
6240     @@Set:
6241 wakaba 1.4 @ATTR:
6242 wakaba 1.1 @@Name: width
6243 wakaba 1.11 @@ReflectCDATA:
6244 wakaba 1.1 @@Get:
6245     @@Set:
6246     @Method:
6247     @@Name: createTHead
6248 wakaba 1.17 @@plAName: create_thead
6249 wakaba 1.2 @@Description:
6250     @@@lang:en
6251     @@@@:
6252 wakaba 1.15 Create the <HE::thead> element (if it does not exist) and
6253 wakaba 1.2 return it.
6254 wakaba 1.1 @@Return:
6255     @@@Type: HTMLElement
6256 wakaba 1.2 @@@Description:
6257     @@@@lang:en
6258     @@@@@:
6259 wakaba 1.15 The <HE::thead> element.
6260 wakaba 1.1 @Method:
6261     @@Name: deleteTHead
6262 wakaba 1.17 @@plAName: delete_thead
6263 wakaba 1.2 @@Description:
6264     @@@lang:en
6265     @@@@:
6266 wakaba 1.15 Delete the <HE::thead>, if any, from the table.
6267 wakaba 1.2 @@Return:
6268 wakaba 1.1 @Method:
6269     @@Name: createTFoot
6270 wakaba 1.17 @@plAName: create_tfoot
6271 wakaba 1.2 @@Description:
6272     @@@lang:en
6273     @@@@:
6274 wakaba 1.15 Create the <HE::tfoot> element (if it does not exist) and
6275 wakaba 1.2 return it.
6276 wakaba 1.1 @@Return:
6277     @@@Type: HTMLElement
6278 wakaba 1.2 @@@Description:
6279     @@@@lang:en
6280     @@@@@:
6281 wakaba 1.15 The <HE::tfoot> element.
6282 wakaba 1.1 @Method:
6283     @@Name: deleteTFoot
6284 wakaba 1.17 @@plAName: delete_tfoot
6285 wakaba 1.2 @@Description:
6286     @@@lang:en
6287     @@@@:
6288 wakaba 1.15 Delete the <HE::tfoot>, if any, from the table.
6289 wakaba 1.2 @@Return:
6290 wakaba 1.1 @Method:
6291     @@Name: createCaption
6292 wakaba 1.2 @@Description:
6293     @@@lang:en
6294     @@@@:
6295     Create the table caption element (if it does not exist) and
6296     return it.
6297 wakaba 1.1 @@Return:
6298     @@@Type: HTMLElement
6299 wakaba 1.2 @@@Description:
6300     @@@@lang:en
6301     @@@@@: The table caption.
6302     @Method:
6303     @@Name: deleteCaption
6304     @@Description:
6305     @@@lang:en
6306     @@@@:
6307     Delete the table caption, if any.
6308     @@Return:
6309     @Method:
6310     @@Name: insertRow
6311     @@Description:
6312     @@@lang:en
6313     @@@@:
6314     Insert a new empty row in this table. If this table is
6315 wakaba 1.15 empty, a <HE::tbody> is created and the new row is
6316 wakaba 1.2 inserted into it.
6317     @@ImplNote:
6318     @@@lang:en
6319     @@@@:
6320     DOM HTML Specifications note that a table row
6321     cannot be empty according to HTML 4. But they do not
6322     require DOM implementations to add a table cell.
6323     @@Param:
6324     @@@Name: index
6325     @@@Type:
6326     DOMMain:long
6327     @@@Description:
6328     @@@@lang:en
6329     @@@@@:
6330     The ordinal index of the row where to insert a new row,
6331 wakaba 1.15 starting from <DOM::0> and relative to the logical
6332 wakaba 1.2 order (not the document order). The new row is
6333     inserted immediately before and in the same row group
6334 wakaba 1.15 as the current <P::index>th row.
6335 wakaba 1.2 @@@InCase:
6336     @@@@Value:-1
6337     @@@@Description:
6338     @@@@@lang:en
6339     @@@@@@:
6340     The new row is appended.
6341 wakaba 1.3 @@@@SpecLevel:2
6342 wakaba 1.2 @@@InCase:
6343     @@@@Label:
6344     @@@@@lang:en
6345     @@@@@@:
6346     The number of rows
6347     @@@@Description:
6348     @@@@@lang:en
6349     @@@@@@:
6350     The new row is appended.
6351 wakaba 1.3 @@@@SpecLevel:2
6352 wakaba 1.1 @@Return:
6353     @@@Type: HTMLElement
6354 wakaba 1.2 @@@Description:
6355     @@@@lang:en
6356     @@@@@:The newly created row.
6357 wakaba 1.1 @@@Exception:
6358 wakaba 1.2 @@@@Name: INDEX_SIZE_ERR
6359 wakaba 1.1 @@@@Type:
6360     DOMCore:DOMException
6361 wakaba 1.2 @@@@SubType:
6362     @@@@@QName:
6363     TODO: What?
6364     @@@@@Description:
6365     @@@@@@lang:en
6366     @@@@@@@:
6367 wakaba 1.15 The <P::index> is greater than the number of rows
6368     or less than <DOM::-1>.
6369 wakaba 1.3 @@@@SpecLevel:2
6370     @@@@ImplNote:
6371     @@@@@lang:en
6372     @@@@@@:
6373 wakaba 1.15 <SRC::DOM Level 1 Second Edition HTML, DOM Level 2 HTML>
6374     (<P::index> cannot <DOM::-1> in DOM Level 1.)
6375 wakaba 1.1 @@Level[list]:
6376     1
6377     2
6378     @@SpecLevel[list]:
6379     1
6380     2
6381     @Method:
6382     @@Name: deleteRow
6383 wakaba 1.2 @@Description:
6384     @@@lang:en
6385     @@@@:Delete a table row.
6386 wakaba 1.1 @@Param:
6387     @@@Name: index
6388     @@@Type:
6389     DOMMain:long
6390 wakaba 1.2 @@@Description:
6391     @@@@lang:en
6392     @@@@@:
6393 wakaba 1.15 The ordinal index of the row to delete, starting from <DOM::0>
6394 wakaba 1.2 and relative to the logical order (not document order).
6395     @@@InCase:
6396     @@@@Value:-1
6397     @@@@Description:
6398     @@@@@lang:en
6399     @@@@@@:
6400     The last row in the table is deleted.
6401 wakaba 1.3 @@@@SpecLevel:2
6402 wakaba 1.2 @@@ImplNote:
6403     @@@@lang:en
6404     @@@@@:
6405 wakaba 1.15 In the order of <HE::thead> -> <HE::tbody>s -> <HE::tfoot>?
6406 wakaba 1.1 @@Return:
6407     @@@Exception:
6408 wakaba 1.2 @@@@Name: INDEX_SIZE_ERR
6409 wakaba 1.1 @@@@Type:
6410     DOMCore:DOMException
6411 wakaba 1.2 @@@@SubType:
6412     @@@@@QName:
6413     TODO: What?
6414     @@@@@Description:
6415     @@@@@@lang:en
6416     @@@@@@@:
6417 wakaba 1.15 The <P::index> is greater than or equal to
6418     the number of rows or the <P::index> is
6419     less than <DOM::-1>.
6420 wakaba 1.3 @@@@SpecLevel:2
6421     @@@@ImplNote:
6422     @@@@@lang:en
6423     @@@@@@:
6424 wakaba 1.15 <SRC::DOM Level 1 Second Edition HTML, DOM Level 2 HTML>
6425     (<P::index> cannot <DOM::-1> in DOM Level 1.)
6426 wakaba 1.1 @@Level[list]:
6427     1
6428     2
6429     @@SpecLevel[list]:
6430     1
6431     2
6432 wakaba 1.17 ##HTMLTableElement
6433 wakaba 1.2
6434 wakaba 1.17 IfCls1ETDef:
6435 wakaba 1.4 @ETQName:
6436     xhtml1:caption
6437     @IFQName: HTMLTableCaptionElement
6438     @ClsQName:ManakaiDOMHTMLTableCaptionElement
6439     @ISAHTMLElement:
6440    
6441     @ATTR:
6442 wakaba 1.1 @@Name: align
6443 wakaba 1.4 @@Deprecated:
6444 wakaba 1.11 @@ReflectEnum:
6445 wakaba 1.1 @@Get:
6446     @@Set:
6447 wakaba 1.17 ##HTMLTableCaptionElement
6448 wakaba 1.2
6449 wakaba 1.17 IfCls1ETDef:
6450 wakaba 1.4 @ETQName:
6451     xhtml1:col
6452     @IFQName: HTMLTableColElement
6453     @ClsQName:ManakaiDOMHTMLTableColElement
6454     @ISAHTMLElement:
6455    
6456     @ATTR:
6457 wakaba 1.1 @@Name: align
6458 wakaba 1.11 @@ReflectEnum:
6459 wakaba 1.1 @@Get:
6460     @@Set:
6461 wakaba 1.4 @ATTR:
6462     @@AName:char
6463     @@DOMAName: ch
6464 wakaba 1.17 @@plAName: char
6465 wakaba 1.11 @@ReflectCDATA:
6466 wakaba 1.1 @@Get:
6467     @@Set:
6468 wakaba 1.4 @ATTR:
6469     @@AName:charoff
6470     @@DOMAName: chOff
6471 wakaba 1.17 @@plAName: charoff
6472 wakaba 1.11 @@ReflectCDATA:
6473 wakaba 1.1 @@Get:
6474     @@Set:
6475 wakaba 1.4 @ATTR:
6476 wakaba 1.1 @@Name: span
6477 wakaba 1.11 @@ReflectNumeric:
6478 wakaba 1.1 @@Get:
6479     @@Set:
6480 wakaba 1.4 @ATTR:
6481     @@AName:valign
6482     @@DOMAName: vAlign
6483 wakaba 1.17 @@plAName: valign
6484 wakaba 1.11 @@ReflectCDATA:
6485 wakaba 1.1 @@Get:
6486     @@Set:
6487 wakaba 1.4 @ATTR:
6488 wakaba 1.1 @@Name: width
6489 wakaba 1.11 @@ReflectCDATA:
6490 wakaba 1.1 @@Get:
6491     @@Set:
6492 wakaba 1.17 ##HTMLTableColElement
6493 wakaba 1.2
6494 wakaba 1.4 ForDef:
6495     @QName:
6496     DOMHTML:ForTbody
6497 wakaba 1.17 @ISA: DOMHTML|ForAnET
6498 wakaba 1.4 ForDef:
6499     @QName:
6500     DOMHTML:ForThead
6501 wakaba 1.17 @ISA: DOMHTML|ForAnET
6502 wakaba 1.4 ForDef:
6503     @QName:
6504     DOMHTML:ForTfoot
6505 wakaba 1.17 @ISA: DOMHTML|ForAnET
6506 wakaba 1.4
6507 wakaba 1.18 IfCls1ETsDef:
6508 wakaba 1.4 @rdf:type:
6509     @@@:
6510     dis:MultipleResource
6511     @@For:ForHTML
6512     @@ForCheck:
6513     !ManakaiDOM:ForIF !ManakaiDOM:ForClass
6514     !ForTbody !ForThead !ForTfoot
6515     @resourceFor:
6516     @@@: ForTbody
6517     @@ForCheck:ForHTML
6518     @resourceFor:
6519     @@@: ForThead
6520     @@ForCheck:ForHTML
6521     @resourceFor:
6522     @@@: ForTfoot
6523     @@ForCheck:ForHTML
6524     @rdf:type:
6525     @@@:
6526     s:ElementType
6527 wakaba 1.17 @@ForCheck: ForAnET
6528 wakaba 1.4
6529     @ETQName:
6530     @@@:
6531 wakaba 1.2 xhtml1:tbody
6532 wakaba 1.4 @@ForCheck:ForTbody
6533     @ETQName:
6534     @@@:
6535 wakaba 1.2 xhtml1:thead
6536 wakaba 1.4 @@ForCheck:ForThead
6537     @ETQName:
6538     @@@:
6539 wakaba 1.2 xhtml1:tfoot
6540 wakaba 1.4 @@ForCheck:ForTfoot
6541    
6542 wakaba 1.8 @elementType:
6543     @@@: ||ForHTML40SE||ForTfoot
6544     @@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
6545     @@ContentType: DISCore|TFPQNames
6546     @elementType:
6547     @@@: ||ForHTML401||ForTfoot
6548     @@ForCheck: ManakaiDOM|DOM2
6549     @@ContentType: DISCore|TFPQNames
6550     @elementType:
6551     @@@: ||ForXHTML10SE||ForTfoot
6552     @@ForCheck: ManakaiDOM|DOM2
6553     @@ContentType: DISCore|TFPQNames
6554    
6555    
6556     @elementType:
6557     @@@: ||ForHTML40SE||ForTbody
6558     @@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
6559     @@ContentType: DISCore|TFPQNames
6560     @elementType:
6561     @@@: ||ForHTML401||ForTbody
6562     @@ForCheck: ManakaiDOM|DOM2
6563     @@ContentType: DISCore|TFPQNames
6564     @elementType:
6565     @@@: ||ForXHTML10SE||ForTbody
6566     @@ForCheck: ManakaiDOM|DOM2
6567     @@ContentType: DISCore|TFPQNames
6568    
6569    
6570     @elementType:
6571     @@@: ||ForHTML40SE||ForThead
6572     @@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
6573     @@ContentType: DISCore|TFPQNames
6574     @elementType:
6575     @@@: ||ForHTML401||ForThead
6576     @@ForCheck: ManakaiDOM|DOM2
6577     @@ContentType: DISCore|TFPQNames
6578     @elementType:
6579     @@@: ||ForXHTML10SE||ForThead
6580     @@ForCheck: ManakaiDOM|DOM2
6581     @@ContentType: DISCore|TFPQNames
6582    
6583 wakaba 1.4 @IFQName: HTMLTableSectionElement
6584     @ClsQName:ManakaiDOMHTMLTableSectionElement
6585     @ISAHTMLElement:
6586    
6587 wakaba 1.11 @Attrs:
6588 wakaba 1.1 @@Name: align
6589 wakaba 1.11 @@ReflectEnum:
6590 wakaba 1.1 @@Get:
6591     @@Set:
6592 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForThead
6593     @@docAttrP2S: ||ForHTML401||ForThead
6594     @@docAttrP2X: ||ForXHTML10SE||ForThead
6595     @@docAttrP1S: ||ForHTML40SE||ForTbody
6596     @@docAttrP2S: ||ForHTML401||ForTbody
6597     @@docAttrP2X: ||ForXHTML10SE||ForTbody
6598     @@docAttrP1S: ||ForHTML40SE||ForTfoot
6599     @@docAttrP2S: ||ForHTML401||ForTfoot
6600     @@docAttrP2X: ||ForXHTML10SE||ForTfoot
6601     @Attrs:
6602 wakaba 1.4 @@AName: char
6603     @@DOMAName: ch
6604 wakaba 1.17 @@plAName: char
6605 wakaba 1.11 @@ReflectCDATA:
6606 wakaba 1.1 @@Get:
6607     @@Set:
6608 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForThead
6609     @@docAttrP2S: ||ForHTML401||ForThead
6610     @@docAttrP2X: ||ForXHTML10SE||ForThead
6611     @@docAttrP1S: ||ForHTML40SE||ForTbody
6612     @@docAttrP2S: ||ForHTML401||ForTbody
6613     @@docAttrP2X: ||ForXHTML10SE||ForTbody
6614     @@docAttrP1S: ||ForHTML40SE||ForTfoot
6615     @@docAttrP2S: ||ForHTML401||ForTfoot
6616     @@docAttrP2X: ||ForXHTML10SE||ForTfoot
6617     @Attrs:
6618 wakaba 1.4 @@AName:charoff
6619     @@DOMAName: chOff
6620 wakaba 1.17 @@plAName: charoff
6621 wakaba 1.11 @@ReflectCDATA:
6622 wakaba 1.1 @@Get:
6623     @@Set:
6624 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForThead
6625     @@docAttrP2S: ||ForHTML401||ForThead
6626     @@docAttrP2X: ||ForXHTML10SE||ForThead
6627     @@docAttrP1S: ||ForHTML40SE||ForTbody
6628     @@docAttrP2S: ||ForHTML401||ForTbody
6629     @@docAttrP2X: ||ForXHTML10SE||ForTbody
6630     @@docAttrP1S: ||ForHTML40SE||ForTfoot
6631     @@docAttrP2S: ||ForHTML401||ForTfoot
6632     @@docAttrP2X: ||ForXHTML10SE||ForTfoot
6633     @Attrs:
6634 wakaba 1.4 @@AName:valign
6635     @@DOMAName: vAlign
6636 wakaba 1.17 @@plAName: valign
6637 wakaba 1.11 @@ReflectEnum:
6638 wakaba 1.1 @@Get:
6639     @@Set:
6640 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForThead
6641     @@docAttrP2S: ||ForHTML401||ForThead
6642     @@docAttrP2X: ||ForXHTML10SE||ForThead
6643     @@docAttrP1S: ||ForHTML40SE||ForTbody
6644     @@docAttrP2S: ||ForHTML401||ForTbody
6645     @@docAttrP2X: ||ForXHTML10SE||ForTbody
6646     @@docAttrP1S: ||ForHTML40SE||ForTfoot
6647     @@docAttrP2S: ||ForHTML401||ForTfoot
6648     @@docAttrP2X: ||ForXHTML10SE||ForTfoot
6649 wakaba 1.1 @Attr:
6650     @@Name: rows
6651 wakaba 1.2 @@Description:
6652     @@@lang:en
6653     @@@@:
6654     A collection of rows in this table row group.
6655 wakaba 1.1 @@Get:
6656     @@@Type: HTMLCollection
6657     @Method:
6658     @@Name: insertRow
6659 wakaba 1.2 @@Description:
6660     @@@lang:en
6661     @@@@:
6662     Insert a table row into this row group.
6663 wakaba 1.1 @@Param:
6664     @@@Name: index
6665     @@@Type:
6666     DOMMain:long
6667 wakaba 1.2 @@@Description:
6668     @@@@lang:en
6669     @@@@@:
6670     The ordinal index of the row where to insert a new row,
6671 wakaba 1.15 starting from <DOM::0> and relative only to the
6672 wakaba 1.2 rows contained inside this row group. The new row
6673 wakaba 1.15 is inserted immediately before the current <P::index>th
6674 wakaba 1.2 row.
6675     @@@InCase:
6676     @@@@Value:-1
6677     @@@@Description:
6678     @@@@@lang:en
6679     @@@@@@:
6680     The new row is appended.
6681 wakaba 1.3 @@@@SpecLevel:2
6682 wakaba 1.2 @@@InCase:
6683     @@@@Label:
6684     @@@@@lang:en
6685     @@@@@@:The number of rows in this row group
6686     @@@@Description:
6687     @@@@@lang:en
6688     @@@@@@:
6689     The new row is appended.
6690 wakaba 1.3 @@@@SpecLevel:2
6691 wakaba 1.1 @@Return:
6692     @@@Type: HTMLElement
6693 wakaba 1.2 @@@Description:
6694     @@@@lang:en
6695     @@@@@:The newly created table row.
6696 wakaba 1.1 @@@Exception:
6697 wakaba 1.2 @@@@Name: INDEX_SIZE_ERR
6698 wakaba 1.1 @@@@Type:
6699     DOMCore:DOMException
6700 wakaba 1.2 @@@@SubType:
6701     @@@@@QName:
6702     TODO: What?
6703     @@@@@Description:
6704     @@@@@@lang:en
6705     @@@@@@@:
6706 wakaba 1.15 The <P::index> is greater than the number
6707     of rows or less than <DOM::-1>.
6708 wakaba 1.3 @@@@SpecLevel:2
6709     @@@@ImplNote:
6710     @@@@@lang:en
6711     @@@@@@:
6712 wakaba 1.15 <SRC::DOM Level 1 Second Edition HTML, DOM Level 2 HTML>
6713     (<P::index> cannot <DOM::-1> in DOM Level 1.)
6714 wakaba 1.1 @@Level[list]:
6715     1
6716     2
6717     @@SpecLevel[list]:
6718     1
6719     2
6720     @Method:
6721     @@Name: deleteRow
6722 wakaba 1.2 @@Description:
6723     @@@lang:en
6724     @@@@:
6725     Delete a table row from this table row group.
6726 wakaba 1.1 @@Param:
6727     @@@Name: index
6728     @@@Type:
6729     DOMMain:long
6730 wakaba 1.2 @@@Description:
6731     @@@@lang:en
6732     @@@@@:
6733     The ordinal index of the row to delete, starting
6734 wakaba 1.15 from <DOM::0> and relative
6735 wakaba 1.2 only to the rows contained inside this row group.
6736     @@@InCase:
6737     @@@@Value:-1
6738     @@@@Description:
6739     @@@@@lang:en
6740     @@@@@@:
6741     Delete the last row.
6742 wakaba 1.3 @@@@SpecLevel:2
6743 wakaba 1.1 @@Return:
6744     @@@Exception:
6745 wakaba 1.2 @@@@Name: INDEX_SIZE_ERR
6746 wakaba 1.1 @@@@Type:
6747     DOMCore:DOMException
6748 wakaba 1.2 @@@@SubType:
6749     @@@@@QName:
6750     TODO: What?
6751     @@@@@Description:
6752     @@@@@@lang:en
6753     @@@@@@@:
6754 wakaba 1.15 The <P::index> is greater than or equal to
6755     the number of rows or the <P::index> is less
6756     than <DOM::-1>.
6757 wakaba 1.3 @@@@SpecLevel:2
6758     @@@@ImplNote:
6759     @@@@@lang:en
6760     @@@@@@:
6761 wakaba 1.15 <SRC::DOM Level 1 Second Edition HTML, DOM Level 2 HTML>
6762     (<P::index> cannot <DOM::-1> in DOM Level 1.)
6763 wakaba 1.1 @@Level[list]:
6764     1
6765     2
6766     @@SpecLevel[list]:
6767     1
6768     2
6769 wakaba 1.17 ##HTMLTableSectionElement
6770 wakaba 1.2
6771 wakaba 1.17 IfCls12ETDef:
6772 wakaba 1.4 @ETQName:
6773     xhtml1:tr
6774     @IFQName: HTMLTableRowElement
6775     @ClsQName:ManakaiDOMHTMLTableRowElement
6776     @ISAHTMLElement:
6777    
6778 wakaba 1.1 @Attr:
6779     @@Name: rowIndex
6780 wakaba 1.2 @@Description:
6781     @@@lang:en
6782     @@@@:
6783 wakaba 1.15 The ordinal index of the row, starting from <DOM::0>,
6784 wakaba 1.2 in the logical order (not the document order).
6785     \
6786     {NOTE:: The logical order take row groups into account;
6787 wakaba 1.15 placing <HE::thead> rows first, followed by
6788     <HE::tbody> rows, followed by <HE::tfoot> rows.
6789 wakaba 1.2 \
6790     }
6791 wakaba 1.1 @@Get:
6792     @@@Type:
6793     DOMMain:long
6794 wakaba 1.3 @@ImplNote:
6795     @@@lang:en
6796     @@@@:
6797     Writable in DOM Level 1 FE, with no description -
6798     fixed in the Errata.
6799 wakaba 1.1 @@Level[list]:
6800 wakaba 1.2 1
6801 wakaba 1.1 @@SpecLevel[list]:
6802 wakaba 1.2 1
6803 wakaba 1.1 2
6804     @Attr:
6805     @@Name: sectionRowIndex
6806 wakaba 1.2 @@Description:
6807     @@@lang:en
6808     @@@@:
6809 wakaba 1.15 The ordinal index of this row, starting from <DOM::0>
6810 wakaba 1.2 and relative to this row group.
6811 wakaba 1.1 @@Get:
6812     @@@Type:
6813     DOMMain:long
6814 wakaba 1.3 @@ImplNote:
6815     @@@lang:en
6816     @@@@:
6817     Writable in DOM Level 1 FE, with no description.
6818 wakaba 1.1 @@Level[list]:
6819 wakaba 1.2 1
6820 wakaba 1.1 @@SpecLevel[list]:
6821 wakaba 1.2 1
6822 wakaba 1.1 2
6823     @Attr:
6824     @@Name: cells
6825 wakaba 1.2 @@Description:
6826     @@@lang:en
6827     @@@@:The collection of cells in this row.
6828 wakaba 1.1 @@Get:
6829     @@@Type: HTMLCollection
6830 wakaba 1.3 @@ImplNote:
6831     @@@lang:en
6832     @@@@:
6833     Writable in DOM Level 1 FE, with no description.
6834 wakaba 1.1 @@Level[list]:
6835 wakaba 1.2 1
6836 wakaba 1.1 @@SpecLevel[list]:
6837 wakaba 1.2 1
6838 wakaba 1.1 2
6839 wakaba 1.4 @ATTR:
6840 wakaba 1.1 @@Name: align
6841 wakaba 1.11 @@ReflectEnum:
6842 wakaba 1.1 @@Get:
6843     @@Set:
6844 wakaba 1.4 @ATTR:
6845     @@AName:bgcolor
6846     @@DOMAName: bgColor
6847 wakaba 1.17 @@plAName: bgcolor
6848 wakaba 1.4 @@Deprecated:
6849 wakaba 1.11 @@ReflectCDATA:
6850 wakaba 1.1 @@Get:
6851     @@Set:
6852 wakaba 1.4 @ATTR:
6853     @@AName:char
6854     @@DOMAName: ch
6855 wakaba 1.17 @@plAName: char
6856 wakaba 1.11 @@ReflectCDATA:
6857 wakaba 1.1 @@Get:
6858     @@Set:
6859 wakaba 1.4 @ATTR:
6860     @@AName:charoff
6861     @@DOMAName: chOff
6862 wakaba 1.17 @@plAName: charoff
6863 wakaba 1.11 @@ReflectCDATA:
6864 wakaba 1.1 @@Get:
6865     @@Set:
6866 wakaba 1.4 @ATTR:
6867     @@AName:valign
6868     @@DOMAName: vAlign
6869 wakaba 1.17 @@plAName: valign
6870 wakaba 1.11 @@ReflectEnum:
6871 wakaba 1.1 @@Get:
6872     @@Set:
6873     @Method:
6874     @@Name: insertCell
6875 wakaba 1.2 @@Description:
6876     @@@lang:en
6877     @@@@:
6878 wakaba 1.15 Insert an empty data cell (<HE::td>) into this row.
6879 wakaba 1.1 @@Param:
6880     @@@Name: index
6881     @@@Type:
6882     DOMMain:long
6883 wakaba 1.2 @@@Description:
6884     @@@@lang:en
6885     @@@@@:
6886     The index where the new cell is inserted, starting
6887 wakaba 1.15 from <DOM::0>.
6888 wakaba 1.2 @@@InCase:
6889     @@@@Value:-1
6890     @@@@Description:
6891     @@@@@lang:en
6892     @@@@@@:The new cell is appended.
6893 wakaba 1.3 @@@@SpecLevel:2
6894 wakaba 1.2 @@@InCase:
6895     @@@@Label:
6896     @@@@@lang:en
6897     @@@@@@:The number of cells
6898     @@@@Description:
6899     @@@@@lang:en
6900     @@@@@@:The new cell is appended.
6901 wakaba 1.3 @@@@SpecLevel:2
6902 wakaba 1.1 @@Return:
6903     @@@Type: HTMLElement
6904 wakaba 1.2 @@@Description:
6905     @@@@lang:en
6906     @@@@@:The newly inserted cell.
6907 wakaba 1.1 @@@Exception:
6908 wakaba 1.2 @@@@Name: INDEX_SIZE_ERR
6909 wakaba 1.1 @@@@Type:
6910     DOMCore:DOMException
6911 wakaba 1.2 @@@@SubType:
6912     @@@@@QName:
6913     TODO: What?
6914     @@@@@Description:
6915     @@@@@@lang:en
6916     @@@@@@@:
6917 wakaba 1.15 The <P::index> is greater than the number of
6918     cells or less than <DOM::-1>.
6919 wakaba 1.3 @@@@SpecLevel:2
6920     @@@@ImplNote:
6921     @@@@@lang:en
6922     @@@@@@:
6923 wakaba 1.15 <SRC::DOM Level 1 Second Edition HTML, DOM Level 2 HTML>
6924     (<P::index> cannot <DOM::-1> in DOM Level 1.)
6925 wakaba 1.1 @@Level[list]:
6926     1
6927     2
6928     @@SpecLevel[list]:
6929     1
6930     2
6931     @Method:
6932     @@Name: deleteCell
6933 wakaba 1.2 @@Description:
6934     @@@lang:en
6935     @@@@:Delete a cell from this row.
6936 wakaba 1.1 @@Param:
6937     @@@Name: index
6938     @@@Type:
6939     DOMMain:long
6940 wakaba 1.2 @@@Description:
6941     @@@@lang:en
6942     @@@@@:
6943 wakaba 1.15 The index of the cell to delete, starting from <DOM::0>
6944 wakaba 1.2 and in the document order.
6945     @@@InCase:
6946     @@@@Value:-1
6947     @@@@Description:
6948     @@@@@lang:en
6949     @@@@@@:
6950     The last cell is deleted.
6951 wakaba 1.3 @@@@SpecLevel:2
6952 wakaba 1.1 @@Return:
6953     @@@Exception:
6954 wakaba 1.2 @@@@Name: INDEX_SIZE_ERR
6955 wakaba 1.1 @@@@Type:
6956     DOMCore:DOMException
6957 wakaba 1.2 @@@@SubType:
6958     @@@@@QName:
6959     TODO: What?
6960     @@@@@Description:
6961     @@@@@@lang:en
6962     @@@@@@@:
6963 wakaba 1.15 THe <P::index> is greater than or equal to the number
6964     of the cells or less than <DOM::-1>.
6965 wakaba 1.3 @@@@SpecLevel:2
6966     @@@@ImplNote:
6967     @@@@@lang:en
6968     @@@@@@:
6969 wakaba 1.15 <SRC::DOM Level 1 Second Edition HTML, DOM Level 2 HTML>
6970     (<P::index> cannot <DOM::-1> in DOM Level 1.)
6971 wakaba 1.1 @@Level[list]:
6972     1
6973     2
6974     @@SpecLevel[list]:
6975     1
6976     2
6977 wakaba 1.17 ##HTMLTableRowElement
6978 wakaba 1.2
6979 wakaba 1.4 ForDef:
6980     @QName:
6981     DOMHTML:ForTd
6982 wakaba 1.17 @ISA: DOMHTML|ForAnET
6983 wakaba 1.4 ForDef:
6984     @QName:
6985     DOMHTML:ForTh
6986 wakaba 1.17 @ISA: DOMHTML|ForAnET
6987 wakaba 1.4
6988 wakaba 1.18 IfCls1ETsDef:
6989 wakaba 1.4 @rdf:type:
6990     @@@:
6991     dis:MultipleResource
6992     @@For:ForHTML
6993     @@ForCheck:
6994     !ManakaiDOM:ForIF !ManakaiDOM:ForClass
6995     !ForTd !ForTh
6996     @resourceFor:
6997     @@@: ForTd
6998     @@For:ForHTML
6999     @resourceFor:
7000     @@@:ForTh
7001     @@For:ForHTML
7002     @rdf:type:
7003     @@@:
7004     s:ElementType
7005 wakaba 1.17 @@ForCheck: ForAnET
7006 wakaba 1.4
7007     @ETQName:
7008     @@@:
7009     xhtml1:td
7010     @@ForCheck:ForTd
7011     @ETQName:
7012     @@@:
7013 wakaba 1.2 xhtml1:th
7014 wakaba 1.4 @@ForCheck:ForTh
7015 wakaba 1.8
7016     @elementType:
7017     @@@: ||ForHTML40SE||ForTh
7018     @@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
7019     @@ContentType: DISCore|TFPQNames
7020     @elementType:
7021     @@@: ||ForHTML401||ForTh
7022     @@ForCheck: ManakaiDOM|DOM2
7023     @@ContentType: DISCore|TFPQNames
7024     @elementType:
7025     @@@: ||ForXHTML10SE||ForTh
7026     @@ForCheck: ManakaiDOM|DOM2
7027     @@ContentType: DISCore|TFPQNames
7028    
7029     @elementType:
7030     @@@: ||ForHTML40SE||ForTd
7031     @@ForCheck: ManakaiDOM|DOM1 !ManakaiDOM|DOM2
7032     @@ContentType: DISCore|TFPQNames
7033     @elementType:
7034     @@@: ||ForHTML401||ForTd
7035     @@ForCheck: ManakaiDOM|DOM2
7036     @@ContentType: DISCore|TFPQNames
7037     @elementType:
7038     @@@: ||ForXHTML10SE||ForTd
7039     @@ForCheck: ManakaiDOM|DOM2
7040     @@ContentType: DISCore|TFPQNames
7041 wakaba 1.4
7042     @IFQName: HTMLTableCellElement
7043     @ClsQName:ManakaiDOMHTMLTableCellElement
7044     @ISAHTMLElement:
7045    
7046 wakaba 1.1 @Attr:
7047     @@Name: cellIndex
7048 wakaba 1.2 @@Description:
7049     @@@lang:en
7050     @@@@:
7051     The ordinal index of this cell in the row,
7052 wakaba 1.15 starting from <DOM::0> and in the document order
7053 wakaba 1.2 (not the display order).
7054 wakaba 1.1 @@Get:
7055     @@@Type:
7056     DOMMain:long
7057 wakaba 1.3 @@ImplNote:
7058     @@@lang:en
7059     @@@@:
7060     Writable in DOM Level 1 FE - fixed in the Errata.
7061 wakaba 1.11 @Attrs:
7062 wakaba 1.1 @@Name: abbr
7063 wakaba 1.11 @@ReflectCDATA:
7064 wakaba 1.1 @@Get:
7065     @@Set:
7066 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForTh
7067     @@docAttrP2S: ||ForHTML401||ForTh
7068     @@docAttrP2X: ||ForXHTML10SE||ForTh
7069     @@docAttrP1S: ||ForHTML40SE||ForTd
7070     @@docAttrP2S: ||ForHTML401||ForTd
7071     @@docAttrP2X: ||ForXHTML10SE||ForTd
7072     @Attrs:
7073 wakaba 1.1 @@Name: align
7074 wakaba 1.11 @@ReflectEnum:
7075 wakaba 1.1 @@Get:
7076     @@Set:
7077 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForTh
7078     @@docAttrP2S: ||ForHTML401||ForTh
7079     @@docAttrP2X: ||ForXHTML10SE||ForTh
7080     @@docAttrP1S: ||ForHTML40SE||ForTd
7081     @@docAttrP2S: ||ForHTML401||ForTd
7082     @@docAttrP2X: ||ForXHTML10SE||ForTd
7083     @Attrs:
7084 wakaba 1.1 @@Name: axis
7085 wakaba 1.11 @@ReflectCDATA:
7086 wakaba 1.1 @@Get:
7087     @@Set:
7088 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForTh
7089     @@docAttrP2S: ||ForHTML401||ForTh
7090     @@docAttrP2X: ||ForXHTML10SE||ForTh
7091     @@docAttrP1S: ||ForHTML40SE||ForTd
7092     @@docAttrP2S: ||ForHTML401||ForTd
7093     @@docAttrP2X: ||ForXHTML10SE||ForTd
7094     @Attrs:
7095 wakaba 1.4 @@AName:bgcolor
7096     @@DOMAName: bgColor
7097 wakaba 1.17 @@plAName: bgcolor
7098 wakaba 1.4 @@Deprecated:
7099 wakaba 1.11 @@ReflectCDATA:
7100 wakaba 1.1 @@Get:
7101     @@Set:
7102 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForTh
7103     @@docAttrP2S: ||ForHTML401||ForTh
7104     @@docAttrP2X: ||ForXHTML10SE||ForTh
7105     @@docAttrP1S: ||ForHTML40SE||ForTd
7106     @@docAttrP2S: ||ForHTML401||ForTd
7107     @@docAttrP2X: ||ForXHTML10SE||ForTd
7108     @Attrs:
7109 wakaba 1.4 @@AName:char
7110     @@DOMAName: ch
7111 wakaba 1.17 @@plAName: char
7112 wakaba 1.11 @@ReflectCDATA:
7113 wakaba 1.1 @@Get:
7114     @@Set:
7115 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForTh
7116     @@docAttrP2S: ||ForHTML401||ForTh
7117     @@docAttrP2X: ||ForXHTML10SE||ForTh
7118     @@docAttrP1S: ||ForHTML40SE||ForTd
7119     @@docAttrP2S: ||ForHTML401||ForTd
7120     @@docAttrP2X: ||ForXHTML10SE||ForTd
7121     @Attrs:
7122 wakaba 1.4 @@AName:charoff
7123     @@DOMAName: chOff
7124 wakaba 1.17 @@plAName: charoff
7125 wakaba 1.11 @@ReflectCDATA:
7126 wakaba 1.1 @@Get:
7127     @@Set:
7128 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForTh
7129     @@docAttrP2S: ||ForHTML401||ForTh
7130     @@docAttrP2X: ||ForXHTML10SE||ForTh
7131     @@docAttrP1S: ||ForHTML40SE||ForTd
7132     @@docAttrP2S: ||ForHTML401||ForTd
7133     @@docAttrP2X: ||ForXHTML10SE||ForTd
7134     @Attrs:
7135 wakaba 1.4 @@AName:colspan
7136     @@DOMAName: colSpan
7137 wakaba 1.17 @@plAName: colspan
7138 wakaba 1.11 @@ReflectNumeric:
7139 wakaba 1.1 @@Get:
7140     @@Set:
7141 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForTh
7142     @@docAttrP2S: ||ForHTML401||ForTh
7143     @@docAttrP2X: ||ForXHTML10SE||ForTh
7144     @@docAttrP1S: ||ForHTML40SE||ForTd
7145     @@docAttrP2S: ||ForHTML401||ForTd
7146     @@docAttrP2X: ||ForXHTML10SE||ForTd
7147     @Attrs:
7148 wakaba 1.1 @@Name: headers
7149 wakaba 1.11 @@ReflectCDATA:
7150 wakaba 1.1 @@Get:
7151     @@Set:
7152 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForTh
7153     @@docAttrP2S: ||ForHTML401||ForTh
7154     @@docAttrP2X: ||ForXHTML10SE||ForTh
7155     @@docAttrP1S: ||ForHTML40SE||ForTd
7156     @@docAttrP2S: ||ForHTML401||ForTd
7157     @@docAttrP2X: ||ForXHTML10SE||ForTd
7158     @Attrs:
7159 wakaba 1.1 @@Name: height
7160 wakaba 1.4 @@Deprecated:
7161 wakaba 1.11 @@ReflectCDATA:
7162 wakaba 1.1 @@Get:
7163     @@Set:
7164 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForTh
7165     @@docAttrP2S: ||ForHTML401||ForTh
7166     @@docAttrP2X: ||ForXHTML10SE||ForTh
7167     @@docAttrP1S: ||ForHTML40SE||ForTd
7168     @@docAttrP2S: ||ForHTML401||ForTd
7169     @@docAttrP2X: ||ForXHTML10SE||ForTd
7170     @Attrs:
7171 wakaba 1.4 @@AName:nowrap
7172     @@DOMAName: noWrap
7173 wakaba 1.17 @@plAName: nowrap
7174 wakaba 1.4 @@Deprecated:
7175 wakaba 1.11 @@ReflectBoolean:
7176 wakaba 1.1 @@Get:
7177     @@@InCase:
7178     @@@@Value: true
7179     @@@InCase:
7180     @@@@Value: false
7181     @@Set:
7182     @@@InCase:
7183     @@@@Value: true
7184     @@@InCase:
7185     @@@@Value: false
7186 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForTh
7187     @@docAttrP2S: ||ForHTML401||ForTh
7188     @@docAttrP2X: ||ForXHTML10SE||ForTh
7189     @@docAttrP1S: ||ForHTML40SE||ForTd
7190     @@docAttrP2S: ||ForHTML401||ForTd
7191     @@docAttrP2X: ||ForXHTML10SE||ForTd
7192     @Attrs:
7193 wakaba 1.4 @@AName:rowspan
7194     @@DOMAName: rowSpan
7195 wakaba 1.17 @@plAName: rowspan
7196 wakaba 1.11 @@ReflectNumeric:
7197 wakaba 1.1 @@Get:
7198     @@Set:
7199 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForTh
7200     @@docAttrP2S: ||ForHTML401||ForTh
7201     @@docAttrP2X: ||ForXHTML10SE||ForTh
7202     @@docAttrP1S: ||ForHTML40SE||ForTd
7203     @@docAttrP2S: ||ForHTML401||ForTd
7204     @@docAttrP2X: ||ForXHTML10SE||ForTd
7205     @Attrs:
7206 wakaba 1.1 @@Name: scope
7207 wakaba 1.11 @@ReflectEnum:
7208 wakaba 1.1 @@Get:
7209     @@Set:
7210 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForTh
7211     @@docAttrP2S: ||ForHTML401||ForTh
7212     @@docAttrP2X: ||ForXHTML10SE||ForTh
7213     @@docAttrP1S: ||ForHTML40SE||ForTd
7214     @@docAttrP2S: ||ForHTML401||ForTd
7215     @@docAttrP2X: ||ForXHTML10SE||ForTd
7216     @Attrs:
7217 wakaba 1.4 @@AName:valign
7218     @@DOMAName: vAlign
7219 wakaba 1.17 @@plAName: valign
7220 wakaba 1.11 @@ReflectEnum:
7221 wakaba 1.1 @@Get:
7222     @@Set:
7223 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForTh
7224     @@docAttrP2S: ||ForHTML401||ForTh
7225     @@docAttrP2X: ||ForXHTML10SE||ForTh
7226     @@docAttrP1S: ||ForHTML40SE||ForTd
7227     @@docAttrP2S: ||ForHTML401||ForTd
7228     @@docAttrP2X: ||ForXHTML10SE||ForTd
7229     @Attrs:
7230 wakaba 1.1 @@Name: width
7231 wakaba 1.4 @@Deprecated:
7232 wakaba 1.11 @@ReflectCDATA:
7233 wakaba 1.1 @@Get:
7234     @@Set:
7235 wakaba 1.11 @@docAttrP1S: ||ForHTML40SE||ForTh
7236     @@docAttrP2S: ||ForHTML401||ForTh
7237     @@docAttrP2X: ||ForXHTML10SE||ForTh
7238     @@docAttrP1S: ||ForHTML40SE||ForTd
7239     @@docAttrP2S: ||ForHTML401||ForTd
7240     @@docAttrP2X: ||ForXHTML10SE||ForTd
7241 wakaba 1.17 ##HTMLTableCellElement
7242 wakaba 1.2
7243 wakaba 1.17 IfCls1ETDef:
7244 wakaba 1.4 @ETQName:
7245     xhtml1:frameset
7246     @IFQName: HTMLFrameSetElement
7247     @ClsQName:ManakaiDOMHTMLFrameSetElement
7248     @ISAHTMLElement:
7249    
7250     @ForCheck: !ForXHTML11
7251    
7252     @ATTR:
7253 wakaba 1.1 @@Name: cols
7254 wakaba 1.11 @@ReflectCDATA:
7255 wakaba 1.1 @@Get:
7256     @@Set:
7257 wakaba 1.4 @ATTR:
7258 wakaba 1.1 @@Name: rows
7259 wakaba 1.11 @@ReflectCDATA:
7260 wakaba 1.1 @@Get:
7261     @@Set:
7262 wakaba 1.17 ##HTMLFrameSetElement
7263 wakaba 1.2
7264 wakaba 1.17 IfCls1ETDef:
7265 wakaba 1.4 @ETQName:
7266     xhtml1:frame
7267     @IFQName: HTMLFrameElement
7268     @ClsQName:ManakaiDOMHTMLFrameElement
7269     @ISAHTMLElement:
7270    
7271     @ForCheck: !ForXHTML11
7272    
7273     @ATTR:
7274     @@AName:frameborder
7275     @@DOMAName: frameBorder
7276 wakaba 1.17 @@plAName: frameborder
7277 wakaba 1.11 @@ReflectCDATA:
7278 wakaba 1.1 @@Get:
7279     @@Set:
7280 wakaba 1.4 @ATTR:
7281     @@AName:longdesc
7282     @@DOMAName: longDesc
7283 wakaba 1.17 @@plAName: longdesc
7284 wakaba 1.11 @@ReflectURI:
7285 wakaba 1.1 @@Get:
7286     @@Set:
7287 wakaba 1.4 @ATTR:
7288     @@AName:marginheight
7289     @@DOMAName: marginHeight
7290 wakaba 1.17 @@plAName: marginheight
7291 wakaba 1.11 @@ReflectCDATA:
7292 wakaba 1.1 @@Get:
7293     @@Set:
7294 wakaba 1.4 @ATTR:
7295     @@AName:marginwidth
7296     @@DOMAName: marginWidth
7297 wakaba 1.17 @@plAName: marginwidth
7298 wakaba 1.11 @@ReflectCDATA:
7299 wakaba 1.1 @@Get:
7300     @@Set:
7301 wakaba 1.4 @ATTR:
7302 wakaba 1.1 @@Name: name
7303 wakaba 1.11 @@ReflectCDATA:
7304 wakaba 1.1 @@Get:
7305     @@Set:
7306 wakaba 1.4 @ATTR:
7307     @@AName:noresize
7308     @@DOMAName: noResize
7309 wakaba 1.17 @@plAName: noresize
7310 wakaba 1.11 @@ReflectBoolean:
7311 wakaba 1.1 @@Get:
7312     @@@InCase:
7313     @@@@Value: true
7314     @@@InCase:
7315     @@@@Value: false
7316     @@Set:
7317     @@@InCase:
7318     @@@@Value: true
7319     @@@InCase:
7320     @@@@Value: false
7321 wakaba 1.4 @ATTR:
7322 wakaba 1.1 @@Name: scrolling
7323 wakaba 1.11 @@ReflectEnum:
7324 wakaba 1.1 @@Get:
7325     @@Set:
7326 wakaba 1.4 @ATTR:
7327 wakaba 1.1 @@Name: src
7328 wakaba 1.11 @@ReflectURI:
7329 wakaba 1.1 @@Get:
7330     @@Set:
7331     @Attr:
7332     @@Name: contentDocument
7333 wakaba 1.2 @@Description:
7334     @@@lang:en
7335     @@@@:
7336     The document this frame contains, if any and available.
7337 wakaba 1.1 @@Get:
7338     @@@Type: Document
7339 wakaba 1.2 @@@InCase:
7340     @@@@Value:
7341     @@@@@is-null:1
7342     @@@@Description:
7343     @@@@@lang:en
7344     @@@@@@:
7345     There is no document or it is not available.
7346 wakaba 1.4 @@@Def:
7347     @@@@ContentType:
7348     lang:dis
7349     @@@@GetPropNode:
7350     DOMHTML:contentDocument
7351 wakaba 1.1 @@Level[list]: 2
7352     @@SpecLevel[list]: 2
7353 wakaba 1.4 @@L2:
7354 wakaba 1.17 ##HTMLFrameElement
7355 wakaba 1.2
7356 wakaba 1.17 IfCls1ETDef:
7357 wakaba 1.4 @ETQName:
7358     xhtml1:iframe
7359     @IFQName: HTMLIFrameElement
7360     @ClsQName:ManakaiDOMHTMLIFrameElement
7361     @ISAHTMLElement:
7362    
7363     @ForCheck: !ForXHTML11
7364    
7365     @ATTR:
7366 wakaba 1.1 @@Name: align
7367 wakaba 1.4 @@Deprecated:
7368 wakaba 1.11 @@ReflectEnum:
7369 wakaba 1.1 @@Get:
7370     @@Set:
7371 wakaba 1.4 @ATTR:
7372     @@AName:frameborder
7373     @@DOMAName: frameBorder
7374 wakaba 1.17 @@plAName: frameborder
7375 wakaba 1.11 @@ReflectCDATA:
7376 wakaba 1.1 @@Get:
7377     @@Set:
7378 wakaba 1.4 @ATTR:
7379 wakaba 1.1 @@Name: height
7380 wakaba 1.11 @@ReflectCDATA:
7381 wakaba 1.1 @@Get:
7382     @@Set:
7383 wakaba 1.4 @ATTR:
7384     @@AName:longdesc
7385     @@DOMAName: longDesc
7386 wakaba 1.17 @@plAName: longdesc
7387 wakaba 1.11 @@ReflectURI:
7388 wakaba 1.1 @@Get:
7389     @@Set:
7390 wakaba 1.4 @ATTR:
7391     @@AName:marginheight
7392     @@DOMAName: marginHeight
7393 wakaba 1.17 @@plAName: marginheight
7394 wakaba 1.11 @@ReflectCDATA:
7395 wakaba 1.1 @@Get:
7396     @@Set:
7397 wakaba 1.4 @ATTR:
7398     @@AName:marginwidth
7399     @@DOMAName: marginWidth
7400 wakaba 1.17 @@plAName: marginwidth
7401 wakaba 1.11 @@ReflectCDATA:
7402 wakaba 1.1 @@Get:
7403     @@Set:
7404 wakaba 1.4 @ATTR:
7405 wakaba 1.1 @@Name: name
7406 wakaba 1.11 @@ReflectCDATA:
7407 wakaba 1.1 @@Get:
7408     @@Set:
7409 wakaba 1.4 @ATTR:
7410 wakaba 1.1 @@Name: scrolling
7411 wakaba 1.11 @@ReflectEnum:
7412 wakaba 1.1 @@Get:
7413     @@Set:
7414 wakaba 1.4 @ATTR:
7415 wakaba 1.1 @@Name: src
7416 wakaba 1.11 @@ReflectURI:
7417 wakaba 1.1 @@Get:
7418     @@Set:
7419 wakaba 1.4 @ATTR:
7420 wakaba 1.1 @@Name: width
7421 wakaba 1.11 @@ReflectCDATA:
7422 wakaba 1.1 @@Get:
7423     @@Set:
7424     @Attr:
7425     @@Name: contentDocument
7426 wakaba 1.2 @@Description:
7427     @@@lang:en
7428     @@@@:
7429     The document this frame contains, if any and available.
7430 wakaba 1.1 @@Get:
7431     @@@Type: Document
7432 wakaba 1.2 @@@Description:
7433     @@@@lang:en
7434     @@@@@:
7435     There is no document or it is not available.
7436 wakaba 1.4 @@@Def:
7437     @@@@ContentType:
7438     lang:dis
7439     @@@@GetPropNode:
7440     DOMHTML:contentDocument
7441 wakaba 1.1 @@Level[list]: 2
7442     @@SpecLevel[list]: 2
7443 wakaba 1.4 @@L2:
7444 wakaba 1.17 ##HTMLIFrameElement
7445 wakaba 1.2
7446    

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24