Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update interfaces/html.idl #19986

Merged
merged 1 commit into from
Nov 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 39 additions & 19 deletions interfaces/html.idl
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,10 @@ interface HTMLQuoteElement : HTMLElement {
[CEReactions] attribute USVString cite;
};

[Exposed=Window,
HTMLConstructor]
[Exposed=Window]
interface HTMLOListElement : HTMLElement {
[HTMLConstructor] constructor();

[CEReactions] attribute boolean reversed;
[CEReactions] attribute long start;
[CEReactions] attribute DOMString type;
Expand All @@ -283,16 +284,17 @@ interface HTMLUListElement : HTMLElement {
// also has obsolete members
};

[Exposed=Window,
HTMLConstructor]
[Exposed=Window]
interface HTMLMenuElement : HTMLElement {
[HTMLConstructor] constructor();

// also has obsolete members
};

[Exposed=Window,
HTMLConstructor]
[Exposed=Window]
interface HTMLLIElement : HTMLElement {
[HTMLConstructor] constructor();

[CEReactions] attribute long value;

// also has obsolete members
Expand Down Expand Up @@ -339,9 +341,10 @@ interface HTMLDataElement : HTMLElement {
[CEReactions] attribute DOMString value;
};

[Exposed=Window,
HTMLConstructor]
[Exposed=Window]
interface HTMLTimeElement : HTMLElement {
[HTMLConstructor] constructor();

[CEReactions] attribute DOMString dateTime;
};

Expand Down Expand Up @@ -396,9 +399,10 @@ interface HTMLSourceElement : HTMLElement {
};

[Exposed=Window,
HTMLConstructor,
NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
interface HTMLImageElement : HTMLElement {
[HTMLConstructor] constructor();

[CEReactions] attribute DOMString alt;
[CEReactions] attribute USVString src;
[CEReactions] attribute USVString srcset;
Expand Down Expand Up @@ -489,9 +493,10 @@ interface HTMLParamElement : HTMLElement {
// also has obsolete members
};

[Exposed=Window,
HTMLConstructor]
[Exposed=Window]
interface HTMLVideoElement : HTMLMediaElement {
[HTMLConstructor] constructor();

[CEReactions] attribute unsigned long width;
[CEReactions] attribute unsigned long height;
readonly attribute unsigned long videoWidth;
Expand All @@ -501,9 +506,10 @@ interface HTMLVideoElement : HTMLMediaElement {
};

[Exposed=Window,
HTMLConstructor,
NamedConstructor=Audio(optional DOMString src)]
interface HTMLAudioElement : HTMLMediaElement {};
interface HTMLAudioElement : HTMLMediaElement {
[HTMLConstructor] constructor();
};

[Exposed=Window]
interface HTMLTrackElement : HTMLElement {
Expand Down Expand Up @@ -818,9 +824,10 @@ interface HTMLTableCellElement : HTMLElement {

[Exposed=Window,
OverrideBuiltins,
LegacyUnenumerableNamedProperties,
HTMLConstructor]
LegacyUnenumerableNamedProperties]
interface HTMLFormElement : HTMLElement {
[HTMLConstructor] constructor();

[CEReactions] attribute DOMString acceptCharset;
[CEReactions] attribute USVString action;
[CEReactions] attribute DOMString autocomplete;
Expand All @@ -839,7 +846,7 @@ interface HTMLFormElement : HTMLElement {
getter (RadioNodeList or Element) (DOMString name);

void submit();
void requestSubmit(optional HTMLElement submitter);
void requestSubmit(optional HTMLElement? submitter = null);
[CEReactions] void reset();
boolean checkValidity();
boolean reportValidity();
Expand Down Expand Up @@ -996,9 +1003,10 @@ interface HTMLOptGroupElement : HTMLElement {
};

[Exposed=Window,
HTMLConstructor,
NamedConstructor=Option(optional DOMString text = "", optional DOMString value, optional boolean defaultSelected = false, optional boolean selected = false)]
interface HTMLOptionElement : HTMLElement {
[HTMLConstructor] constructor();

[CEReactions] attribute boolean disabled;
readonly attribute HTMLFormElement? form;
[CEReactions] attribute DOMString label;
Expand Down Expand Up @@ -1147,6 +1155,17 @@ interface ValidityState {
readonly attribute boolean valid;
};

[Exposed=Window]
interface SubmitEvent : Event {
constructor(DOMString type, optional SubmitEventInit eventInitDict = {});

readonly attribute HTMLElement? submitter;
};

dictionary SubmitEventInit : EventInit {
HTMLElement? submitter = null;
};

[Exposed=Window,
Constructor(DOMString type, optional FormDataEventInit eventInitDict = {})]
interface FormDataEvent : Event {
Expand Down Expand Up @@ -1214,9 +1233,10 @@ dictionary AssignedNodesOptions {

typedef (CanvasRenderingContext2D or ImageBitmapRenderingContext or WebGLRenderingContext or WebGL2RenderingContext) RenderingContext;

[Exposed=Window,
HTMLConstructor]
[Exposed=Window]
interface HTMLCanvasElement : HTMLElement {
[HTMLConstructor] constructor();

[CEReactions] attribute unsigned long width;
[CEReactions] attribute unsigned long height;

Expand Down