Closed Bug 1167831 Opened 9 years ago Closed 9 years ago

Document for XMLHttpRequest is wrong

Categories

(Developer Documentation Graveyard :: API: DOM, defect)

All
Other
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: litimetal, Assigned: sheppy)

References

Details

(Whiteboard: [specification][type:bug])

What did you do?
================
Visit https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#init%28%29

What happened?
==============
Non-standard methods
init()

Initializes the object for use from C++ code.
Warning: This method must not be called from JavaScript.

[noscript] void init(
   in nsIPrincipal principal,
   in nsIScriptContext scriptContext,
   in nsPIDOMWindow ownerWindow
);

What should have happened?
==========================
In  dom/base/nsIXMLHttpRequest.idl
  [noscript] void init(in nsIPrincipal principal,
                       in nsIScriptContext scriptContext,
                       in nsIGlobalObject globalObject,
                       in nsIURI baseURI,
                       [optional] in nsILoadGroup loadGroup);


Is there anything else we should know?
======================================
Product: Mozilla Developer Network → Developer Documentation
The point here is that there are new arguments added to the init() method that are not yet documented.
Component: General → API: DOM
I'll work on this. I will also rework this page into a modern layout documentation set based on MDN's current style guide.
Assignee: nobody → eshepherd
:sheppy, any progress on this?
Flags: needinfo?(eshepherd)
Updated the init() documentation here: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#init%28%29 with the missing information.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(eshepherd)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.