|
605 | 605 | t( "Multiple ID selectors using UTF8", "#台北Táiběi, #台北", ["台北Táiběi","台北"] ); |
606 | 606 | t( "Descendant ID selector using UTF8", "div #台北", ["台北"] ); |
607 | 607 | t( "Child ID selector using UTF8", "form > #台北", ["台北"] ); |
608 | | - |
| 608 | + |
609 | 609 | t( "Escaped ID", "#foo\\:bar", ["foo:bar"] ); |
610 | 610 | t( "Escaped ID", "#test\\.foo\\[5\\]bar", ["test.foo[5]bar"] ); |
611 | 611 | t( "Descendant escaped ID", "div #foo\\:bar", ["foo:bar"] ); |
612 | 612 | t( "Descendant escaped ID", "div #test\\.foo\\[5\\]bar", ["test.foo[5]bar"] ); |
613 | 613 | t( "Child escaped ID", "form > #foo\\:bar", ["foo:bar"] ); |
614 | 614 | t( "Child escaped ID", "form > #test\\.foo\\[5\\]bar", ["test.foo[5]bar"] ); |
615 | | - |
| 615 | + |
616 | 616 | t( "ID Selector, child ID present", "#form > #radio1", ["radio1"] ); // bug #267 |
617 | 617 | t( "ID Selector, not an ancestor ID", "#form #first", [] ); |
618 | 618 | t( "ID Selector, not a child ID", "#form > #option1a", [] ); |
619 | | - |
| 619 | + |
620 | 620 | t( "All Children of ID", "#foo > *", ["sndp", "en", "sap"] ); |
621 | 621 | t( "All Children of ID with no children", "#firstUL > *", [] ); |
622 | 622 |
|
|
628 | 628 | t( "Class Selector", ".blog.link", ["simon"] ); |
629 | 629 | t( "Class Selector w/ Element", "a.blog", ["mark","simon"] ); |
630 | 630 | t( "Parent Class Selector", "p .blog", ["mark","simon"] ); |
631 | | - |
| 631 | + |
632 | 632 | t( "Class selector using UTF8", ".台北Táiběi", ["utf8class1"] ); |
633 | 633 | t( "Class selector using UTF8", ".台北", ["utf8class1","utf8class2"] ); |
634 | 634 | t( "Class selector using UTF8", ".台北Táiběi.台北", ["utf8class1"] ); |
|
690 | 690 | t( "Nth-child", "#form #select1 option:nth-child(3n+0)", ["option1c"] ); |
691 | 691 | t( "Nth-child", "#form #select1 option:nth-child(-n+3)", ["option1a", "option1b", "option1c"] ); |
692 | 692 |
|
| 693 | + t( "Pseudo-class with multiple WSP leading and around parameters", "#form #select1 option:nth-child( 3n - 3)", ["option1c"] ); |
| 694 | + t( "Pseudo-class with multiple WSP trailing and around parameters", "#form #select1 option:nth-child(3n - 3 )", ["option1c"] ); |
| 695 | + t( "Pseudo-class with \\t and WSP leading and around parameters", "#form #select1 option:nth-child(\t 3n - 3)", ["option1c"] ); |
| 696 | + t( "Pseudo-class with \\t and WSP trailing and around parameters", "#form #select1 option:nth-child(3n - 3 \t)", ["option1c"] ); |
| 697 | + t( "Pseudo-class with WSP and \\t before and around parameters", "#form #select1 option:nth-child( \t 3n - 3)", ["option1c"] ); |
| 698 | + t( "Pseudo-class with WSP and \\t after and around parameters", "#form #select1 option:nth-child(3n - 3 \t )", ["option1c"] ); |
| 699 | + t( "Pseudo-class with multiple WSP and \\t mixed before parameters", "#form #select1 option:nth-child( \t\t\t 3n - 3)", ["option1c"] ); |
| 700 | + t( "Pseudo-class with multiple WSP and \\t mixed after parameters", "#form #select1 option:nth-child(3n - 3 \t\t\t )", ["option1c"] ); |
| 701 | + |
693 | 702 | t( "Attribute Exists", "a[title]", ["google"] ); |
694 | 703 | t( "Attribute Exists", "*[title]", ["google"] ); |
695 | 704 | t( "Attribute Exists", "[title]", ["google"] ); |
|
0 commit comments