This project is archived and is in readonly mode.

#1018 ✓resolved
Fábio M. Costa

the :checked pseudo should follow W3C docs

Reported by Fábio M. Costa | September 27th, 2010 @ 06:39 AM | in 1.3.0 rc2 (closed)

the :checked pseudo-class, according to W3c, should get the selected options too:

From: http://www.w3.org/TR/css3-selectors/#checked

"For example, the :checked pseudo-class initially applies to such elements that have the HTML4 selected and checked attributes as described in Section 17.2.1 of HTML4, but of course the user can toggle "off" such elements in which case the :checked pseudo-class would no longer apply."

It's important to mention that some browsers implement this pseudo-selector incorrectly on theyres querySelectorAll (QSA) methods. So we need:

  • A feature detection;
  • The checked pseudo should be fixed to accept selected elements too;

We will check if the passed expression matches ":checked" than, depending on the result of the feature detection, we wont use QSA.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Pages