/[suikacvs]/www/test/dom/js-binding/idls/html5-r2321.idl
Suika

Contents of /www/test/dom/js-binding/idls/html5-r2321.idl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Oct 10 11:17:46 2008 UTC (16 years, 9 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
*** empty log message ***

1 interface HTMLCollection {
2 readonly attribute unsigned long length;
3 [IndexGetter] Element item(in unsigned long index);
4 [NameGetter] Element namedItem(in DOMString name);
5 };
6
7 interface HTMLFormControlsCollection {
8 readonly attribute unsigned long length;
9 [IndexGetter] HTMLElement item(in unsigned long index);
10 [NameGetter] Object namedItem(in DOMString name);
11 };
12
13 interface HTMLOptionsCollection {
14 attribute unsigned long length;
15 [IndexGetter] HTMLOptionElement item(in unsigned long index);
16 [NameGetter] Object namedItem(in DOMString name);
17 void add(in HTMLElement element, in HTMLElement before);
18 void add(in HTMLElement element, in long before);
19 void remove(in long index);
20 };
21
22 [Stringifies] interface DOMTokenList {
23 readonly attribute unsigned long length;
24 [IndexGetter] DOMString item(in unsigned long index);
25 boolean has(in DOMString token);
26 void add(in DOMString token);
27 void remove(in DOMString token);
28 boolean toggle(in DOMString token);
29 };
30
31 interface DOMStringMap {
32 [NameGetter] DOMString XXX1(in DOMString name);
33 [NameSetter] void XXX2(in DOMString name, in DOMString value);
34 [XXX] boolean XXX3(in DOMString name);
35 };
36
37 interface HTMLDocument {
38 // resource metadata management
39 [PutForwards=href] readonly attribute Location location;
40 readonly attribute DOMString URL;
41 attribute DOMString domain;
42 readonly attribute DOMString referrer;
43 attribute DOMString cookie;
44 readonly attribute DOMString lastModified;
45 readonly attribute DOMString compatMode;
46 attribute DOMString charset;
47 readonly attribute DOMString characterSet;
48 readonly attribute DOMString defaultCharset;
49 readonly attribute DOMString readyState;
50
51 // DOM tree accessors
52 attribute DOMString title;
53 attribute DOMString dir;
54 attribute HTMLElement body;
55 readonly attribute HTMLCollection images;
56 readonly attribute HTMLCollection embeds;
57 readonly attribute HTMLCollection plugins;
58 readonly attribute HTMLCollection links;
59 readonly attribute HTMLCollection forms;
60 readonly attribute HTMLCollection anchors;
61 readonly attribute HTMLCollection scripts;
62 NodeList getElementsByName(in DOMString elementName);
63 NodeList getElementsByClassName(in DOMString classNames);
64
65 // dynamic markup insertion
66 attribute DOMString innerHTML;
67 HTMLDocument open();
68 HTMLDocument open(in DOMString type);
69 HTMLDocument open(in DOMString type, in DOMString replace);
70 Window open(in DOMString url, in DOMString name, in DOMString features);
71 Window open(in DOMString url, in DOMString name, in DOMString features, in boolean replace);
72 void close();
73 void write([Variadic] in DOMString text);
74 void writeln([Variadic] in DOMString text);
75
76 // user interaction
77 Selection getSelection();
78 readonly attribute Element activeElement;
79 boolean hasFocus();
80 attribute boolean designMode;
81 boolean execCommand(in DOMString commandId);
82 boolean execCommand(in DOMString commandId, in boolean showUI);
83 boolean execCommand(in DOMString commandId, in boolean showUI, in DOMString value);
84 boolean queryCommandEnabled(in DOMString commandId);
85 boolean queryCommandIndeterm(in DOMString commandId);
86 boolean queryCommandState(in DOMString commandId);
87 boolean queryCommandSupported(in DOMString commandId);
88 DOMString queryCommandValue(in DOMString commandId);
89 readonly attribute HTMLCollection commands;
90 };
91
92 interface HTMLElement : Element {
93 // DOM tree accessors
94 NodeList getElementsByClassName(in DOMString classNames);
95
96 // dynamic markup insertion
97 attribute DOMString innerHTML;
98 attribute DOMString outerHTML;
99 void insertAdjacentHTML(in DOMString position, in DOMString text);
100
101 // metadata attributes
102 attribute DOMString id;
103 attribute DOMString title;
104 attribute DOMString lang;
105 attribute DOMString dir;
106 attribute DOMString className;
107 readonly attribute DOMTokenList classList;
108 readonly attribute DOMStringMap dataset;
109
110 // user interaction
111 attribute boolean hidden;
112 void click();
113 void scrollIntoView();
114 void scrollIntoView(in boolean top);
115 attribute long tabIndex;
116 void focus();
117 void blur();
118 attribute boolean draggable;
119 attribute DOMString contentEditable;
120 readonly attribute boolean isContentEditable;
121 attribute HTMLMenuElement contextMenu;
122
123 // styling
124 readonly attribute CSSStyleDeclaration style;
125
126 // event handler DOM attributes
127 attribute EventListener onabort;
128 attribute EventListener onbeforeunload;
129 attribute EventListener onblur;
130 attribute EventListener onchange;
131 attribute EventListener onclick;
132 attribute EventListener oncontextmenu;
133 attribute EventListener ondblclick;
134 attribute EventListener ondrag;
135 attribute EventListener ondragend;
136 attribute EventListener ondragenter;
137 attribute EventListener ondragleave;
138 attribute EventListener ondragover;
139 attribute EventListener ondragstart;
140 attribute EventListener ondrop;
141 attribute EventListener onerror;
142 attribute EventListener onfocus;
143 attribute EventListener onhashchange;
144 attribute EventListener onkeydown;
145 attribute EventListener onkeypress;
146 attribute EventListener onkeyup;
147 attribute EventListener onload;
148 attribute EventListener onmessage;
149 attribute EventListener onmousedown;
150 attribute EventListener onmousemove;
151 attribute EventListener onmouseout;
152 attribute EventListener onmouseover;
153 attribute EventListener onmouseup;
154 attribute EventListener onmousewheel;
155 attribute EventListener onresize;
156 attribute EventListener onscroll;
157 attribute EventListener onselect;
158 attribute EventListener onstorage;
159 attribute EventListener onsubmit;
160 attribute EventListener onunload;
161
162 };
163
164 interface HTMLBaseElement : HTMLElement {
165 attribute DOMString href;
166 attribute DOMString target;
167 };
168
169 interface HTMLLinkElement : HTMLElement {
170 attribute boolean disabled;
171 attribute DOMString href;
172 attribute DOMString rel;
173 readonly attribute DOMTokenList relList;
174 attribute DOMString media;
175 attribute DOMString hreflang;
176 attribute DOMString type;
177 attribute DOMString sizes;
178 };
179
180 interface HTMLMetaElement : HTMLElement {
181 attribute DOMString content;
182 attribute DOMString name;
183 attribute DOMString httpEquiv;
184 };
185
186 interface HTMLStyleElement : HTMLElement {
187 attribute boolean disabled;
188 attribute DOMString media;
189 attribute DOMString type;
190 attribute boolean scoped;
191 };
192
193 interface HTMLScriptElement : HTMLElement {
194 attribute DOMString src;
195 attribute boolean async;
196 attribute boolean defer;
197 attribute DOMString type;
198 attribute DOMString charset;
199 attribute DOMString text;
200 };
201
202 interface HTMLEventSourceElement : HTMLElement {
203 attribute DOMString src;
204 };
205
206 interface HTMLBodyElement : HTMLElement {};
207
208 interface HTMLQuoteElement : HTMLElement {
209 attribute DOMString cite;
210 };
211
212 interface HTMLOListElement : HTMLElement {
213 attribute boolean reversed;
214 attribute long start;
215 };
216
217 interface HTMLLIElement : HTMLElement {
218 attribute long value;
219 };
220
221 [Stringifies=href] interface HTMLAnchorElement : HTMLElement {
222 attribute DOMString href;
223 attribute DOMString target;
224 attribute DOMString ping;
225 attribute DOMString rel;
226 readonly attribute DOMTokenList relList;
227 attribute DOMString media;
228 attribute DOMString hreflang;
229 attribute DOMString type;
230 };
231
232 interface HTMLTimeElement : HTMLElement {
233 attribute DOMString dateTime;
234 readonly attribute DOMTimeStamp date;
235 readonly attribute DOMTimeStamp time;
236 readonly attribute DOMTimeStamp timezone;
237 };
238
239 interface HTMLProgressElement : HTMLElement {
240 attribute float value;
241 attribute float max;
242 readonly attribute float position;
243 };
244
245 interface HTMLMeterElement : HTMLElement {
246 attribute float value;
247 attribute float min;
248 attribute float max;
249 attribute float low;
250 attribute float high;
251 attribute float optimum;
252 };
253
254 interface HTMLModElement : HTMLElement {
255 attribute DOMString cite;
256 attribute DOMString dateTime;
257 };
258
259 [NamedConstructor=Image(),
260 NamedConstructor=Image(in unsigned long width),
261 NamedConstructor=Image(in unsigned long width, in unsigned long height)]
262 interface HTMLImageElement : HTMLElement {
263 attribute DOMString alt;
264 attribute DOMString src;
265 attribute DOMString useMap;
266 attribute boolean isMap;
267 attribute unsigned long width;
268 attribute unsigned long height;
269 readonly attribute boolean complete;
270 };
271
272 interface HTMLIFrameElement : HTMLElement {
273 attribute DOMString src;
274 attribute DOMString name;
275 attribute DOMString sandbox;
276 attribute boolean seamless;
277 attribute unsigned long width;
278 attribute unsigned long height;
279 };
280
281 interface HTMLEmbedElement : HTMLElement {
282 attribute DOMString src;
283 attribute DOMString type;
284 attribute unsigned long width;
285 attribute unsigned long height;
286 };
287
288 interface HTMLObjectElement : HTMLElement {
289 attribute DOMString data;
290 attribute DOMString type;
291 attribute DOMString name;
292 attribute DOMString useMap;
293 attribute unsigned long width;
294 attribute unsigned long height;
295 };
296
297 interface HTMLParamElement : HTMLElement {
298 attribute DOMString name;
299 attribute DOMString value;
300 };
301
302 interface HTMLVideoElement : HTMLMediaElement {
303 attribute unsigned long width;
304 attribute unsigned long height;
305 readonly attribute unsigned long videoWidth;
306 readonly attribute unsigned long videoHeight;
307 attribute DOMString poster;
308 };
309
310 [NamedConstructor=Audio(),
311 NamedConstructor=Audio(in DOMString url)]
312 interface HTMLAudioElement : HTMLMediaElement {
313 // no members
314 };
315
316 interface HTMLSourceElement : HTMLElement {
317 attribute DOMString src;
318 attribute DOMString type;
319 attribute DOMString media;
320 attribute float pixelRatio;
321 };
322
323 interface HTMLMediaElement : HTMLElement {
324
325 // error state
326 readonly attribute MediaError error;
327
328 // network state
329 attribute DOMString src;
330 readonly attribute DOMString currentSrc;
331 const unsigned short EMPTY = 0;
332 const unsigned short LOADING = 1;
333 const unsigned short LOADED_METADATA = 2;
334 const unsigned short LOADED_FIRST_FRAME = 3;
335 const unsigned short LOADED = 4;
336 readonly attribute unsigned short networkState;
337 readonly attribute float bufferingRate;
338 readonly attribute boolean bufferingThrottled;
339 readonly attribute TimeRanges buffered;
340 readonly attribute ByteRanges bufferedBytes;
341 readonly attribute unsigned long totalBytes;
342 void load();
343
344 // ready state
345 const unsigned short DATA_UNAVAILABLE = 0;
346 const unsigned short CAN_SHOW_CURRENT_FRAME = 1;
347 const unsigned short CAN_PLAY = 2;
348 const unsigned short CAN_PLAY_THROUGH = 3;
349 readonly attribute unsigned short readyState;
350 readonly attribute boolean seeking;
351
352 // playback state
353 attribute float currentTime;
354 readonly attribute float duration;
355 readonly attribute boolean paused;
356 attribute float defaultPlaybackRate;
357 attribute float playbackRate;
358 readonly attribute TimeRanges played;
359 readonly attribute TimeRanges seekable;
360 readonly attribute boolean ended;
361 attribute boolean autoplay;
362 void play();
363 void pause();
364
365 // looping
366 attribute float start;
367 attribute float end;
368 attribute float loopStart;
369 attribute float loopEnd;
370 attribute unsigned long playCount;
371 attribute unsigned long currentLoop;
372
373 // cue ranges
374 void addCueRange(in DOMString className, in DOMString id, in float start, in float end, in boolean pauseOnExit, in CueRangeCallback enterCallback, in CueRangeCallback exitCallback);
375 void removeCueRanges(in DOMString className);
376
377 // controls
378 attribute boolean controls;
379 attribute float volume;
380 attribute boolean muted;
381 };
382
383 interface MediaError {
384 const unsigned short MEDIA_ERR_ABORTED = 1;
385 const unsigned short MEDIA_ERR_NETWORK = 2;
386 const unsigned short MEDIA_ERR_DECODE = 3;
387 readonly attribute unsigned short code;
388 };
389
390 interface VoidCallback {
391 void handleEvent();
392 };
393
394 interface CueRangeCallback {
395 void handleEvent(in DOMString id);
396 };
397
398 interface TimeRanges {
399 readonly attribute unsigned long length;
400 float start(in unsigned long index);
401 float end(in unsigned long index);
402 };
403
404 interface ByteRanges {
405 readonly attribute unsigned long length;
406 unsigned long start(in unsigned long index);
407 unsigned long end(in unsigned long index);
408 };
409
410 interface HTMLCanvasElement : HTMLElement {
411 attribute unsigned long width;
412 attribute unsigned long height;
413
414 DOMString toDataURL();
415 DOMString toDataURL(in DOMString type, [Variadic] in any args);
416
417 DOMObject getContext(in DOMString contextId);
418 };
419
420 interface CanvasRenderingContext2D {
421
422 // back-reference to the canvas
423 readonly attribute HTMLCanvasElement canvas;
424
425 // state
426 void save(); // push state on state stack
427 void restore(); // pop state stack and restore state
428
429 // transformations (default transform is the identity matrix)
430 void scale(in float x, in float y);
431 void rotate(in float angle);
432 void translate(in float x, in float y);
433 void transform(in float m11, in float m12, in float m21, in float m22, in float dx, in float dy);
434 void setTransform(in float m11, in float m12, in float m21, in float m22, in float dx, in float dy);
435
436 // compositing
437 attribute float globalAlpha; // (default 1.0)
438 attribute DOMString globalCompositeOperation; // (default source-over)
439
440 // colors and styles
441 attribute DOMObject strokeStyle; // (default black)
442 attribute DOMObject fillStyle; // (default black)
443 CanvasGradient createLinearGradient(in float x0, in float y0, in float x1, in float y1);
444 CanvasGradient createRadialGradient(in float x0, in float y0, in float r0, in float x1, in float y1, in float r1);
445 CanvasPattern createPattern(in HTMLImageElement image, in DOMString repetition);
446 CanvasPattern createPattern(in HTMLCanvasElement image, in DOMString repetition);
447
448 // line caps/joins
449 attribute float lineWidth; // (default 1)
450 attribute DOMString lineCap; // "butt", "round", "square" (default "butt")
451 attribute DOMString lineJoin; // "round", "bevel", "miter" (default "miter")
452 attribute float miterLimit; // (default 10)
453
454 // shadows
455 attribute float shadowOffsetX; // (default 0)
456 attribute float shadowOffsetY; // (default 0)
457 attribute float shadowBlur; // (default 0)
458 attribute DOMString shadowColor; // (default transparent black)
459
460 // rects
461 void clearRect(in float x, in float y, in float w, in float h);
462 void fillRect(in float x, in float y, in float w, in float h);
463 void strokeRect(in float x, in float y, in float w, in float h);
464
465 // path API
466 void beginPath();
467 void closePath();
468 void moveTo(in float x, in float y);
469 void lineTo(in float x, in float y);
470 void quadraticCurveTo(in float cpx, in float cpy, in float x, in float y);
471 void bezierCurveTo(in float cp1x, in float cp1y, in float cp2x, in float cp2y, in float x, in float y);
472 void arcTo(in float x1, in float y1, in float x2, in float y2, in float radius);
473 void rect(in float x, in float y, in float w, in float h);
474 void arc(in float x, in float y, in float radius, in float startAngle, in float endAngle, in boolean anticlockwise);
475 void fill();
476 void stroke();
477 void clip();
478 boolean isPointInPath(in float x, in float y);
479
480 // text
481 attribute DOMString font; // (default 10px sans-serif)
482 attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start")
483 attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic", "ideographic", "bottom" (default: "alphabetic")
484 void fillText(in DOMString text, in float x, in float y);
485 void fillText(in DOMString text, in float x, in float y, in float maxWidth);
486 void strokeText(in DOMString text, in float x, in float y);
487 void strokeText(in DOMString text, in float x, in float y, in float maxWidth);
488 TextMetrics measureText(in DOMString text);
489
490 // drawing images
491 void drawImage(in HTMLImageElement image, in float dx, in float dy);
492 void drawImage(in HTMLImageElement image, in float dx, in float dy, in float dw, in float dh);
493 void drawImage(in HTMLImageElement image, in float sx, in float sy, in float sw, in float sh, in float dx, in float dy, in float dw, in float dh);
494 void drawImage(in HTMLCanvasElement image, in float dx, in float dy);
495 void drawImage(in HTMLCanvasElement image, in float dx, in float dy, in float dw, in float dh);
496 void drawImage(in HTMLCanvasElement image, in float sx, in float sy, in float sw, in float sh, in float dx, in float dy, in float dw, in float dh);
497
498 // pixel manipulation
499 ImageData createImageData(in float sw, in float sh);
500 ImageData getImageData(in float sx, in float sy, in float sw, in float sh);
501 void putImageData(in ImageData imagedata, in float dx, in float dy);
502 void putImageData(in ImageData imagedata, in float dx, in float dy, in float dirtyX, in float dirtyY, in float dirtyWidth, in float dirtyHeight);
503 };
504
505 interface CanvasGradient {
506 // opaque object
507 void addColorStop(in float offset, in DOMString color);
508 };
509
510 interface CanvasPattern {
511 // opaque object
512 };
513
514 interface TextMetrics {
515 readonly attribute float width;
516 };
517
518 interface ImageData {
519 readonly attribute unsigned long int width;
520 readonly attribute unsigned long int height;
521 readonly attribute CanvasPixelArray data;
522 };
523
524 interface CanvasPixelArray {
525 readonly attribute unsigned long length;
526 [IndexGetter] octet XXX5(in unsigned long index);
527 [IndexSetter] void XXX6(in unsigned long index, in octet value);
528 };
529
530 interface HTMLMapElement : HTMLElement {
531 attribute DOMString name;
532 readonly attribute HTMLCollection areas;
533 readonly attribute HTMLCollection images;
534 };
535
536 interface HTMLAreaElement : HTMLElement {
537 attribute DOMString alt;
538 attribute DOMString coords;
539 attribute DOMString shape;
540 attribute DOMString href;
541 attribute DOMString target;
542 attribute DOMString ping;
543 attribute DOMString rel;
544 readonly attribute DOMTokenList relList;
545 attribute DOMString media;
546 attribute DOMString hreflang;
547 attribute DOMString type;
548 };
549
550 interface HTMLTableElement : HTMLElement {
551 attribute HTMLTableCaptionElement caption;
552 HTMLElement createCaption();
553 void deleteCaption();
554 attribute HTMLTableSectionElement tHead;
555 HTMLElement createTHead();
556 void deleteTHead();
557 attribute HTMLTableSectionElement tFoot;
558 HTMLElement createTFoot();
559 void deleteTFoot();
560 readonly attribute HTMLCollection tBodies;
561 HTMLElement createTBody();
562 readonly attribute HTMLCollection rows;
563 HTMLElement insertRow(in long index);
564 void deleteRow(in long index);
565 };
566
567 interface HTMLTableColElement : HTMLElement {
568 attribute unsigned long span;
569 };
570
571 interface HTMLTableSectionElement : HTMLElement {
572 readonly attribute HTMLCollection rows;
573 HTMLElement insertRow(in long index);
574 void deleteRow(in long index);
575 };
576
577 interface HTMLTableRowElement : HTMLElement {
578 readonly attribute long rowIndex;
579 readonly attribute long sectionRowIndex;
580 readonly attribute HTMLCollection cells;
581 HTMLElement insertCell(in long index);
582 void deleteCell(in long index);
583 };
584
585 interface HTMLTableDataCellElement : HTMLTableCellElement {
586 attribute DOMString headers;
587 };
588
589 interface HTMLTableHeaderCellElement : HTMLTableCellElement {
590 attribute DOMString scope;
591 };
592
593 interface HTMLTableCellElement : HTMLElement {
594 attribute long colSpan;
595 attribute long rowSpan;
596 readonly attribute long cellIndex;
597 };
598
599 interface HTMLFormElement : HTMLElement {
600 attribute DOMString accept-charset;
601 attribute DOMString action;
602 attribute DOMString enctype;
603 attribute DOMString method;
604 attribute DOMString name;
605 attribute DOMString target;
606
607 readonly attribute HTMLFormControlsCollection elements;
608 readonly attribute long length;
609 [IndexGetter] HTMLElement XXX7(in unsigned long index);
610 [NameGetter] Object XXX8(in DOMString name);
611
612 void submit();
613 void reset();
614 boolean checkValidity();
615
616 void dispatchFormInput();
617 void dispatchFormChange();
618 };
619
620 interface HTMLFieldSetElement : HTMLElement {
621 attribute boolean disabled;
622 readonly attribute HTMLFormElement form;
623 attribute DOMString name;
624
625 readonly attribute DOMString type;
626
627 readonly attribute HTMLFormControlsCollection elements;
628
629 readonly attribute boolean willValidate;
630 readonly attribute ValidityState validity;
631 readonly attribute DOMString validationMessage;
632 boolean checkValidity();
633 void setCustomValidity(in DOMString error);
634 };
635
636 interface HTMLLabelElement : HTMLElement {
637 readonly attribute HTMLFormElement form;
638 attribute DOMString htmlFor;
639 readonly attribute HTMLElement control;
640 };
641
642 interface HTMLInputElement : HTMLElement {
643 attribute DOMString accept;
644 attribute DOMString action;
645 attribute DOMString alt;
646 attribute boolean autocomplete;
647 attribute boolean autofocus;
648 attribute boolean defaultChecked;
649 attribute boolean checked;
650 attribute boolean disabled;
651 attribute DOMString enctype;
652 readonly attribute HTMLFormElement form;
653 readonly attribute HTMLElement list;
654 attribute DOMString max;
655 attribute long maxLength;
656 attribute DOMString method;
657 attribute DOMString min;
658 attribute DOMString name;
659 attribute DOMString pattern;
660 attribute boolean readOnly;
661 attribute boolean required;
662 attribute unsigned long size;
663 attribute DOMString src;
664 attribute DOMString step;
665 attribute DOMString target;
666 attribute DOMString type;
667 attribute DOMString defaultValue;
668 attribute DOMString value;
669 attribute DOMTimeStamp valueAsDate;
670 attribute float valueAsNumber;
671 readonly attribute HTMLOptionElement selectedOption;
672
673 void stepUp(in int n);
674 void stepDown(in int n);
675
676 readonly attribute boolean willValidate;
677 readonly attribute ValidityState validity;
678 readonly attribute DOMString validationMessage;
679 boolean checkValidity();
680 void setCustomValidity(in DOMString error);
681
682 readonly attribute NodeList labels;
683 };
684
685 interface HTMLButtonElement : HTMLElement {
686 attribute DOMString action;
687 attribute boolean autofocus;
688 attribute boolean disabled;
689 attribute DOMString enctype;
690 readonly attribute HTMLFormElement form;
691 attribute DOMString method;
692 attribute DOMString name;
693 attribute DOMString target;
694 attribute DOMString type;
695 attribute DOMString value;
696
697 readonly attribute boolean willValidate;
698 readonly attribute ValidityState validity;
699 readonly attribute DOMString validationMessage;
700 boolean checkValidity();
701 void setCustomValidity(in DOMString error);
702
703 readonly attribute NodeList labels;
704 };
705
706 interface HTMLSelectElement : HTMLElement {
707 attribute boolean autofocus;
708 attribute boolean disabled;
709 readonly attribute HTMLFormElement form;
710 attribute boolean multiple;
711 attribute DOMString name;
712 attribute boolean size;
713
714 readonly attribute DOMString type;
715
716 readonly attribute HTMLOptionsCollection options;
717 attribute unsigned long length;
718 [IndexGetter] HTMLElement XXX9(in unsigned long index);
719 void add(in HTMLElement element, in HTMLElement before);
720 void add(in HTMLElement element, in long before);
721 void remove(in long index);
722
723 readonly attribute HTMLCollection selectedOptions;
724 attribute long selectedIndex;
725 attribute DOMString value;
726
727 readonly attribute boolean willValidate;
728 readonly attribute ValidityState validity;
729 readonly attribute DOMString validationMessage;
730 boolean checkValidity();
731 void setCustomValidity(in DOMString error);
732
733 readonly attribute NodeList labels;
734 };
735
736 interface HTMLDataListElement : HTMLElement {
737 readonly attribute HTMLCollection options;
738 };
739
740 interface HTMLOptGroupElement : HTMLElement {
741 attribute boolean disabled;
742 attribute DOMString label;
743 };
744
745 [Constructor(),
746 Constructor(in DOMString text),
747 Constructor(in DOMString text, in DOMString value),
748 Constructor(in DOMString text, in DOMString value, in boolean defaultSelected)]
749 interface HTMLOptionElement : HTMLElement {
750 attribute boolean disabled;
751 readonly attribute HTMLFormElement form;
752 attribute DOMString label;
753 attribute boolean defaultSelected;
754 attribute boolean selected;
755 attribute DOMString value;
756
757 readonly attribute DOMString text;
758 readonly attribute long index;
759 };
760
761 interface HTMLTextAreaElement : HTMLElement {
762 attribute boolean autofocus;
763 attribute unsigned long cols;
764 attribute boolean disabled;
765 readonly attribute HTMLFormElement form;
766 attribute long maxLength;
767 attribute DOMString name;
768 attribute boolean readOnly;
769 attribute boolean required;
770 attribute unsigned long rows;
771 attribute DOMString wrap;
772
773 readonly attribute DOMString type;
774 attribute DOMString defaultValue;
775 attribute DOMString value;
776
777 readonly attribute boolean willValidate;
778 readonly attribute ValidityState validity;
779 readonly attribute DOMString validationMessage;
780 boolean checkValidity();
781 void setCustomValidity(in DOMString error);
782
783 readonly attribute NodeList labels;
784 };
785
786 interface HTMLOutputElement : HTMLElement {
787 attribute DOMString htmlFor;
788 readonly attribute HTMLFormElement form;
789 attribute DOMString name;
790
791 readonly attribute DOMString type;
792 attribute DOMString defaultValue;
793 attribute DOMString value;
794
795 readonly attribute boolean willValidate;
796 readonly attribute ValidityState validity;
797 readonly attribute DOMString validationMessage;
798 boolean checkValidity();
799 void setCustomValidity(in DOMString error);
800 };
801
802 interface ValidityState {
803 readonly attribute boolean valueMissing;
804 readonly attribute boolean typeMismatch;
805 readonly attribute boolean patternMismatch;
806 readonly attribute boolean tooLong;
807 readonly attribute boolean rangeUnderflow;
808 readonly attribute boolean rangeOverflow;
809 readonly attribute boolean stepMismatch;
810 readonly attribute boolean customError;
811 readonly attribute boolean valid;
812 };
813
814 interface HTMLDetailsElement : HTMLElement {
815 attribute boolean open;
816 };
817
818 interface HTMLDataGridElement : HTMLElement {
819 attribute DataGridDataProvider data;
820 readonly attribute DataGridSelection selection;
821 attribute boolean multiple;
822 attribute boolean disabled;
823 void updateEverything();
824 void updateRowsChanged(in RowSpecification row, in unsigned long count);
825 void updateRowsInserted(in RowSpecification row, in unsigned long count);
826 void updateRowsRemoved(in RowSpecification row, in unsigned long count);
827 void updateRowChanged(in RowSpecification row);
828 void updateColumnChanged(in unsigned long column);
829 void updateCellChanged(in RowSpecification row, in unsigned long column);
830 };
831
832 [NoInterfaceObject] interface RowSpecification {
833 // binding-specific interface
834 };
835
836 // To be implemented by Web authors as a JS object
837 [NoInterfaceObject] interface DataGridDataProvider {
838 void initialize(in HTMLDataGridElement datagrid);
839 unsigned long getRowCount(in RowSpecification row);
840 unsigned long getChildAtPosition(in RowSpecification parentRow, in unsigned long position);
841 unsigned long getColumnCount();
842 DOMString getCaptionText(in unsigned long column);
843 void getCaptionClasses(in unsigned long column, in DOMTokenList classes);
844 DOMString getRowImage(in RowSpecification row);
845 HTMLMenuElement getRowMenu(in RowSpecification row);
846 void getRowClasses(in RowSpecification row, in DOMTokenList classes);
847 DOMString getCellData(in RowSpecification row, in unsigned long column);
848 void getCellClasses(in RowSpecification row, in unsigned long column, in DOMTokenList classes);
849 void toggleColumnSortState(in unsigned long column);
850 void setCellCheckedState(in RowSpecification row, in unsigned long column, in long state);
851 void cycleCell(in RowSpecification row, in unsigned long column);
852 void editCell(in RowSpecification row, in unsigned long column, in DOMString data);
853 };
854
855 interface DataGridSelection {
856 readonly attribute unsigned long length;
857 [IndexGetter] RowSpecification item(in unsigned long index);
858 boolean isSelected(in RowSpecification row);
859 void setSelected(in RowSpecification row, in boolean selected);
860
861 void selectAll();
862 void invert();
863 void clear();
864 };
865
866 interface HTMLCommandElement : HTMLElement {
867 attribute DOMString type;
868 attribute DOMString label;
869 attribute DOMString icon;
870 attribute boolean disabled;
871 attribute boolean checked;
872 attribute DOMString radiogroup;
873 attribute boolean default;
874 void click(); // shadows HTMLElement.click()
875 };
876
877 interface HTMLBrowserButtonElement : HTMLElement {
878 attribute DOMString type;
879 readonly attribute boolean supported;
880 readonly attribute boolean disabled;
881 };
882
883 interface HTMLMenuElement : HTMLElement {
884 attribute DOMString type;
885 attribute DOMString label;
886 };
887
888 [NoInterfaceObject] interface Command {
889 readonly attribute DOMString commandType;
890 readonly attribute DOMString id;
891 readonly attribute DOMString label;
892 readonly attribute DOMString title;
893 readonly attribute DOMString icon;
894 readonly attribute boolean hidden;
895 readonly attribute boolean disabled;
896 readonly attribute boolean checked;
897 void click();
898 readonly attribute HTMLCollection triggers;
899 readonly attribute Command command;
900 };
901
902 [NoInterfaceObject] interface Window {
903 // the current browsing context
904 readonly attribute Window window;
905 readonly attribute Window self;
906 attribute DOMString name;
907 [PutForwards=href] readonly attribute Location location;
908 readonly attribute History history;
909 readonly attribute UndoManager undoManager;
910 Selection getSelection();
911
912 // other browsing contexts
913 readonly attribute Window frames;
914 readonly attribute unsigned long length;
915 [IndexGetter] Window XXX4(in unsigned long index);
916 readonly attribute Window top;
917 readonly attribute Window opener;
918 readonly attribute Window parent;
919 readonly attribute Element frameElement;
920 Window open();
921 Window open(in DOMString url);
922 Window open(in DOMString url, in DOMString target);
923 Window open(in DOMString url, in DOMString target, in DOMString features);
924 Window open(in DOMString url, in DOMString target, in DOMString features, in DOMString replace);
925
926 // the user agent
927 readonly attribute Navigator navigator;
928 readonly attribute Storage localStorage;
929 readonly attribute Storage sessionStorage;
930 Database openDatabase(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize);
931
932 // user prompts
933 void alert(in DOMString message);
934 boolean confirm(in DOMString message);
935 DOMString prompt(in DOMString message);
936 DOMString prompt(in DOMString message, in DOMString default);
937 void print();
938 any showModalDialog(in DOMString url);
939 any showModalDialog(in DOMString url, in any arguments);
940 void showNotification(in DOMString title, in DOMString subtitle, in DOMString description);
941 void showNotification(in DOMString title, in DOMString subtitle, in DOMString description, in VoidCallback onclick);
942
943 // cross-document messaging
944 void postMessage(in DOMString message, in DOMString targetOrigin);
945 void postMessage(in DOMString message, in MessagePort messagePort, in DOMString targetOrigin);
946
947 // event handler DOM attributes
948 attribute EventListener onabort;
949 attribute EventListener onbeforeunload;
950 attribute EventListener onblur;
951 attribute EventListener onchange;
952 attribute EventListener onclick;
953 attribute EventListener oncontextmenu;
954 attribute EventListener ondblclick;
955 attribute EventListener ondrag;
956 attribute EventListener ondragend;
957 attribute EventListener ondragenter;
958 attribute EventListener ondragleave;
959 attribute EventListener ondragover;
960 attribute EventListener ondragstart;
961 attribute EventListener ondrop;
962 attribute EventListener onerror;
963 attribute EventListener onfocus;
964 attribute EventListener onhashchange;
965 attribute EventListener onkeydown;
966 attribute EventListener onkeypress;
967 attribute EventListener onkeyup;
968 attribute EventListener onload;
969 attribute EventListener onmessage;
970 attribute EventListener onmousedown;
971 attribute EventListener onmousemove;
972 attribute EventListener onmouseout;
973 attribute EventListener onmouseover;
974 attribute EventListener onmouseup;
975 attribute EventListener onmousewheel;
976 attribute EventListener onresize;
977 attribute EventListener onscroll;
978 attribute EventListener onselect;
979 attribute EventListener onstorage;
980 attribute EventListener onsubmit;
981 attribute EventListener onunload;
982 };
983
984 [XXX] interface ModalWindow {
985 readonly attribute any dialogArguments;
986 attribute DOMString returnValue;
987 };
988
989 interface Navigator {
990 // client identification
991 readonly attribute DOMString appName;
992 readonly attribute DOMString appVersion;
993 readonly attribute DOMString platform;
994 readonly attribute DOMString userAgent;
995
996 // system state
997 readonly attribute boolean onLine;
998 void registerProtocolHandler(in DOMString protocol, in DOMString url, in DOMString title);
999 void registerContentHandler(in DOMString mimeType, in DOMString url, in DOMString title);
1000 };
1001
1002 interface ApplicationCache {
1003
1004 // update status
1005 const unsigned short UNCACHED = 0;
1006 const unsigned short IDLE = 1;
1007 const unsigned short CHECKING = 2;
1008 const unsigned short DOWNLOADING = 3;
1009 const unsigned short UPDATEREADY = 4;
1010 readonly attribute unsigned short status;
1011
1012 // updates
1013 void update();
1014 void swapCache();
1015
1016 // dynamic entries
1017 readonly attribute unsigned long length;
1018 DOMString item(in unsigned long index);
1019 void add(in DOMString url);
1020 void remove(in DOMString url);
1021
1022 // events
1023 attribute EventListener onchecking;
1024 attribute EventListener onerror;
1025 attribute EventListener onnoupdate;
1026 attribute EventListener ondownloading;
1027 attribute EventListener onprogress;
1028 attribute EventListener onupdateready;
1029 attribute EventListener oncached;
1030
1031 };
1032
1033 interface History {
1034 readonly attribute long length;
1035 void go(in long delta);
1036 void go();
1037 void back();
1038 void forward();
1039 void pushState(in DOMObject data, in DOMString title);
1040 void pushState(in DOMObject data, in DOMString title, in DOMString url);
1041 void clearState();
1042 };
1043
1044 interface PopStateEvent : Event {
1045 readonly attribute DOMObject state;
1046 void initPopStateEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMObject stateArg);
1047 void initPopStateEventNS(in DOMString namespaceURIArg, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMObject stateArg);
1048 };
1049
1050 interface Location {
1051 readonly attribute DOMString href;
1052 void assign(in DOMString url);
1053 void replace(in DOMString url);
1054 void reload();
1055
1056 // URL decomposition attributes
1057 attribute DOMString protocol;
1058 attribute DOMString host;
1059 attribute DOMString hostname;
1060 attribute DOMString port;
1061 attribute DOMString pathname;
1062 attribute DOMString search;
1063 attribute DOMString hash;
1064 };
1065
1066 interface Storage {
1067 readonly attribute unsigned long length;
1068 [IndexGetter] DOMString key(in unsigned long index);
1069 [NameGetter] DOMString getItem(in DOMString key);
1070 [NameSetter] void setItem(in DOMString key, in DOMString data);
1071 [XXX] void removeItem(in DOMString key);
1072 void clear();
1073 };
1074
1075 interface StorageEvent : Event {
1076 readonly attribute DOMString key;
1077 readonly attribute DOMString oldValue;
1078 readonly attribute DOMString newValue;
1079 readonly attribute DOMString url;
1080 readonly attribute Window source;
1081 void initStorageEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in Window sourceArg);
1082 void initStorageEventNS(in DOMString namespaceURI, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMString oldValueArg, in DOMString newValueArg, in DOMString urlArg, in Window sourceArg);
1083 };
1084
1085 interface Database {
1086 void transaction(in SQLTransactionCallback callback);
1087 void transaction(in SQLTransactionCallback callback, in SQLTransactionErrorCallback errorCallback);
1088 void transaction(in SQLTransactionCallback callback, in SQLTransactionErrorCallback errorCallback, in VoidCallback successCallback);
1089
1090 readonly attribute DOMString version;
1091 void changeVersion(in DOMString oldVersion, in DOMString newVersion, in SQLTransactionCallback callback, in SQLTransactionErrorCallback errorCallback, in VoidCallback successCallback);
1092 };
1093
1094 interface SQLTransactionCallback {
1095 void handleEvent(in SQLTransaction transaction);
1096 };
1097
1098 interface SQLTransactionErrorCallback {
1099 void handleEvent(in SQLError error);
1100 };
1101
1102 typedef sequence<Object> ObjectArray;
1103
1104 interface SQLTransaction {
1105 void executeSql(in DOMString sqlStatement);
1106 void executeSql(in DOMString sqlStatement, in ObjectArray arguments);
1107 void executeSql(in DOMString sqlStatement, in ObjectArray arguments, in SQLStatementCallback callback);
1108 void executeSql(in DOMString sqlStatement, in ObjectArray arguments, in SQLStatementCallback callback, in SQLStatementErrorCallback errorCallback);
1109 };
1110
1111 interface SQLStatementCallback {
1112 void handleEvent(in SQLTransaction transaction, in SQLResultSet resultSet);
1113 };
1114
1115 interface SQLStatementErrorCallback {
1116 boolean handleEvent(in SQLTransaction transaction, in SQLError error);
1117 };
1118
1119 interface SQLResultSet {
1120 readonly attribute int insertId;
1121 readonly attribute int rowsAffected;
1122 readonly attribute SQLResultSetRowList rows;
1123 };
1124
1125 interface SQLResultSetRowList {
1126 readonly attribute unsigned long length;
1127 [IndexGetter] DOMObject item(in unsigned long index);
1128 };
1129
1130 interface SQLError {
1131 readonly attribute unsigned int code;
1132 readonly attribute DOMString message;
1133 };
1134
1135 [Stringifies] interface Selection {
1136 readonly attribute Node anchorNode;
1137 readonly attribute long anchorOffset;
1138 readonly attribute Node focusNode;
1139 readonly attribute long focusOffset;
1140 readonly attribute boolean isCollapsed;
1141 void collapse(in Node parentNode, in long offset);
1142 void collapseToStart();
1143 void collapseToEnd();
1144 void selectAllChildren(in Node parentNode);
1145 void deleteFromDocument();
1146 readonly attribute long rangeCount;
1147 Range getRangeAt(in long index);
1148 void addRange(in Range range);
1149 void removeRange(in Range range);
1150 void removeAllRanges();
1151 };
1152
1153 interface DragEvent : UIEvent {
1154 readonly attribute DataTransfer dataTransfer;
1155 void initDragEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in AbstractView viewArg, in long detailArg, in DataTransfer dataTransferArg);
1156 void initDragEventNS(in DOMString namespaceURIArg, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in AbstractView viewArg, in long detailArg, in DataTransfer dataTransferArg);
1157 };
1158
1159 interface DataTransfer {
1160 attribute DOMString dropEffect;
1161 attribute DOMString effectAllowed;
1162 readonly attribute DOMStringList types;
1163 void clearData(in DOMString format);
1164 void setData(in DOMString format, in DOMString data);
1165 DOMString getData(in DOMString format);
1166 void setDragImage(in Element image, in long x, in long y);
1167 void addElement(in Element element);
1168 };
1169
1170
1171 interface UndoManager {
1172 unsigned long add(in DOMObject data, in DOMString title);
1173 [XXX] void remove(in unsigned long index);
1174 void clearUndo();
1175 void clearRedo();
1176 [IndexGetter] DOMObject item(in unsigned long index);
1177 readonly attribute unsigned long length;
1178 readonly attribute unsigned long position;
1179 };
1180
1181 interface UndoManagerEvent : Event {
1182 readonly attribute DOMObject data;
1183 void initUndoManagerEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMObject dataArg);
1184 void initUndoManagerEventNS(in DOMString namespaceURIArg, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMObject dataArg);
1185 };
1186
1187 interface MessageEvent : Event {
1188 readonly attribute DOMString data;
1189 readonly attribute DOMString origin;
1190 readonly attribute DOMString lastEventId;
1191 readonly attribute Window source;
1192 readonly attribute MessagePort messagePort;
1193 void initMessageEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString dataArg, in DOMString originArg, in DOMString lastEventIdArg, in Window sourceArg, in MessagePort messagePortArg);
1194 void initMessageEventNS(in DOMString namespaceURI, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString dataArg, in DOMString originArg, in DOMString lastEventIdArg, in Window sourceArg, in MessagePort messagePortArg);
1195 };
1196
1197 interface RemoteEventTarget {
1198 void addEventSource(in DOMString src);
1199 void removeEventSource(in DOMString src);
1200 };
1201
1202 [Constructor(in DOMString url)]
1203 interface WebSocket {
1204 readonly attribute DOMString URL;
1205
1206 // ready state
1207 const unsigned short CONNECTING = 0;
1208 const unsigned short OPEN = 1;
1209 const unsigned short CLOSED = 2;
1210 readonly attribute int readyState;
1211
1212 // networking
1213 attribute EventListener onopen;
1214 attribute EventListener onmessage;
1215 attribute EventListener onclosed;
1216 void postMessage(in DOMString data);
1217 void disconnect();
1218 };
1219
1220 [Constructor]
1221 interface MessageChannel {
1222 readonly attribute MessagePort port1;
1223 readonly attribute MessagePort port2;
1224 };
1225
1226 interface MessagePort {
1227 readonly attribute boolean active;
1228 void postMessage(in DOMString message);
1229 void postMessage(in DOMString message, in MessagePort messagePort);
1230 MessagePort startConversation(in DOMString message);
1231 void start();
1232 void close();
1233
1234 // event handler attributes
1235 attribute EventListener onmessage;
1236 attribute EventListener onclose;
1237 };
1238
1239 interface MediaModeAbstractView {
1240 readonly attribute DOMString mediaMode;
1241 };
1242
1243 [XXX] interface HTMLDocument {
1244 attribute DOMString fgColor;
1245 attribute DOMString bgColor;
1246 attribute DOMString linkColor;
1247 attribute DOMString vlinkColor;
1248 attribute DOMString alinkColor;
1249 };
1250
1251 [XXX] interface HTMLBodyElement {
1252 attribute DOMString text;
1253 attribute DOMString bgColor;
1254 attribute DOMString background;
1255 attribute DOMString link;
1256 attribute DOMString vLink;
1257 attribute DOMString aLink;
1258 };
1259
1260 [XXX] interface HTMLDocument {
1261 readonly attribute HTMLCollection applets;
1262 };
1263
1264 [NoInterfaceObject] interface WindowTimers {
1265 // timers
1266 long setTimeout(in TimeoutHandler handler, in long timeout);
1267 long setTimeout(in TimeoutHandler handler, in long timeout, arguments...);
1268 long setTimeout(in DOMString code, in long timeout);
1269 long setTimeout(in DOMString code, in long timeout, in DOMString language);
1270 void clearTimeout(in long handle);
1271 long setInterval(in TimeoutHandler handler, in long timeout);
1272 long setInterval(in TimeoutHandler handler, in long timeout, arguments...);
1273 long setInterval(in DOMString code, in long timeout);
1274 long setInterval(in DOMString code, in long timeout, in DOMString language);
1275 void clearInterval(in long handle);
1276 };
1277
1278 interface TimeoutHandler {
1279 void handleEvent([Variadic] in any args);
1280 };

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24