-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Window.open() needs an overhaul #4583
Comments
This seems interesting, if you don't mind a newbie contributor taking a look, I can try to take this ! |
Sure thing @jamesaucode , happy for you to give it a try. Assigned. Don't hesitate to shout if you need help or want any feedback. |
That sounds great! As Chris says, please don't hesitate to ask for feedback. Personally in a case like this I'd recommend being bold when it comes to making changes :). And consider the way we try to have pages organized at the top level - there's some meta-documentation about this here: https://developer.mozilla.org/en-US/docs/MDN/Structures/Page_types#api_reference_subpage . I'm not sure offhand which would be a good page to copy, but usually for API reference pages like this we should have a top-level organization like: Preamble |
Thank you! Will start working on this after work today :) Will let you all know if I have any questions. |
Apologies for the lack of update. I've been working on the overhaul over the last week. I added a Window Proxy page as it's referenced in the Here are a few questions I have for the maintainers: @wbamberg @chrisdavidmills
Thanks |
I would say no. I just gave it a flick through, and there is quite a lot of eye-wateringly old fashioned stuff in there. Anything that is just plain wrong, not useful, or even harmful to modern web development, should be removed.
As a caveat to the above, I would say that features that are still supported probably need mentioning, at least briefly. I'm not convinced that they need the level of detail that is included in the current window features section.
It is definitely appropriate to mention alternatives that are preferred these days, but the preferred way would be to include a brief mention and then link to other resources that provide more details, and not embed a tutorial on building modals into the document, as it is not of central relevant to the subject in hand. (Sorry if that comes across as painfully obvious, but just wanted to make sure we were clear ;-) ) |
Hi @wbamberg @chrisdavidmills @jamesaucode, It looks like this hasn't been discussed in a while... Mind if I shoot my shot? It would be my first contribution, and I might be getting in over my head, but I am feeling brave! Thanks |
I'd be very happy for you to have a go at this! I'll try to answer any questions you have and/or review early drafts if you think that would help. BTW Chris isn't working on MDN any more. |
Im really sorry I forgot I have picked up this task. I have a rough draft locally but I haven't dug deep into the topic. Thanks for picking this up. |
No worries James, I know how it is :). |
* Fixes #4583 * Apply suggestions from code review Co-authored-by: Joe Medley <jmedley@google.com> * Update files/en-us/web/api/window/open/index.md Co-authored-by: Joe Medley <jmedley@google.com> * Update index.md * Removed deprecated UI features * Restored content Restored best practices, FAQ and notes sections for later consideration through a new issue. Retained the removal of the tutorials and references sections since links were broken and the tutorials were painfully out of date. (not sure if I restored this correctly, so forgive my naivety if I didn't) * Apply suggestions from wbamberg review Co-authored-by: wbamberg <will@bootbonnet.ca> * responses to wbamberg comments * Update files/en-us/web/api/window/open/index.md Co-authored-by: wbamberg <will@bootbonnet.ca> * Reinstate addition from PR 13648 Co-authored-by: Joe Medley <jmedley@google.com> Co-authored-by: wbamberg <will@bootbonnet.ca>
@wbamberg may I ask to reopen this one? I'm updating the French translation (to remove some old macro) vs the English reference and I do agree that the second part (from FAQ or even Examples) definitely needs some work (on which I would really be happy to help in a few days). Edit: note to self:
|
Thank you @SphinxKnight ! |
I did not forget this one and intend to be back at it in a few days :x |
I guess the PR is kind of ready. I checked the last edits on this page during conflict merge and I think I got them all. |
https://developer.mozilla.org/en-US/docs/Web/API/Window/open is long, rambling, and very out of date. It needs a brave person to work out what a page on this feature should contain in
20212022.The text was updated successfully, but these errors were encountered: