Index: source =================================================================== --- source (revision 6190) +++ source (working copy) @@ -7594,8 +7594,8 @@
interface HTMLCollection {
readonly attribute unsigned long length;
- caller getter Element item(in unsigned long index);
- caller getter object namedItem(in DOMString name); // only returns Element
+ caller getter Element? item(in unsigned long index);
+ caller getter object? namedItem(in DOMString name); // only returns Element
};
interface HTMLAllCollection : HTMLCollection { // inherits length and item() - caller getter object namedItem(in DOMString name); // overrides inherited namedItem() + caller getter object? namedItem(in DOMString name); // overrides inherited namedItem() HTMLAllCollection tags(in DOMString tagName); };@@ -7809,7 +7809,7 @@
interface HTMLFormControlsCollection : HTMLCollection { // inherits length and item() - caller getter object namedItem(in DOMString name); // overrides inherited namedItem() + caller getter object? namedItem(in DOMString name); // overrides inherited namedItem() }; interface RadioNodeList : NodeList { @@ -7957,8 +7957,8 @@interface HTMLOptionsCollection : HTMLCollection { // inherits item() attribute unsigned long length; // overrides inherited length - caller getter object namedItem(in DOMString name); // overrides inherited namedItem() - void add(in HTMLElement element, in optional HTMLElement before); + caller getter object? namedItem(in DOMString name); // overrides inherited namedItem() + void add(in HTMLElement element, in optional HTMLElement? before); void add(in HTMLElement element, in long before); void remove(in long index); attribute long selectedIndex; @@ -8183,7 +8183,7 @@interface HTMLPropertiesCollection : HTMLCollection { // inherits length and item() - caller getter PropertyNodeList namedItem(in DOMString name); // overrides inherited namedItem() + caller getter PropertyNodeList? namedItem(in DOMString name); // overrides inherited namedItem() readonly attribute DOMStringList names; }; @@ -8290,7 +8290,7 @@interface DOMTokenList { readonly attribute unsigned long length; - getter DOMString item(in unsigned long index); + getter DOMString? item(in unsigned long index); boolean contains(in DOMString token); void add(in DOMString token); void remove(in DOMString token); @@ -9066,7 +9066,7 @@@@ -18114,26 +18114,26 @@[OverrideBuiltins] interface HTMLDocument { // resource metadata management - [PutForwards=href] readonly attribute Location location; + [PutForwards=href] readonly attribute Location? location; readonly attribute DOMString URL; attribute DOMString domain; readonly attribute DOMString referrer; @@ -9082,8 +9082,8 @@ getter any (in DOMString name); attribute DOMString title; attribute DOMString dir; - attribute HTMLElement body; - readonly attribute HTMLHeadElement head; + attribute HTMLElement? body; + readonly attribute HTMLHeadElement? head; readonly attribute HTMLCollection images; readonly attribute HTMLCollection embeds; readonly attribute HTMLCollection plugins; @@ -9104,8 +9104,8 @@ void writeln(in DOMString... text); // user interaction - readonly attribute WindowProxy defaultView; - readonly attribute Element activeElement; + readonly attribute WindowProxy? defaultView; + readonly attribute Element? activeElement; boolean hasFocus(); attribute DOMString designMode; boolean execCommand(in DOMString commandId); @@ -9119,60 +9119,60 @@ readonly attribute HTMLCollection commands; // event handler IDL attributes - attribute Function onabort; - attribute Function onblur; - attribute Function oncanplay; - attribute Function oncanplaythrough; - attribute Function onchange; - attribute Function onclick; - attribute Function oncontextmenu; - attribute Function oncuechange; - attribute Function ondblclick; - attribute Function ondrag; - attribute Function ondragend; - attribute Function ondragenter; - attribute Function ondragleave; - attribute Function ondragover; - attribute Function ondragstart; - attribute Function ondrop; - attribute Function ondurationchange; - attribute Function onemptied; - attribute Function onended; - attribute Function onerror; - attribute Function onfocus; - attribute Function oninput; - attribute Function oninvalid; - attribute Function onkeydown; - attribute Function onkeypress; - attribute Function onkeyup; - attribute Function onload; - attribute Function onloadeddata; - attribute Function onloadedmetadata; - attribute Function onloadstart; - attribute Function onmousedown; - attribute Function onmousemove; - attribute Function onmouseout; - attribute Function onmouseover; - attribute Function onmouseup; - attribute Function onmousewheel; - attribute Function onpause; - attribute Function onplay; - attribute Function onplaying; - attribute Function onprogress; - attribute Function onratechange; - attribute Function onreadystatechange; - attribute Function onreset; - attribute Function onscroll; - attribute Function onseeked; - attribute Function onseeking; - attribute Function onselect; - attribute Function onshow; - attribute Function onstalled; - attribute Function onsubmit; - attribute Function onsuspend; - attribute Function ontimeupdate; - attribute Function onvolumechange; - attribute Function onwaiting; + attribute Function? onabort; + attribute Function? onblur; + attribute Function? oncanplay; + attribute Function? oncanplaythrough; + attribute Function? onchange; + attribute Function? onclick; + attribute Function? oncontextmenu; + attribute Function? oncuechange; + attribute Function? ondblclick; + attribute Function? ondrag; + attribute Function? ondragend; + attribute Function? ondragenter; + attribute Function? ondragleave; + attribute Function? ondragover; + attribute Function? ondragstart; + attribute Function? ondrop; + attribute Function? ondurationchange; + attribute Function? onemptied; + attribute Function? onended; + attribute Function? onerror; + attribute Function? onfocus; + attribute Function? oninput; + attribute Function? oninvalid; + attribute Function? onkeydown; + attribute Function? onkeypress; + attribute Function? onkeyup; + attribute Function? onload; + attribute Function? onloadeddata; + attribute Function? onloadedmetadata; + attribute Function? onloadstart; + attribute Function? onmousedown; + attribute Function? onmousemove; + attribute Function? onmouseout; + attribute Function? onmouseover; + attribute Function? onmouseup; + attribute Function? onmousewheel; + attribute Function? onpause; + attribute Function? onplay; + attribute Function? onplaying; + attribute Function? onprogress; + attribute Function? onratechange; + attribute Function? onreadystatechange; + attribute Function? onreset; + attribute Function? onscroll; + attribute Function? onseeked; + attribute Function? onseeking; + attribute Function? onselect; + attribute Function? onshow; + attribute Function? onstalled; + attribute Function? onsubmit; + attribute Function? onsuspend; + attribute Function? ontimeupdate; + attribute Function? onvolumechange; + attribute Function? onwaiting; }; Document implements HTMLDocument;@@ -10510,13 +10510,13 @@ [PutForwards=value] readonly attribute DOMSettableTokenList dropzone; attribute DOMString contentEditable; readonly attribute boolean isContentEditable; - attribute HTMLMenuElement contextMenu; + attribute HTMLMenuElement? contextMenu; attribute boolean spellcheck; // command API - readonly attribute DOMString commandType; - readonly attribute DOMString label; - readonly attribute DOMString icon; + readonly attribute DOMString? commandType; + readonly attribute DOMString? label; + readonly attribute DOMString? icon; readonly attribute boolean disabled; readonly attribute boolean checked; @@ -10525,60 +10525,60 @@ readonly attribute CSSStyleDeclaration style; // event handler IDL attributes - attribute Function onabort; - attribute Function onblur; - attribute Function oncanplay; - attribute Function oncanplaythrough; - attribute Function onchange; - attribute Function onclick; - attribute Function oncontextmenu; - attribute Function oncuechange; - attribute Function ondblclick; - attribute Function ondrag; - attribute Function ondragend; - attribute Function ondragenter; - attribute Function ondragleave; - attribute Function ondragover; - attribute Function ondragstart; - attribute Function ondrop; - attribute Function ondurationchange; - attribute Function onemptied; - attribute Function onended; - attribute Function onerror; - attribute Function onfocus; - attribute Function oninput; - attribute Function oninvalid; - attribute Function onkeydown; - attribute Function onkeypress; - attribute Function onkeyup; - attribute Function onload; - attribute Function onloadeddata; - attribute Function onloadedmetadata; - attribute Function onloadstart; - attribute Function onmousedown; - attribute Function onmousemove; - attribute Function onmouseout; - attribute Function onmouseover; - attribute Function onmouseup; - attribute Function onmousewheel; - attribute Function onpause; - attribute Function onplay; - attribute Function onplaying; - attribute Function onprogress; - attribute Function onratechange; - attribute Function onreadystatechange; - attribute Function onreset; - attribute Function onscroll; - attribute Function onseeked; - attribute Function onseeking; - attribute Function onselect; - attribute Function onshow; - attribute Function onstalled; - attribute Function onsubmit; - attribute Function onsuspend; - attribute Function ontimeupdate; - attribute Function onvolumechange; - attribute Function onwaiting; + attribute Function? onabort; + attribute Function? onblur; + attribute Function? oncanplay; + attribute Function? oncanplaythrough; + attribute Function? onchange; + attribute Function? onclick; + attribute Function? oncontextmenu; + attribute Function? oncuechange; + attribute Function? ondblclick; + attribute Function? ondrag; + attribute Function? ondragend; + attribute Function? ondragenter; + attribute Function? ondragleave; + attribute Function? ondragover; + attribute Function? ondragstart; + attribute Function? ondrop; + attribute Function? ondurationchange; + attribute Function? onemptied; + attribute Function? onended; + attribute Function? onerror; + attribute Function? onfocus; + attribute Function? oninput; + attribute Function? oninvalid; + attribute Function? onkeydown; + attribute Function? onkeypress; + attribute Function? onkeyup; + attribute Function? onload; + attribute Function? onloadeddata; + attribute Function? onloadedmetadata; + attribute Function? onloadstart; + attribute Function? onmousedown; + attribute Function? onmousemove; + attribute Function? onmouseout; + attribute Function? onmouseover; + attribute Function? onmouseup; + attribute Function? onmousewheel; + attribute Function? onpause; + attribute Function? onplay; + attribute Function? onplaying; + attribute Function? onprogress; + attribute Function? onratechange; + attribute Function? onreadystatechange; + attribute Function? onreset; + attribute Function? onscroll; + attribute Function? onseeked; + attribute Function? onseeking; + attribute Function? onselect; + attribute Function? onshow; + attribute Function? onstalled; + attribute Function? onsubmit; + attribute Function? onsuspend; + attribute Function? ontimeupdate; + attribute Function? onvolumechange; + attribute Function? onwaiting; }; interface HTMLUnknownElement : HTMLElement { };
interface HTMLBodyElement : HTMLElement { - attribute Function onafterprint; - attribute Function onbeforeprint; - attribute Function onbeforeunload; - attribute Function onblur; - attribute Function onerror; - attribute Function onfocus; - attribute Function onhashchange; - attribute Function onload; - attribute Function onmessage; - attribute Function onoffline; - attribute Function ononline; - attribute Function onpopstate; - attribute Function onpagehide; - attribute Function onpageshow; - attribute Function onredo; - attribute Function onresize; - attribute Function onscroll; - attribute Function onstorage; - attribute Function onundo; - attribute Function onunload; + attribute Function? onafterprint; + attribute Function? onbeforeprint; + attribute Function? onbeforeunload; + attribute Function? onblur; + attribute Function? onerror; + attribute Function? onfocus; + attribute Function? onhashchange; + attribute Function? onload; + attribute Function? onmessage; + attribute Function? onoffline; + attribute Function? ononline; + attribute Function? onpopstate; + attribute Function? onpagehide; + attribute Function? onpageshow; + attribute Function? onredo; + attribute Function? onresize; + attribute Function? onscroll; + attribute Function? onstorage; + attribute Function? onundo; + attribute Function? onunload; };
interface HTMLTimeElement : HTMLElement { attribute DOMString dateTime; attribute boolean pubDate; - readonly attribute Date valueAsDate; + readonly attribute Date? valueAsDate; };@@ -25640,8 +25640,8 @@ attribute boolean seamless; attribute DOMString width; attribute DOMString height; - readonly attribute Document contentDocument; - readonly attribute WindowProxy contentWindow; + readonly attribute Document? contentDocument; + readonly attribute WindowProxy? contentWindow; }; @@ -26912,11 +26912,11 @@ attribute DOMString type; attribute DOMString name; attribute DOMString useMap; - readonly attribute HTMLFormElement form; + readonly attribute HTMLFormElement? form; attribute DOMString width; attribute DOMString height; - readonly attribute Document contentDocument; - readonly attribute WindowProxy contentWindow; + readonly attribute Document? contentDocument; + readonly attribute WindowProxy? contentWindow; readonly attribute boolean willValidate; readonly attribute ValidityState validity; @@ -28758,7 +28758,7 @@
interface HTMLMediaElement : HTMLElement { // error state - readonly attribute MediaError error; + readonly attribute MediaError? error; // network state attribute DOMString src; @@ -28803,7 +28803,7 @@ // media controller attribute DOMString mediaGroup; - attribute MediaController controller; + attribute MediaController? controller; // controls attribute boolean controls; @@ -31947,7 +31947,7 @@ DOMString getLabel(in unsigned long index); DOMString getLanguage(in unsigned long index); - attribute Function onchange; + attribute Function? onchange; }; interface MultipleTrackList : TrackList { @@ -32358,20 +32358,20 @@ attribute double volume; attribute boolean muted; - attribute Function onemptied; - attribute Function onloadedmetadata; - attribute Function onloadeddata; - attribute Function oncanplay; - attribute Function oncanplaythrough; - attribute Function onplaying; - attribute Function onwaiting; + attribute Function? onemptied; + attribute Function? onloadedmetadata; + attribute Function? onloadeddata; + attribute Function? oncanplay; + attribute Function? oncanplaythrough; + attribute Function? onplaying; + attribute Function? onwaiting; - attribute Function ondurationchange; - attribute Function ontimeupdate; - attribute Function onplay; - attribute Function onpause; - attribute Function onratechange; - attribute Function onvolumechange; + attribute Function? ondurationchange; + attribute Function? ontimeupdate; + attribute Function? onplay; + attribute Function? onpause; + attribute Function? onratechange; + attribute Function? onvolumechange; };
addCue( cue )Adds the given cue to mutableTextTrack's text track list of cues.
-Raises an exception if the argument is null, associated with another text track, or already in the list of cues.
+Raises an exception if the argument is associated with another text track or already in the list of cues.
removeCue( cue )Removes the given cue from mutableTextTrack's text track list of cues.
-Raises an exception if the argument is null, associated with another text track, or not in the list of cues.
+Raises an exception if the argument is associated with another text track or not in the list of cues.
If cue is null, then throw an
- INVALID_ACCESS_ERR exception and abort these
- steps.
If the given cue is already associated
with a text track other than the method's
MutableTextTrack object's text track,
@@ -34500,10 +34496,6 @@
If cue is null, then throw an
- INVALID_ACCESS_ERR exception and abort these
- steps.
If the given cue is not associated with
the method's MutableTextTrack object's text
track, then throw an INVALID_STATE_ERR
@@ -34559,7 +34551,7 @@
interface TextTrackCueList {
readonly attribute unsigned long length;
getter TextTrackCue (in unsigned long index);
- TextTrackCue getCueById(in DOMString id);
+ TextTrackCue? getCueById(in DOMString id);
};
repeat-y (vertical only), and no-repeat (neither). If the repetition argument is empty or null, the value
- repeat is used.
+ title="">repetition argument is empty, the value repeat is used.
- If the first argument isn't an img,
- canvas, or video element, throws a
- TYPE_MISMATCH_ERR exception. If the image has no
- image data, throws an INVALID_STATE_ERR exception. If
- the second argument isn't one of the allowed values, throws a
- SYNTAX_ERR exception. If the image isn't yet fully
- decoded, then the method returns null.
If the image has no image data, throws an
+ INVALID_STATE_ERR exception. If the second argument
+ isn't one of the allowed values, throws a SYNTAX_ERR
+ exception. If the image isn't yet fully decoded, then the method
+ returns null.
repeat,
repeat-x, repeat-y,
- no-repeat. If the empty string or null is
- specified, repeat must be assumed. If an
- unrecognized value is given, then the user agent must raise a
- SYNTAX_ERR exception. User agents must recognize the
- four values described above exactly (e.g. they must not do case
- folding). Except as specified below, the method must return a
- CanvasPattern object suitably initialized.
+ no-repeat. If the empty string is specified,
+ repeat must be assumed. If an unrecognized value
+ is given, then the user agent must raise a SYNTAX_ERR
+ exception. User agents must recognize the four values described above
+ exactly (e.g. they must not do case folding). Except as specified
+ below, the method must return a CanvasPattern object
+ suitably initialized.
The image argument is an instance of either
HTMLImageElement, HTMLCanvasElement, or
- HTMLVideoElement. If the image is
- null, the implementation must raise a TYPE_MISMATCH_ERR
- exception.
HTMLVideoElement.
If the image argument is an
HTMLImageElement object that is not The image argument is an instance of either
HTMLImageElement, HTMLCanvasElement, or
- HTMLVideoElement. If the image is
- null, the implementation must raise a TYPE_MISMATCH_ERR
- exception.
HTMLVideoElement.
If the image argument is an
Throws a If any of the arguments to HTMLImageElement object that is not
- NOT_SUPPORTED_ERR exception if the
- argument is null.getImageData(sx, sy, sw, sh)createImageData() or
- getImageData() are
- infinite or NaN, or if the createImageData()
- method is invoked with only one argument but that argument is null,
- the method must instead raise a NOT_SUPPORTED_ERR
- exception. If either the sw or sh arguments are zero, the method must instead raise
- an INDEX_SIZE_ERR exception.getImageData()
+ are infinite or NaN, the method must instead raise a
+ NOT_SUPPORTED_ERR exception. If either the sw or sh arguments are zero,
+ the method must instead raise an INDEX_SIZE_ERR
+ exception.
ImageData objects must be initialized so that their
width attribute
@@ -41450,10 +41433,6 @@
If any of the arguments to the method are infinite or NaN, the
method must raise a NOT_SUPPORTED_ERR exception.
If the first argument to the method is null, then the putImageData() method
- must raise a TYPE_MISMATCH_ERR exception.
When the last four arguments are omitted, they must be assumed to
have the values 0, 0, the width member of the DOM interface:
interface HTMLTableElement : HTMLElement {
- attribute HTMLTableCaptionElement caption;
+ attribute HTMLTableCaptionElement? caption;
HTMLElement createCaption();
void deleteCaption();
- attribute HTMLTableSectionElement tHead;
+ attribute HTMLTableSectionElement? tHead;
HTMLElement createTHead();
void deleteTHead();
- attribute HTMLTableSectionElement tFoot;
+ attribute HTMLTableSectionElement? tFoot;
HTMLElement createTFoot();
void deleteTFoot();
readonly attribute HTMLCollection tBodies;
@@ -46963,7 +46942,7 @@
interface HTMLFieldSetElement : HTMLElement {
attribute boolean disabled;
- readonly attribute HTMLFormElement form;
+ readonly attribute HTMLFormElement? form;
attribute DOMString name;
readonly attribute DOMString type;
@@ -47125,7 +47104,7 @@
interface HTMLLegendElement : HTMLElement {
- readonly attribute HTMLFormElement form;
+ readonly attribute HTMLFormElement? form;
};
interface HTMLLabelElement : HTMLElement {
- readonly attribute HTMLFormElement form;
+ readonly attribute HTMLFormElement? form;
attribute DOMString htmlFor;
- readonly attribute HTMLElement control;
+ readonly attribute HTMLElement? control;
};
interface HTMLButtonElement : HTMLElement {
attribute boolean autofocus;
attribute boolean disabled;
- readonly attribute HTMLFormElement form;
+ readonly attribute HTMLFormElement? form;
attribute DOMString formAction;
attribute DOMString formEnctype;
attribute DOMString formMethod;
@@ -54096,7 +54075,7 @@
interface HTMLSelectElement : HTMLElement {
attribute boolean autofocus;
attribute boolean disabled;
- readonly attribute HTMLFormElement form;
+ readonly attribute HTMLFormElement? form;
attribute boolean multiple;
attribute DOMString name;
attribute boolean required;
@@ -54108,7 +54087,7 @@
attribute unsigned long length;
getter any item(in unsigned long index);
any namedItem(in DOMString name);
- void add(in HTMLElement element, in optional HTMLElement before);
+ void add(in HTMLElement element, in optional HTMLElement? before);
void add(in HTMLElement element, in long before);
void remove(in long index);
@@ -54792,7 +54771,7 @@
NamedConstructor=Option(in DOMString text, in DOMString value, in boolean defaultSelected, in boolean selected)]
interface HTMLOptionElement : HTMLElement {
attribute boolean disabled;
- readonly attribute HTMLFormElement form;
+ readonly attribute HTMLFormElement? form;
attribute DOMString label;
attribute boolean defaultSelected;
attribute boolean selected;
@@ -55083,7 +55062,7 @@
attribute unsigned long cols;
attribute DOMString dirName;
attribute boolean disabled;
- readonly attribute HTMLFormElement form;
+ readonly attribute HTMLFormElement? form;
attribute long maxLength;
attribute DOMString name;
attribute DOMString placeholder;
@@ -55535,7 +55514,7 @@
attribute boolean autofocus;
attribute DOMString challenge;
attribute boolean disabled;
- readonly attribute HTMLFormElement form;
+ readonly attribute HTMLFormElement? form;
attribute DOMString keytype;
attribute DOMString name;
@@ -55881,7 +55860,7 @@
interface HTMLOutputElement : HTMLElement {
[PutForwards=value] readonly attribute DOMSettableTokenList htmlFor;
- readonly attribute HTMLFormElement form;
+ readonly attribute HTMLFormElement? form;
attribute DOMString name;
readonly attribute DOMString type;
@@ -56078,7 +56057,7 @@
attribute double value;
attribute double max;
readonly attribute double position;
- readonly attribute HTMLFormElement form;
+ readonly attribute HTMLFormElement? form;
readonly attribute NodeList labels;
};
interface DataTransferItem {
readonly attribute DOMString kind;
readonly attribute DOMString type;
- void getAsString(in FunctionStringCallback callback);
- File getAsFile();
};
@@ -82365,9 +82344,9 @@
all use the DragEvent interface.
interface DragEvent : MouseEvent { - readonly attribute DataTransfer dataTransfer; + readonly attribute DataTransfer? dataTransfer; - void initDragEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any dummyArg, in long detailArg, in long screenXArg, in long screenYArg, in long clientXArg, in long clientYArg, in boolean ctrlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, in unsigned short buttonArg, in EventTarget relatedTargetArg, in DataTransfer dataTransferArg); + void initDragEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any dummyArg, in long detailArg, in long screenXArg, in long screenYArg, in long clientXArg, in long clientYArg, in boolean ctrlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, in unsigned short buttonArg, in EventTarget relatedTargetArg, in DataTransfer? dataTransferArg); };
[Supplemental, NoInterfaceObject]
interface NavigatorUserMedia {
- void getUserMedia(in DOMString options, in NavigatorUserMediaSuccessCallback successCallback, in optional NavigatorUserMediaErrorCallback errorCallback);
+ void getUserMedia(in DOMString options, in NavigatorUserMediaSuccessCallback? successCallback, in optional NavigatorUserMediaErrorCallback? errorCallback);
};
Navigator implements NavigatorUserMedia;
@@ -85155,7 +85134,7 @@
const unsigned short LIVE = 1;
const unsigned short ENDED = 2;
readonly attribute unsigned short readyState;
- attribute Function onended;
+ attribute Function? onended;
};
Stream implements EventTarget;
@@ -85436,7 +85415,7 @@
interface StreamRecorder {
- void getRecordedData(in BlobCallback callback);
+ void getRecordedData(in BlobCallback? callback);
};
[Callback=FunctionOnly, NoInterfaceObject]
@@ -85669,13 +85648,13 @@
void close();
// connection quality information
- attribute Function onconnecting;
- attribute Function onopen;
- attribute Function onmessage;
- attribute Function onaddstream;
- attribute Function onremovestream;
+ attribute Function? onconnecting;
+ attribute Function? onopen;
+ attribute Function? onmessage;
+ attribute Function? onaddstream;
+ attribute Function? onremovestream;
};
PeerConnection implements EventTarget;
@@ -86372,9 +86351,6 @@
title="dom-PeerConnection-CLOSED">CLOSED (3), throw an
INVALID_STATE_ERR exception.If stream is null, throw a
- TypeError exception and abort these steps.
If stream is already in the
PeerConnection object's localStreams object,
@@ -86409,9 +86385,6 @@
title="dom-PeerConnection-CLOSED">CLOSED (3), throw an
INVALID_STATE_ERR exception.
If stream is null, throw a
- TypeError exception and abort these steps.
If stream is not in the
PeerConnection object's localStreams object,
@@ -86847,8 +86820,8 @@
use the StreamEvent interface:
interface StreamEvent : Event { - readonly attribute Stream stream; - void initStreamEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in Stream streamArg); + readonly attribute Stream? stream; + void initStreamEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in Stream? streamArg); };
DedicatedWorkerGlobalScope objects act as if they
@@ -87464,7 +87437,7 @@
interface SharedWorkerGlobalScope : WorkerGlobalScope {
readonly attribute DOMString name;
readonly attribute ApplicationCache applicationCache;
- attribute Function onconnect;
+ attribute Function? onconnect;
};
Shared workers receive message ports through The data;
readonly attribute DOMString origin;
readonly attribute DOMString lastEventId;
- readonly attribute WindowProxy source;
+ readonly attribute WindowProxy? source;
readonly attribute MessagePort[] ports;
- void initMessageEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any dataArg, in DOMString originArg, in DOMString lastEventIdArg, in WindowProxy sourceArg, in sequence<MessagePort> portsArg);
+ void initMessageEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any dataArg, in DOMString originArg, in DOMString lastEventIdArg, in WindowProxy? sourceArg, in sequence<MessagePort> portsArg);
};
[Supplemental, NoInterfaceObject]
interface AbstractWorker {
- attribute Function onerror;
-
+ attribute Function? onerror;
+
};
AbstractWorker implements EventTarget;
@@ -88059,7 +88032,7 @@
void postMessage(in any message, in optional sequence<MessagePort> ports);
- attribute Function onmessage;
+ attribute Function? onmessage;
};
".
@@ -88928,9 +88901,9 @@
readonly attribute unsigned short readyState;
// networking
- attribute Function onopen;
- attribute Function onmessage;
- attribute Function onerror;
+ attribute Function? onopen;
+ attribute Function? onmessage;
+ attribute Function? onerror;
void close();
};
EventSource implements EventTarget;
@@ -89802,15 +89775,15 @@
readonly attribute unsigned long bufferedAmount;
// networking
- attribute Function onopen;
- attribute Function onclose;
+ attribute Function? onopen;
+ attribute Function? onclose;
readonly attribute DOMString extensions;
readonly attribute DOMString protocol;
void close(in optional unsigned long code, in optional DOMString reason);
// messaging
- attribute Function onmessage;
+ attribute Function? onmessage;
attribute DOMString binaryType;
void send(in DOMString data);
void send(in ArrayBuffer data);
@@ -90694,8 +90667,7 @@
title="">/
Throws an INVALID_STATE_ERR if the ports array is not null and it contains either null
- entries or duplicate ports.
If the ports argument is present but either - any of the entries in ports are null, or any +
If the ports argument is present but any
MessagePort object is listed in ports more than once, or any of the
MessagePort objects listed in close();
// event handlers
- attribute Function onmessage;
+ attribute Function? onmessage;
};
MessagePort implements EventTarget;
@@ -91008,8 +90979,8 @@
ports.
Throws an INVALID_STATE_ERR if the ports array is not null and it contains either null
- entries, duplicate ports, or the source or target port.
If the method was called with a second argument ports and that argument isn't null, then, if any of
- the entries in ports are null, if any
- MessagePort object is listed in ports more than once, if any of the
- MessagePort objects listed in ports have already been cloned once before, or if
- any of the entries in ports are either the source port or the target port
- (if any), then throw an INVALID_STATE_ERR
- exception.
MessagePort object
+ is listed in ports more than once, if any of the
+ MessagePort objects listed in ports
+ have already been cloned once before, or if any of the entries
+ in ports are either the source
+ port or the target port (if any), then
+ throw an INVALID_STATE_ERR exception.
Create an event that uses the MessageEvent
interface, with the name .
If the method was called with a second argument ports and that argument isn't null, then run the - following substeps:
+ title="">ports, then run the following substeps:interface Storage {
readonly attribute unsigned long length;
- DOMString key(in unsigned long index);
+ DOMString? key(in unsigned long index);
getter any getItem(in DOMString key);
setter creator void setItem(in DOMString key, in any value);
deleter void removeItem(in DOMString key);
@@ -91867,8 +91834,8 @@
readonly attribute any oldValue;
readonly attribute any newValue;
readonly attribute DOMString url;
- readonly attribute Storage storageArea;
- void initStorageEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in any oldValueArg, in any newValueArg, in DOMString urlArg, in Storage storageAreaArg);
+ readonly attribute Storage? storageArea;
+ void initStorageEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in any oldValueArg, in any newValueArg, in DOMString urlArg, in Storage? storageAreaArg);
};
The vspace;
attribute DOMString width;
- attribute Function onbounce;
- attribute Function onfinish;
- attribute Function onstart;
+ attribute Function? onbounce;
+ attribute Function? onfinish;
+ attribute Function? onstart;
void start();
void stop();
@@ -107496,26 +107463,26 @@
The The interface HTMLFrameSetElement : HTMLElement {
attribute DOMString cols;
attribute DOMString rows;
- attribute Function onafterprint;
- attribute Function onbeforeprint;
- attribute Function onbeforeunload;
- attribute Function onblur;
- attribute Function onerror;
- attribute Function onfocus;
- attribute Function onhashchange;
- attribute Function onload;
- attribute Function onmessage;
- attribute Function onoffline;
- attribute Function ononline;
- attribute Function onpagehide;
- attribute Function onpageshow;
- attribute Function onpopstate;
- attribute Function onredo;
- attribute Function onresize;
- attribute Function onscroll;
- attribute Function onstorage;
- attribute Function onundo;
- attribute Function onunload;
+ attribute Function? onafterprint;
+ attribute Function? onbeforeprint;
+ attribute Function? onbeforeunload;
+ attribute Function? onblur;
+ attribute Function? onerror;
+ attribute Function? onfocus;
+ attribute Function? onhashchange;
+ attribute Function? onload;
+ attribute Function? onmessage;
+ attribute Function? onoffline;
+ attribute Function? ononline;
+ attribute Function? onpagehide;
+ attribute Function? onpageshow;
+ attribute Function? onpopstate;
+ attribute Function? onredo;
+ attribute Function? onresize;
+ attribute Function? onscroll;
+ attribute Function? onstorage;
+ attribute Function? onundo;
+ attribute Function? onunload;
};
cols and
@@ -107634,8 +107601,8 @@
attribute boolean noResize;
attribute DOMString scrolling;
attribute DOMString src;
- readonly attribute Document contentDocument;
- readonly attribute WindowProxy contentWindow;
+ readonly attribute Document? contentDocument;
+ readonly attribute WindowProxy? contentWindow;
};
name,