DOM/Web Forms 2.0: Difference between revisions

→‎IDL: Removed IDL definitions as those are stated in the spec.
(→‎IDL: Removed IDL definitions as those are stated in the spec.)
Line 37: Line 37:


Note that web pages must not need to QueryInterface to these interfaces in order to use their capabilities.  The properties and methods these interfaces provide and define must be available by default.
Note that web pages must not need to QueryInterface to these interfaces in order to use their capabilities.  The properties and methods these interfaces provide and define must be available by default.
==== nsIDOMWF2FormElement ====
* Contributor: Alex Vincent
* Properties and methods:
** attribute DOMString accept;
** attribute DOMString replace;
** attribute DOMString data;
** readonly attribute HTMLCollection templateElements;
** bool checkValidity();
** void resetFromData(in Document data);
** void dispatchFormInput();
** void dispatchFormChange();
* Status: Initial implementation (checkValidity) under review ([https://bugzilla.mozilla.org/show_bug.cgi?id=345822 bug 345822]).
==== nsIDOMWF2FormControl ====
* Contributor: Alex Vincent
* Properties and methods:
** readonly attribute boolean willValidate;
** readonly attribute nsIDOMWF2ValidityState validity;
** boolean checkValidity();
** readonly attribute DOMString validationMessage;
** void setCustomValidity(in DOMString error);
* Status: Initial implementation (willValidate, validity, checkValidity) under review ([https://bugzilla.mozilla.org/show_bug.cgi?id=345822 bug 345822]).
==== nsIDOMWF2InputElement ====
* Contributor: Alex Vincent
* Extends nsIDOMWF2FormControl
* Properties and methods:
** readonly attribute NodeList        forms;
** attribute DOMString min;
** attribute DOMString max;
** attribute DOMString step;
** attribute DOMString pattern;
** attribute boolean required;
** attribute boolean autocomplete;
** attribute boolean autofocus;
** attribute DOMString inputmode;
** attribute DOMString action;
** attribute DOMString enctype;
** attribute DOMString method;
** attribute DOMString target;
** attribute DOMString replace;
** readonly attribute HTMLElement list;
** readonly attribute HTMLOptionElement selectedOption;
** readonly attribute RepetitionElement htmlTemplate;
** readonly attribute HTMLCollection labels;
** attribute DOMTimeStamp valueAsDate;
** attribute float valueAsNumber;
** void stepUp(in int n);
** void stepDown(in int n);
** void dispatchChange();
** void dispatchFormChange();
* Status: Initial implementation (required) under review ([https://bugzilla.mozilla.org/show_bug.cgi?id=345822 bug 345822]).
==== nsIDOMWF2ValidityState ====
* Contributor: Alex Vincent
* Properties and methods:
** readonly attribute boolean typeMismatch;
** readonly attribute boolean stepMismatch;
** readonly attribute boolean rangeUnderflow;
** readonly attribute boolean rangeOverflow;
** readonly attribute boolean tooLong;
** readonly attribute boolean patternMismatch;
** readonly attribute boolean valueMissing;
** readonly attribute boolean customError;
** readonly attribute boolean valid;
* Status: Initial implementation (valueMissing, valid) under review ([https://bugzilla.mozilla.org/show_bug.cgi?id=345822 bug 345822]).
==== nsIDOMWF2OutputElement ====
* Contributor: Alex Vincent
* Extends nsIDOMWF2FormControl
* Properties and methods:
** attribute DOMString defaultValue;
** readonly attribute HTMLFormElement form;
** readonly attribute NodeList forms;
** attribute DOMString name;
** attribute DOMString value;
* Status: Waiting for a fix to [https://bugzilla.mozilla.org/show_bug.cgi?id=345822 bug 345822] before writing patches.
==== nsIDOMWF2RepetitionElement ====
* Contributor: Shawn Wilsher
* Constants
** const unsigned short REPETITION_NONE = 0
** const unsigned short REPETITION_TEMPLATE = 1
** const unsigned short REPETITION_BLOCK = 2
* Properties and Methods
** attribute unsigned short repetitionType
** attribute long repetitionIndex
** readonly attribute nsIDOMElement repetitionTemplate
** readonly attribute nsIDOMHTMLCollection repetitionBlocks
** attribute unsigned long repeatStart
** attribute unsigned long repeatMin
** attribute unsigned long repeatMax
** nsIDOMElement addRepetitionBlock(in nsIDOMNode refNode)
** nsIDOMElement addRepetitionBlockByIndex(in nsIDOMNode refNode, in long index)
** void moveRepetitionBlock(in long distance)
** void removeRepetitionBlock()
* Status - Initial implementation Posted, work in progress ([https://bugzilla.mozilla.org/show_bug.cgi?id=347070 Bug 347070]).
==== nsIDOMRepetitionEvent ====
* Contributor: Shawn Wilsher
* Properties and Methods
** readonly attribute nsIDOMWF2RepetitionElement element
**  void initRepetitionEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIDOMWF2RepetitionElement elementArg)
* Status - Initial implementation posted, ready for review?  Untested. ([https://bugzilla.mozilla.org/show_bug.cgi?id=347007 Bug 347007])


=== <s>XTF</s> ===
=== <s>XTF</s> ===
590

edits