<pid="firstp">See <aid="simon1"href="http://simon.incutio.com/archive/2003/03/25/#getElementsBySelector"rel="bookmark">this blog entry</a> for more information.</p>
<pid="ap">
Here are some [links] in a normal paragraph: <aid="google"href="http://www.google.com/"title="Google!">Google</a>,
<aid="groups"href="http://groups.google.com/"class="GROUPS">Google Groups (Link)</a>.
This link has <codeid="code1"><ahref="http://smin"id="anchor1">class="blog"</a></code>:
<pid="sndp">Everything inside the red border is inside a div with <code>id="foo"</code>.</p>
<plang="en"id="en">This is a normal link: <aid="yahoo"href="http://www.yahoo.com/"class="blogTest">Yahoo</a></p>
<pid="sap">This link has <code><ahref="#2"id="anchor2">class="blog"</a></code>: <ahref="http://simon.incutio.com/"class="blog link"id="simon">Simon Willison's Weblog</a></p>
t("Multiple matches with the same context (cache check)","#form select:has(option:first-child:contains('o'))",["select1","select2","select3","select4"]);
ok(Sizzle("#qunit-fixture :not(:has(:has(*)))").length,"All not grandparents");
t(":not chaining (colon in attribute)","#qunit-fixture form[id]:not([action='form:action']):not(:button)",["form","lengthtest","name-tests","testForm"]);
t(":not chaining (colon in attribute and nested chaining)","#qunit-fixture form[id]:not([action='form:action']:button):not(:input)",["form","lengthtest","name-tests","testForm"]);
t("Position Less Than","#qunit-fixture p:lt(3)",["firstp","ap","sndp"]);
t("Check position filtering","div#nothiddendiv:eq(0)",["nothiddendiv"]);
t("Check position filtering","div#nothiddendiv:last",["nothiddendiv"]);
t("Check position filtering","div#nothiddendiv:not(:gt(0))",["nothiddendiv"]);
t("Check position filtering","#foo > :not(:first)",["en","sap"]);
t("Check position filtering","#qunit-fixture select > :not(:gt(2))",["option1a","option1b","option1c"]);
t("Check position filtering","#qunit-fixture select:lt(2) :not(:first)",["option1b","option1c","option1d","option2a","option2b","option2c","option2d"]);
t("Check position filtering","div.nothiddendiv:eq(0)",["nothiddendiv"]);
t("Check position filtering","div.nothiddendiv:last",["nothiddendiv"]);
t("Check position filtering","div.nothiddendiv:not(:lt(0))",["nothiddendiv"]);
t("Check element position","#qunit-fixture div div:eq(0)",["nothiddendivchild"]);
t("Check element position","#select1 option:eq(3)",["option1d"]);
t("Check element position","#qunit-fixture div div:eq(10)",["names-group"]);
t("Check element position","#qunit-fixture div div:first",["nothiddendivchild"]);
t("Check element position","#qunit-fixture div > div:first",["nothiddendivchild"]);
t("Check element position","#dl div:first div:first",["foo"]);
t("Check element position","#dl div:first > div:first",["foo"]);
t("Check element position","div#nothiddendiv:first > div:first",["nothiddendivchild"]);
t("Chained pseudo after a pos pseudo","#listWithTabIndex li:eq(0):contains(Rice)",["foodWithNegativeTabIndex"]);
t("Check sort order with POS and comma","#qunit-fixture em>em>em>em:first-child,div>em:first",["siblingfirst","siblinggreatgrandchild"]);
t("Isolated position",":last",["last"]);
deepEqual(Sizzle("*:lt(2) + *",null,[],Sizzle("#qunit-fixture > p")),q("ap"),"Seeded pos with trailing relative");
t("Form element :input","#form :input",["text1","text2","radio1","radio2","check1","check2","hidden1","hidden2","name","search","button","area1","select1","select2","select3","select4","select5","impliedText","capitalText"]);
t("Form element :radio","#form :radio",["radio1","radio2"]);
t("Form element :checkbox","#form :checkbox",["check1","check2"]);
t("Form element :text","#form :text",["text1","text2","hidden2","name","impliedText","capitalText"]);
t("Form element :radio:checked","#form :radio:checked",["radio2"]);
t("Form element :checkbox:checked","#form :checkbox:checked",["check1"]);
t("Form element :radio:checked, :checkbox:checked","#form :radio:checked, #form :checkbox:checked",["radio2","check1"]);
t("Selected Option Element are also :checked","#form option:checked",["option1a","option2d","option3b","option3c","option4b","option4c","option4d","option5a"]);
t("Hidden inputs should be treated as enabled. See QSA test.","#hidden1:enabled",["hidden1"]);