};
[
- GlobalContext=Window&WorkerGlobalScope,
+ WillBeGarbageCollected,
ActiveDOMObject,
- Constructor,
- ConstructorCallWith=ExecutionContext,
- CustomConstructor(optional XMLHttpRequestOptions options)
+ CustomConstructor(optional XMLHttpRequestOptions options),
+ Exposed=Window&Worker
] interface XMLHttpRequest : XMLHttpRequestEventTarget {
// event handler attributes
attribute EventHandler onreadystatechange;
const unsigned short LOADING = 3;
const unsigned short DONE = 4;
- [SetterRaisesException] attribute unsigned long timeout;
+ [RaisesException=Setter] attribute unsigned long timeout;
readonly attribute unsigned short readyState;
- [SetterRaisesException] attribute boolean withCredentials;
+ [RaisesException=Setter] attribute boolean withCredentials;
- [Custom, ActivityLogging=AccessForAllWorlds, RaisesException] void open(DOMString method, DOMString url, optional boolean async, optional DOMString user, optional DOMString password);
+ [Custom, LogActivity, LogAllWorlds, RaisesException] void open(DOMString method, DOMString url, optional boolean async, optional DOMString user, optional DOMString password);
- [ActivityLogging=AccessForAllWorlds, RaisesException] void setRequestHeader(DOMString header, DOMString value);
+ [LogActivity, LogAllWorlds, RaisesException] void setRequestHeader(DOMString header, DOMString value);
[Custom, RaisesException] void send();
readonly attribute XMLHttpRequestUpload upload;
// response
- [TreatReturnedNullStringAs=Undefined, RaisesException] DOMString getAllResponseHeaders();
- [TreatReturnedNullStringAs=Null, RaisesException] DOMString getResponseHeader(DOMString header);
- [CustomGetter, GetterRaisesException] readonly attribute DOMString responseText; // The custom getter implements TreatReturnedNullStringAs=Null
- [GetterRaisesException] readonly attribute Document responseXML;
+ [TreatReturnedNullStringAs=Undefined] DOMString getAllResponseHeaders();
+ [TreatReturnedNullStringAs=Null] DOMString getResponseHeader(DOMString header);
+ [Custom=Getter, RaisesException=Getter] readonly attribute DOMString responseText; // The custom getter implements TreatReturnedNullStringAs=Null
+ [RaisesException=Getter] readonly attribute Document responseXML;
- [SetterRaisesException] attribute XMLHttpRequestResponseType responseType;
- [CustomGetter, GetterRaisesException] readonly attribute Object response;
+ [RaisesException=Setter] attribute XMLHttpRequestResponseType responseType;
+ [Custom=Getter, RaisesException=Getter] readonly attribute object response;
- [GetterRaisesException] readonly attribute unsigned short status;
- [GetterRaisesException] readonly attribute DOMString statusText;
+ readonly attribute unsigned short status;
+ readonly attribute DOMString statusText;
// Extension
void overrideMimeType(DOMString override);