Closed Bug 903358 Opened 12 years ago Closed 12 years ago

window.screen.lockOrientation() documentation wrongly assumes that N arguments can be passed

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mounir, Assigned: bruant.d)

Details

See: https://developer.mozilla.org/en-US/docs/Web/API/window.screen.lockOrientation Actually, the caller can whether pass one DOMString or a sequence<DOMString> but it is always one argument, see the specification: http://dvcs.w3.org/hg/screen-orientation/raw-file/tip/Overview.html
Thanks for reporting this, Mounir. Please use the "Developer Documentation" product for future bug reports and remember that you can always edit the documentation yourself by clicking "Edit".
Assignee: nobody → bruant.d
Component: General → JavaScript
Product: Mozilla Developer Network → Developer Documentation
Component: JavaScript → DOM
(In reply to John Karahalis [:openjck] from comment #1) > you can always edit the documentation yourself by clicking "Edit". True Mounir. Also, you should come to a doc sprint once just to try it out, your knowledge of the platform could benefit web devs a lot ;-) Fixed the page. Tell me if you agree with how it's been changed. If you agree, close this bug. Thanks :-)
David, Mounir already came to a doc sprint ;-) He's a true "friend of the doc".
(In reply to David Bruant from comment #2) > True Mounir. Also, you should come to a doc sprint once just to try it out, > your knowledge of the platform could benefit web devs a lot ;-) Sorry about that. I could indeed have done that but I was in the middle of other things. Thanks for fixing this though :)
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
I added an example with an Array and updated the compat table. I also turned bug 784549 to dev-doc-complete ;-) (Firefox 18).
You need to log in before you can comment on or make changes to this bug.