[Bug 16018] Exclude disabled form controls from specially focusable elements.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16018

--- Comment #1 from Kang-Hao (Kenny) Lu <kennyluck@csail.mit.edu> 2012-02-17 17:46:05 UTC ---
This paragraph doesn't exclude disabled form controls that have tabindex
specified. In the following test case "onfocus" doesn't appear in IE9, Firefox
10, Safari 5 and Chromium 18

data:text/html,<!DOCTYPE html><textarea tabindex="0" disabled
onfocus='document.write("onfocus");'>CLICK</textarea><script>document.querySelector('textarea').focus()</script>

(Opera12alpha is a bit special but that has nothing to do with 'tabindex'. It
fires the 'focus' event for disabled form controls when focus() is called,
which is not following the spec.)

I think in general this paragraph should exclude all elements :disabled
matches. Test case:

data:text/html,<!DOCTYPE html><fieldset disabled><textarea tabindex="0"
onfocus='document.write("onfocus");'>CLICK</textarea></fieldset><script>document.querySelector('textarea').focus()</script>

Firefox follows my expectable but IE9 and WebKit browsers don't. That's because
they don't implement 'disabled' on <fieldset>.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 17 February 2012 17:46:07 UTC