css3-selectors

changeset 66:3d6bd01688c6

Tentatively handle the :contains() pseudo-class
author Emanuele Aina <em@nerd.ocracy.org>
date Mon Nov 10 22:50:07 2008 +0100 (20 months ago)
parents 545d532432d9
children cc0eaffb6660
files Css3SelectorExperiment.cs
line diff
     1.1 --- a/Css3SelectorExperiment.cs	Mon Nov 10 22:37:32 2008 +0100
     1.2 +++ b/Css3SelectorExperiment.cs	Mon Nov 10 22:50:07 2008 +0100
     1.3 @@ -170,6 +170,8 @@
     1.4                  case "not": return String.Format("[not({0})]", ToXPathString(Argument));
     1.5                  case "nth-child": return String.Format("[count(preceding-sibling::*)={0}-1]", Argument);
     1.6                  case "lang": return String.Format("[@xml:lang='{0}' or starts-with(@xml:lang,'{0}-')]", Argument);
     1.7 +                // TODO: removed from the CSS3 draft, underspecified, check its behaviour against other implementations
     1.8 +                case "contains": return String.Format("[contains(text(),'{0}')]", Argument);
     1.9              }
    1.10              throw new Exception();
    1.11          }

To download these repositories, get Mercurial and then type something like:

hg clone http://techn.ocracy.org/repository-name/

You can also click the "zip" or "gz" links to get an archive of the latest revision without installing anything.

The change logs of the repositories are aggregated at techn.ocracy.org/planet.

We have also some darcs repositories at techn.ocracy.org/darcs.