News for hackers. Stuff that matters.
Re:Ask HN: Why do browsers still support pop up dialogs and ... by evmar on Saturday May 21, 2016 @10:33PM (#11747164)
Most of HTML's behaviors are "specced" in the sense that the WHATWG sat down and documented the behaviors of Internet Explorer and Netscape that they witnessed sites out in the wild depending on.

On Windows Chrome, your demo pages block the entire browser, including other windows. Windows Chrome has had the most attention paid to "old" web compat.

When we were making Linux/Mac Chrome I remember a point where we were looking at porting the cross-process lock functionality and similarly wondering "what site could ever need this". I remember punting the bug to implement this for quite a while; I'm not certain it ever got fixed.

If you wanna have your mind blown along these sorts of crazy web behaviors, you should look up the semantics of the "showModalDialog" browser API, and also the many people who were upset about Chrome's recent removal of it.

Re:Ask HN: Why do browsers still support pop up dialogs and ... by DonHopkins on Sunday May 22, 2016 @12:13AM (#11747349)
Mind = blown!

This is comically terrible:

https://msdn.microsoft.com/en-us/library/ms536759(v=vs.85).a...

>Neither modal nor modeless HTML dialog boxes support text selection or the standard shortcut menu for copy operations; however, you can imitate this functionality by using script with TextRange objects and event handlers for onmousedown and onmousemove, ...