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).
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.
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).