GoogleChrome / dialog-polyfill

Polyfill for the HTML dialog element
BSD 3-Clause "New" or "Revised" License
2.45k stars 245 forks source link

returnValue isn't always set properly #102

Closed samthor closed 8 years ago

samthor commented 8 years ago

In testing a simple <form method="dialog">, it's pretty easy to get the value of the focused element returned (rather than the value of the button used, which is what the spec days).

samthor commented 8 years ago

Actually - never mind, this isn't a bug. Hitting enter on an input type="text" sets the returnValue to that element's content even in native, it doesn't naturally "fall through" to the default button.