This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27245 - :active should not match <input type=button disabled>
Summary: :active should not match <input type=button disabled>
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: https://html.spec.whatwg.org/#selecto...
Whiteboard:
Keywords:
: 27246 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-11-05 11:06 UTC by contributor
Modified: 2015-01-07 01:26 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2014-11-05 11:06:18 UTC
Specification: https://html.spec.whatwg.org/multipage/scripting.html
Multipage: https://html.spec.whatwg.org/multipage/#selector-active
Complete: https://html.spec.whatwg.org/#selector-active
Referrer: https://html.spec.whatwg.org/multipage/

Comment:
:active should not match <input type=button disabled>

"input elements whose type attribute is in the Submit Button, Image Button,
Reset Button, or Button state"

add: "that are not disabled"

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3286

Posted from: 90.230.218.37 by simonp@opera.com
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.101 Safari/537.36 OPR/25.0.1614.35 (Edition beta)
Comment 1 Ian 'Hixie' Hickson 2014-11-06 00:44:27 UTC
Ah, yeah. Maybe I should make this more generic to handle <button> at the same time, rather than both of them being special-cased.
Comment 2 Ian 'Hixie' Hickson 2014-11-07 21:35:38 UTC
*** Bug 27246 has been marked as a duplicate of this bug. ***
Comment 3 Ian 'Hixie' Hickson 2014-11-07 21:36:27 UTC
Also disabled elements that "have their tabindex focus flag set", or inert elements.
Comment 4 Ian 'Hixie' Hickson 2015-01-07 00:28:18 UTC
Note that this doesn't apply to the magic via <label> or to text fields:

http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=3352
http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=3353
Comment 5 contributor 2015-01-07 00:52:56 UTC
Checked in as WHATWG revision r8875.
Check-in comment: Fix the definition of :active to not be self-contradictory and to slightly better match reality for buttons. I'll submit a second patch that makes this readable in a second.
https://html5.org/tools/web-apps-tracker?from=8874&to=8875
Comment 6 contributor 2015-01-07 01:26:40 UTC
Checked in as WHATWG revision r8877.
Check-in comment: Reword the :active logic to be at least somewhat readable.
https://html5.org/tools/web-apps-tracker?from=8876&to=8877