W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2010

[whatwg] Two propositions for the autofocus attribute

From: Kit Grose <kit@iqmultimedia.com.au>
Date: Fri, 16 Apr 2010 17:30:09 +1000
Message-ID: <C8330688-32F0-45C7-BDC4-05557BB244D2@iqmultimedia.com.au>
On 16/04/2010, at 5:06 PM, Markus Ernst wrote:

> Is it not possible to say the autofocus attribute is readonly? It dose 
> IMO not make sense to apply it via scripting, as focus() is available 
> for scripting.

What if the form is received via XHR as HTML and simply injected to the page using innerHTML?

I admit I don't know of any other read-only HTML attributes to test the standard behaviour under those conditions.

A more similar outcome to this might be how browsers cope with adding an additional <input type="radio" name="foo" checked/> element to a form with another radio button named accordingly. A cursory glance shows that WebKit checks the new input and unchecks the previous selection, even if the user had previously made a selection.

?Kit
Received on Friday, 16 April 2010 00:30:09 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:22 UTC