diff --git a/file.json b/file.json new file mode 100644 index 0000000..a38b969 --- /dev/null +++ b/file.json @@ -0,0 +1,855 @@ +650-595-3003 TelAddress:A Tavola1041 Middlefield RoadRedwood City, CA 94061Neighborhood/Area:Redwood CityDiningGuidesm Category(ies):American, Italian, BarOpen:Monday-Friday 11:30 am-10:00 pmSaturday 5:30 pm-10:00 pmSunday 5:30 pm-9:00 pmMeals Served:Lunch. Dinner. Group Capacity:150Cost:ModerateOther Info:Take Out. Live Entertainment. Reservations Accepted. Outdoor Dining. Children's Menu Available. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +A Tavola1041 Middlefield RoadRedwood City, CA 94061Neighborhood/Area:Redwood CityDiningGuidesm Category(ies):American, Italian, BarOpen:Monday-Friday 11:30 am-10:00 pmSaturday 5:30 pm-10:00 pmSunday 5:30 pm-9:00 pmMeals Served:Lunch. Dinner. Group Capacity:150Cost:ModerateOther Info:Take Out. Live Entertainment. Reservations Accepted. Outdoor Dining. Children's Menu Available. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Redwood City, +American, Italian, BarOpen:Monday-Friday 11:30 am-10:00 pmSaturday 5:30 pm-10:00 pmSunday 5:30 pm-9:00 pmMeals Served:Lunch. Dinner. Group Capacity:150Cost:ModerateOther Info:Take Out. Live Entertainment. Reservations Accepted. Outdoor Dining. Children's Menu Available. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Monday-Friday 11:30 am-10:00 pmSaturday 5:30 pm-10:00 pmSunday 5:30 pm-9:00 pmMeals Served:Lunch. Dinner. Group Capacity:150Cost:ModerateOther Info:Take Out. Live Entertainment. Reservations Accepted. Outdoor Dining. Children's Menu Available. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Lunch. Dinner. Group Capacity:150Cost:ModerateOther Info:Take Out. Live Entertainment. Reservations Accepted. Outdoor Dining. Children's Menu Available. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +150Cost:ModerateOther Info:Take Out. Live Entertainment. Reservations Accepted. Outdoor Dining. Children's Menu Available. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +ModerateOther Info:Take Out. Live Entertainment. Reservations Accepted. Outdoor Dining. Children's Menu Available. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Take Out. Live Entertainment. Reservations Accepted. Outdoor Dining. Children's Menu Available. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +415-927-4347 TelAddress:A.G. Ferrari107 Corte Madera Town CenterCorte Madera Town CenterCorte Madera, CA 94925Neighborhood/Area:Corte MaderaDiningGuidesm Category(ies):Delicatessen, +A.G. Ferrari107 Corte Madera Town CenterCorte Madera Town CenterCorte Madera, CA 94925Neighborhood/Area:Corte MaderaDiningGuidesm Category(ies):Delicatessen, +Corte Madera, +Delicatessen, +415-398-7918 TelAddress:A-1 Cafe Restaurant779 Clay StreetSan Francisco, CA 94108Neighborhood/Area:ChinatownDiningGuidesm Category(ies):Chinese, +A-1 Cafe Restaurant779 Clay StreetSan Francisco, CA 94108Neighborhood/Area:ChinatownDiningGuidesm Category(ies):Chinese, +Chinatown, +Chinese, +415-344-0644 TelAddress:A.G. Ferrari Foods688 Mission StreetSan Francisco, CA 94105Neighborhood/Area:South of MarketDiningGuidesm Category(ies):Italian, +A.G. Ferrari Foods688 Mission StreetSan Francisco, CA 94105Neighborhood/Area:South of MarketDiningGuidesm Category(ies):Italian, +South of Market, +Italian, +415-771-6775 Tel415-771-6777 FaxAddress:A. Sabella's Restaurant2766 Taylor Street3rd FloorSan Francisco, CA 94133Neighborhood/Area:North BeachDiningGuidesm Category(ies):Italian, Seafood, BarOpen:Monday-Sunday 5:00 pm-9:45 pmMeals Served:Dinner. Max. Capacity:140Group Capacity:100Cost:ExpensiveOther Info:Reservations Accepted. Full Bar on Site. Children's Menu Available. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +A. Sabella's Restaurant2766 Taylor Street3rd FloorSan Francisco, CA 94133Neighborhood/Area:North BeachDiningGuidesm Category(ies):Italian, Seafood, BarOpen:Monday-Sunday 5:00 pm-9:45 pmMeals Served:Dinner. Max. Capacity:140Group Capacity:100Cost:ExpensiveOther Info:Reservations Accepted. Full Bar on Site. Children's Menu Available. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +North Beach, +Italian, Seafood, BarOpen:Monday-Sunday 5:00 pm-9:45 pmMeals Served:Dinner. Max. Capacity:140Group Capacity:100Cost:ExpensiveOther Info:Reservations Accepted. Full Bar on Site. Children's Menu Available. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Monday-Sunday 5:00 pm-9:45 pmMeals Served:Dinner. Max. Capacity:140Group Capacity:100Cost:ExpensiveOther Info:Reservations Accepted. Full Bar on Site. Children's Menu Available. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Dinner. Max. Capacity:140Group Capacity:100Cost:ExpensiveOther Info:Reservations Accepted. Full Bar on Site. Children's Menu Available. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +140Group Capacity:100Cost:ExpensiveOther Info:Reservations Accepted. Full Bar on Site. Children's Menu Available. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +100Cost:ExpensiveOther Info:Reservations Accepted. Full Bar on Site. Children's Menu Available. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +ExpensiveOther Info:Reservations Accepted. Full Bar on Site. Children's Menu Available. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Reservations Accepted. Full Bar on Site. Children's Menu Available. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +[American Express] [MasterCard] [Visa], +415-255-6590 TelAddress:A.G. Ferrari Foods468 Castro StreetSan Francisco, CA 94114Neighborhood/Area:The CastroDiningGuidesm Category(ies):Italian, +A.G. Ferrari Foods468 Castro StreetSan Francisco, CA 94114Neighborhood/Area:The CastroDiningGuidesm Category(ies):Italian, +The Castro, +Italian, +415-252-0180 Tel415-252-1533 FaxAddress:A2 Cafe1111 8th StreetSan Francisco, CA 94107DiningGuidesm Category(ies):Sandwich Shop, +A2 Cafe1111 8th StreetSan Francisco, CA 94107DiningGuidesm Category(ies):Sandwich Shop, +Sandwich Shop, +415-771-2216 TelAddress:A162355 Chestnut StreetSan Francisco, CA 94123Neighborhood/Area:Marina DistrictDiningGuidesm Category(ies):Italian, BarOpen:Wednesday-Thursday 11:30 am-10:00 pmFriday 11:30 am-11:00 pmSaturday 5:00 pm-11:00 pmSunday 5:00 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Valet Parking. Reservations Accepted. Full Bar on Site. Getting Here:Located in the Marina District, between Scott and DivisaderoCredit Cards Accepted:[American Express] [MasterCard] [Visa], +A162355 Chestnut StreetSan Francisco, CA 94123Neighborhood/Area:Marina DistrictDiningGuidesm Category(ies):Italian, BarOpen:Wednesday-Thursday 11:30 am-10:00 pmFriday 11:30 am-11:00 pmSaturday 5:00 pm-11:00 pmSunday 5:00 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Valet Parking. Reservations Accepted. Full Bar on Site. Getting Here:Located in the Marina District, between Scott and DivisaderoCredit Cards Accepted:[American Express] [MasterCard] [Visa], +Marina District, +Italian, BarOpen:Wednesday-Thursday 11:30 am-10:00 pmFriday 11:30 am-11:00 pmSaturday 5:00 pm-11:00 pmSunday 5:00 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Valet Parking. Reservations Accepted. Full Bar on Site. Getting Here:Located in the Marina District, between Scott and DivisaderoCredit Cards Accepted:[American Express] [MasterCard] [Visa], +Wednesday-Thursday 11:30 am-10:00 pmFriday 11:30 am-11:00 pmSaturday 5:00 pm-11:00 pmSunday 5:00 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Valet Parking. Reservations Accepted. Full Bar on Site. Getting Here:Located in the Marina District, between Scott and DivisaderoCredit Cards Accepted:[American Express] [MasterCard] [Visa], +Lunch. Dinner. Cost:ModerateOther Info:Valet Parking. Reservations Accepted. Full Bar on Site. Getting Here:Located in the Marina District, between Scott and DivisaderoCredit Cards Accepted:[American Express] [MasterCard] [Visa], +ModerateOther Info:Valet Parking. Reservations Accepted. Full Bar on Site. Getting Here:Located in the Marina District, between Scott and DivisaderoCredit Cards Accepted:[American Express] [MasterCard] [Visa], +Valet Parking. Reservations Accepted. Full Bar on Site. Getting Here:Located in the Marina District, between Scott and DivisaderoCredit Cards Accepted:[American Express] [MasterCard] [Visa], +Located in the Marina District, between Scott and DivisaderoCredit Cards Accepted:[American Express] [MasterCard] [Visa], +[American Express] [MasterCard] [Visa], +415-681-8800 TelAddress:ABC Bakery & Restaurant2500 Noriega StreetSan Francisco, CA 94122DiningGuidesm Category(ies):Chinese, +ABC Bakery & Restaurant2500 Noriega StreetSan Francisco, CA 94122DiningGuidesm Category(ies):Chinese, +Chinese, +650-328-2288 TelAddress:ABC Seafood973 East Hillsdale BoulevardFoster City, CA 94404Neighborhood/Area:Foster CityDiningGuidesm Category(ies):ChineseOpen:Monday-Friday 11:00 am-10:00 pmSaturday 10:00 am-10:00 pmSunday 5:00 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +ABC Seafood973 East Hillsdale BoulevardFoster City, CA 94404Neighborhood/Area:Foster CityDiningGuidesm Category(ies):ChineseOpen:Monday-Friday 11:00 am-10:00 pmSaturday 10:00 am-10:00 pmSunday 5:00 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +Foster City, +ChineseOpen:Monday-Friday 11:00 am-10:00 pmSaturday 10:00 am-10:00 pmSunday 5:00 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +Monday-Friday 11:00 am-10:00 pmSaturday 10:00 am-10:00 pmSunday 5:00 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +Take Out. Catering. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +[Discover] [MasterCard] [Visa], +415-387-2828 TelAddress:Abacus2078 Hayes StreetSan Francisco, CA 94117DiningGuidesm Category(ies):California, ChineseOpen:Monday-Friday 11:30 am-9:30 pmSaturday 5:00 pm-9:30 pmSunday 5:00 pm-9:00 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[MasterCard] [Visa], +Abacus2078 Hayes StreetSan Francisco, CA 94117DiningGuidesm Category(ies):California, ChineseOpen:Monday-Friday 11:30 am-9:30 pmSaturday 5:00 pm-9:30 pmSunday 5:00 pm-9:00 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[MasterCard] [Visa], +California, ChineseOpen:Monday-Friday 11:30 am-9:30 pmSaturday 5:00 pm-9:30 pmSunday 5:00 pm-9:00 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[MasterCard] [Visa], +Monday-Friday 11:30 am-9:30 pmSaturday 5:00 pm-9:30 pmSunday 5:00 pm-9:00 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[MasterCard] [Visa], +Lunch. Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[MasterCard] [Visa], +ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[MasterCard] [Visa], +Take Out. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[MasterCard] [Visa], +[MasterCard] [Visa], +415-981-0803 Tel415-981-0519 FaxAddress:Abc Bakery & Restaurant650 Jackson StreetSan Francisco, CA 94133DiningGuidesm Category(ies):Chinese, +Abc Bakery & Restaurant650 Jackson StreetSan Francisco, CA 94133DiningGuidesm Category(ies):Chinese, +Chinese, +415-551-1590 Tel415-255-2385 FaxAddress:Absinthe398 Hayes StreetSan Francisco, CA 94102DiningGuidesm Category(ies):French, +Absinthe398 Hayes StreetSan Francisco, CA 94102DiningGuidesm Category(ies):French, +French, +415-929-8889 TelAddress:Abigail's Bakery & Cafe2120 Greenwich StreetSan Francisco, CA 94123Neighborhood/Area:Marina DistrictDiningGuidesm Category(ies):American, CafeOpen:Monday-Thursday 8:00 am-9:30 pmFriday 8:00 am-10:00 pmSaturday 9:00 am-10:00 pmSunday 9:00 am-3:00 pmMeals Served:Breakfast. Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Take Out. Live Entertainment. Reservations Accepted. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Abigail's Bakery & Cafe2120 Greenwich StreetSan Francisco, CA 94123Neighborhood/Area:Marina DistrictDiningGuidesm Category(ies):American, CafeOpen:Monday-Thursday 8:00 am-9:30 pmFriday 8:00 am-10:00 pmSaturday 9:00 am-10:00 pmSunday 9:00 am-3:00 pmMeals Served:Breakfast. Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Take Out. Live Entertainment. Reservations Accepted. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Marina District, +American, CafeOpen:Monday-Thursday 8:00 am-9:30 pmFriday 8:00 am-10:00 pmSaturday 9:00 am-10:00 pmSunday 9:00 am-3:00 pmMeals Served:Breakfast. Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Take Out. Live Entertainment. Reservations Accepted. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Monday-Thursday 8:00 am-9:30 pmFriday 8:00 am-10:00 pmSaturday 9:00 am-10:00 pmSunday 9:00 am-3:00 pmMeals Served:Breakfast. Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Take Out. Live Entertainment. Reservations Accepted. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Breakfast. Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Take Out. Live Entertainment. Reservations Accepted. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +ExpensiveOther Info:Take Out. Live Entertainment. Reservations Accepted. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Take Out. Live Entertainment. Reservations Accepted. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +[American Express] [MasterCard] [Visa], +415-551-5127 TelAddress:Absinthe Brasserie and Bar398 Hayes StreetSan Francisco, CA 94102Neighborhood/Area:Civic CenterDiningGuidesm Category(ies):French, New World, BarOpen:Tuesday-Friday 11:30 am-10:00 pmSaturday-Sunday 11:00 am-10:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Valet Parking. Reservations Accepted. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Absinthe Brasserie and Bar398 Hayes StreetSan Francisco, CA 94102Neighborhood/Area:Civic CenterDiningGuidesm Category(ies):French, New World, BarOpen:Tuesday-Friday 11:30 am-10:00 pmSaturday-Sunday 11:00 am-10:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Valet Parking. Reservations Accepted. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Civic Center, +French, New World, BarOpen:Tuesday-Friday 11:30 am-10:00 pmSaturday-Sunday 11:00 am-10:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Valet Parking. Reservations Accepted. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Tuesday-Friday 11:30 am-10:00 pmSaturday-Sunday 11:00 am-10:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Valet Parking. Reservations Accepted. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Valet Parking. Reservations Accepted. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +ModerateOther Info:Take Out. Catering. Valet Parking. Reservations Accepted. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Take Out. Catering. Valet Parking. Reservations Accepted. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +650-654-7785 TelAddress:Absolute1201 Laurel StreetSan Carlos, CA 94070Neighborhood/Area:San CarlosDiningGuidesm Category(ies):California, ItalianOpen:Monday-Saturday 5:00 pm-10:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Absolute1201 Laurel StreetSan Carlos, CA 94070Neighborhood/Area:San CarlosDiningGuidesm Category(ies):California, ItalianOpen:Monday-Saturday 5:00 pm-10:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +San Carlos, +California, ItalianOpen:Monday-Saturday 5:00 pm-10:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Monday-Saturday 5:00 pm-10:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Take Out. Reservations Accepted. Reservations Recommended. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +[American Express] [Discover] [MasterCard] [Visa], +415-567-4903 TelAddress:Ace Wasabi's3339 Steiner StreetSan Francisco, CA 94123DiningGuidesm Category(ies):Japanese, +Ace Wasabi's3339 Steiner StreetSan Francisco, CA 94123DiningGuidesm Category(ies):Japanese, +Japanese, +415-644-0240 TelAddress:Acme Chophouse24 Willie Mays PlazaSan Francisco, CA 94107Neighborhood/Area:Downtown San FranciscoLocated In:AT&T ParkDiningGuidesm Category(ies):Steak, BarOpen:Tuesday-Wednesday 11:00 am-9:00 pmThursday-Friday 11:00 am-10:00 pmSaturday 5:30 pm-10:00 pmSunday 5:30 pm-9:00 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Valet Parking. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Acme Chophouse24 Willie Mays PlazaSan Francisco, CA 94107Neighborhood/Area:Downtown San FranciscoLocated In:AT&T ParkDiningGuidesm Category(ies):Steak, BarOpen:Tuesday-Wednesday 11:00 am-9:00 pmThursday-Friday 11:00 am-10:00 pmSaturday 5:30 pm-10:00 pmSunday 5:30 pm-9:00 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Valet Parking. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Downtown San Francisco, +AT&T ParkDiningGuidesm Category(ies):Steak, BarOpen:Tuesday-Wednesday 11:00 am-9:00 pmThursday-Friday 11:00 am-10:00 pmSaturday 5:30 pm-10:00 pmSunday 5:30 pm-9:00 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Valet Parking. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Steak, BarOpen:Tuesday-Wednesday 11:00 am-9:00 pmThursday-Friday 11:00 am-10:00 pmSaturday 5:30 pm-10:00 pmSunday 5:30 pm-9:00 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Valet Parking. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Tuesday-Wednesday 11:00 am-9:00 pmThursday-Friday 11:00 am-10:00 pmSaturday 5:30 pm-10:00 pmSunday 5:30 pm-9:00 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Valet Parking. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Lunch. Dinner. Cost:ExpensiveOther Info:Valet Parking. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +ExpensiveOther Info:Valet Parking. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Valet Parking. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +650-375-0903 TelAddress:Acquapazza201 East 3rd AvenueSan Mateo, CA 94401Neighborhood/Area:San MateoDiningGuidesm Category(ies):Italian, Mediterranean, BarOpen:Monday-Sunday 11:30 am-10:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Delivery. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Acquapazza201 East 3rd AvenueSan Mateo, CA 94401Neighborhood/Area:San MateoDiningGuidesm Category(ies):Italian, Mediterranean, BarOpen:Monday-Sunday 11:30 am-10:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Delivery. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +San Mateo, +Italian, Mediterranean, BarOpen:Monday-Sunday 11:30 am-10:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Delivery. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Monday-Sunday 11:30 am-10:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Delivery. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Delivery. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +ModerateOther Info:Take Out. Delivery. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Take Out. Delivery. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +415-567-5432 TelAddress:Acquerello1722 Sacramento StreetSan Francisco, CA 94109Neighborhood/Area:Russian HillDiningGuidesm Category(ies):ItalianOpen:Tuesday-Saturday 5:30 pm-10:30 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Reservations Accepted. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Acquerello1722 Sacramento StreetSan Francisco, CA 94109Neighborhood/Area:Russian HillDiningGuidesm Category(ies):ItalianOpen:Tuesday-Saturday 5:30 pm-10:30 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Reservations Accepted. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Russian Hill, +ItalianOpen:Tuesday-Saturday 5:30 pm-10:30 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Reservations Accepted. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Tuesday-Saturday 5:30 pm-10:30 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Reservations Accepted. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Dinner. Cost:ExpensiveOther Info:Reservations Accepted. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +ExpensiveOther Info:Reservations Accepted. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Reservations Accepted. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +415-561-2273 TelAddress:Acre Cafe1013 Torney AvenueBuilding 1013, 1st FloorSan Francisco, CA 94129Neighborhood/Area:Marina DistrictLocated In:Thoreau Center for SustainabilityDiningGuidesm Category(ies):CafeOpen:Monday-Friday 9:00 am-5:00 pmMeals Served:Breakfast. Lunch. Cost:InexpensiveOther Info:Take Out. Getting Here:Located on Torney Avenue at Lincoln BoulevardCredit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Acre Cafe1013 Torney AvenueBuilding 1013, 1st FloorSan Francisco, CA 94129Neighborhood/Area:Marina DistrictLocated In:Thoreau Center for SustainabilityDiningGuidesm Category(ies):CafeOpen:Monday-Friday 9:00 am-5:00 pmMeals Served:Breakfast. Lunch. Cost:InexpensiveOther Info:Take Out. Getting Here:Located on Torney Avenue at Lincoln BoulevardCredit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Marina District, +Thoreau Center for SustainabilityDiningGuidesm Category(ies):CafeOpen:Monday-Friday 9:00 am-5:00 pmMeals Served:Breakfast. Lunch. Cost:InexpensiveOther Info:Take Out. Getting Here:Located on Torney Avenue at Lincoln BoulevardCredit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +CafeOpen:Monday-Friday 9:00 am-5:00 pmMeals Served:Breakfast. Lunch. Cost:InexpensiveOther Info:Take Out. Getting Here:Located on Torney Avenue at Lincoln BoulevardCredit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Monday-Friday 9:00 am-5:00 pmMeals Served:Breakfast. Lunch. Cost:InexpensiveOther Info:Take Out. Getting Here:Located on Torney Avenue at Lincoln BoulevardCredit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Breakfast. Lunch. Cost:InexpensiveOther Info:Take Out. Getting Here:Located on Torney Avenue at Lincoln BoulevardCredit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +InexpensiveOther Info:Take Out. Getting Here:Located on Torney Avenue at Lincoln BoulevardCredit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Take Out. Getting Here:Located on Torney Avenue at Lincoln BoulevardCredit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Located on Torney Avenue at Lincoln BoulevardCredit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +[American Express] [Discover] [MasterCard] [Visa], +415-931-8444 Tel415-931-8448 FaxAddress:Adanna Kebab637 Larkin StreetSan Francisco, CA 94109Neighborhood/Area:Russian HillDiningGuidesm Category(ies):Middle Eastern, +Adanna Kebab637 Larkin StreetSan Francisco, CA 94109Neighborhood/Area:Russian HillDiningGuidesm Category(ies):Middle Eastern, +Russian Hill, +Middle Eastern, +650-361-1965 TelAddress:Aguililla Market599 Middlefield RoadAtherton, CA 94027Neighborhood/Area:AthertonDiningGuidesm Category(ies):Mexican, +Aguililla Market599 Middlefield RoadAtherton, CA 94027Neighborhood/Area:AthertonDiningGuidesm Category(ies):Mexican, +Atherton, +Mexican, +650-361-1965 Tel650-361-8983 FaxAddress:Aguillia Market3250 Middlefield RoadRedwood City, CA 94063Neighborhood/Area:Redwood CityDiningGuidesm Category(ies):Mexican, +Aguillia Market3250 Middlefield RoadRedwood City, CA 94063Neighborhood/Area:Redwood CityDiningGuidesm Category(ies):Mexican, +Redwood City, +Mexican, +415-398-3322 TelAddress:Ai Ocean Cafe380 Bush StreetSan Francisco, CA 94104DiningGuidesm Category(ies):Chinese, +Ai Ocean Cafe380 Bush StreetSan Francisco, CA 94104DiningGuidesm Category(ies):Chinese, +Chinese, +415-922-5279 Tel415-922-5271 FaxAddress:Ah Lin1634 Bush StreetSan Francisco, CA 94109Neighborhood/Area:Russian HillDiningGuidesm Category(ies):Chinese, +Ah Lin1634 Bush StreetSan Francisco, CA 94109Neighborhood/Area:Russian HillDiningGuidesm Category(ies):Chinese, +Russian Hill, +Chinese, +650-558-1683 TelAddress:Aji Yoshi Ya1190 BroadwayBurlingame, CA 94010Neighborhood/Area:BurlingameDiningGuidesm Category(ies):Japanese, +Aji Yoshi Ya1190 BroadwayBurlingame, CA 94010Neighborhood/Area:BurlingameDiningGuidesm Category(ies):Japanese, +Burlingame, +Japanese, +415-387-3400 TelAddress:Ai Sushi5338 Geary BoulevardSan Francisco, CA 94121Neighborhood/Area:Richmond DistrictDiningGuidesm Category(ies):Sushi, +Ai Sushi5338 Geary BoulevardSan Francisco, CA 94121Neighborhood/Area:Richmond DistrictDiningGuidesm Category(ies):Sushi, +Richmond District, +Sushi, +415-933-6328 TelAddress:Ak Subs2346 Clement StreetSan Francisco, CA 94121Neighborhood/Area:Richmond DistrictDiningGuidesm Category(ies):Delicatessen, +Ak Subs2346 Clement StreetSan Francisco, CA 94121Neighborhood/Area:Richmond DistrictDiningGuidesm Category(ies):Delicatessen, +Richmond District, +Delicatessen, +650-994-6142 Tel650-239-3706 FaxAddress:Al Fin7398 Mission StreetDaly City, CA 94014Neighborhood/Area:Daly CityDiningGuidesm Category(ies):Caribbean, +Al Fin7398 Mission StreetDaly City, CA 94014Neighborhood/Area:Daly CityDiningGuidesm Category(ies):Caribbean, +Daly City, +Caribbean, +415-397-3218 TelAddress:Akiko's Restaurant and Sushi Bar431 Bush StreetSan Francisco, CA 94108Neighborhood/Area:Financial DistrictDiningGuidesm Category(ies):Japanese, SushiOpen:Monday-Friday 11:30 am-9:30 pmSaturday 5:30 pm-9:30 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Outdoor Dining. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Akiko's Restaurant and Sushi Bar431 Bush StreetSan Francisco, CA 94108Neighborhood/Area:Financial DistrictDiningGuidesm Category(ies):Japanese, SushiOpen:Monday-Friday 11:30 am-9:30 pmSaturday 5:30 pm-9:30 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Outdoor Dining. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Financial District, +Japanese, SushiOpen:Monday-Friday 11:30 am-9:30 pmSaturday 5:30 pm-9:30 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Outdoor Dining. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Monday-Friday 11:30 am-9:30 pmSaturday 5:30 pm-9:30 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Outdoor Dining. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Outdoor Dining. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Outdoor Dining. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Take Out. Catering. Reservations Accepted. Reservations Recommended. Outdoor Dining. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +[American Express] [Discover] [MasterCard] [Visa], +415-876-2300 TelAddress:Al Masri4031 Balboa StreetSan Francisco, CA 94121Neighborhood/Area:Richmond DistrictDiningGuidesm Category(ies):Egyptian, MediterraneanOpen:Thursday-Sunday 5:30 pm-10:00 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Take Out. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Al Masri4031 Balboa StreetSan Francisco, CA 94121Neighborhood/Area:Richmond DistrictDiningGuidesm Category(ies):Egyptian, MediterraneanOpen:Thursday-Sunday 5:30 pm-10:00 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Take Out. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Richmond District, +Egyptian, MediterraneanOpen:Thursday-Sunday 5:30 pm-10:00 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Take Out. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Thursday-Sunday 5:30 pm-10:00 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Take Out. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Dinner. Cost:ExpensiveOther Info:Take Out. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +ExpensiveOther Info:Take Out. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Take Out. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +[American Express] [Discover] [MasterCard] [Visa], +415-621-3935 TelAddress:Al Hamra3083 16th StreetSan Francisco, CA 94103DiningGuidesm Category(ies):Indian, +Al Hamra3083 16th StreetSan Francisco, CA 94103DiningGuidesm Category(ies):Indian, +Indian, +650-366-3474 TelAddress:Al's Fish N' Chips2139 Roosevelt AvenueRedwood City, CA 94061Neighborhood/Area:Redwood CityDiningGuidesm Category(ies):Seafood, +Al's Fish N' Chips2139 Roosevelt AvenueRedwood City, CA 94061Neighborhood/Area:Redwood CityDiningGuidesm Category(ies):Seafood, +Redwood City, +Seafood, +415-345-1011 Tel415-614-9961 FaxAddress:Alaturca869 Geary StreetSan Francisco, CA 94109DiningGuidesm Category(ies):Turkish, +Alaturca869 Geary StreetSan Francisco, CA 94109DiningGuidesm Category(ies):Turkish, +Turkish, +415-440-2828 TelAddress:Alamo Square Seafood Grill803 Fillmore StreetSan Francisco, CA 94117Neighborhood/Area:Civic CenterDiningGuidesm Category(ies):SeafoodOpen:Monday-Saturday 5:30 pm-10:00 pmSunday 5:00 pm-9:30 pmMeals Served:Dinner. Cost:ModerateOther Info:Reservations Accepted. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Alamo Square Seafood Grill803 Fillmore StreetSan Francisco, CA 94117Neighborhood/Area:Civic CenterDiningGuidesm Category(ies):SeafoodOpen:Monday-Saturday 5:30 pm-10:00 pmSunday 5:00 pm-9:30 pmMeals Served:Dinner. Cost:ModerateOther Info:Reservations Accepted. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Civic Center, +SeafoodOpen:Monday-Saturday 5:30 pm-10:00 pmSunday 5:00 pm-9:30 pmMeals Served:Dinner. Cost:ModerateOther Info:Reservations Accepted. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Monday-Saturday 5:30 pm-10:00 pmSunday 5:00 pm-9:30 pmMeals Served:Dinner. Cost:ModerateOther Info:Reservations Accepted. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Dinner. Cost:ModerateOther Info:Reservations Accepted. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +ModerateOther Info:Reservations Accepted. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Reservations Accepted. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +[American Express] [MasterCard] [Visa], +415-441-1040 TelAddress:Albona Istrian Ristorante545 Francisco StreetSan Francisco, CA 94133Neighborhood/Area:North BeachDiningGuidesm Category(ies):ItalianOpen:Tuesday-Sunday 5:00 pm-10:00 pmMeals Served:Dinner. Cost:InexpensiveOther Info:Valet Parking. Reservations Accepted. Credit Cards Accepted:[MasterCard] [Traveler's Checks][Visa], +Albona Istrian Ristorante545 Francisco StreetSan Francisco, CA 94133Neighborhood/Area:North BeachDiningGuidesm Category(ies):ItalianOpen:Tuesday-Sunday 5:00 pm-10:00 pmMeals Served:Dinner. Cost:InexpensiveOther Info:Valet Parking. Reservations Accepted. Credit Cards Accepted:[MasterCard] [Traveler's Checks][Visa], +North Beach, +ItalianOpen:Tuesday-Sunday 5:00 pm-10:00 pmMeals Served:Dinner. Cost:InexpensiveOther Info:Valet Parking. Reservations Accepted. Credit Cards Accepted:[MasterCard] [Traveler's Checks][Visa], +Tuesday-Sunday 5:00 pm-10:00 pmMeals Served:Dinner. Cost:InexpensiveOther Info:Valet Parking. Reservations Accepted. Credit Cards Accepted:[MasterCard] [Traveler's Checks][Visa], +Dinner. Cost:InexpensiveOther Info:Valet Parking. Reservations Accepted. Credit Cards Accepted:[MasterCard] [Traveler's Checks][Visa], +InexpensiveOther Info:Valet Parking. Reservations Accepted. Credit Cards Accepted:[MasterCard] [Traveler's Checks][Visa], +Valet Parking. Reservations Accepted. Credit Cards Accepted:[MasterCard] [Traveler's Checks][Visa], +[MasterCard] [Traveler's Checks][Visa], +415-440-4321 TelAddress:Alborz1245 Van Ness AvenueSan Francisco, CA 94109DiningGuidesm Category(ies):Middle Eastern, +Alborz1245 Van Ness AvenueSan Francisco, CA 94109DiningGuidesm Category(ies):Middle Eastern, +Middle Eastern, +415-362-1384 TelAddress:Alex Gourmet Burrito545 Sansome StreetSan Francisco, CA 94111Neighborhood/Area:Financial DistrictDiningGuidesm Category(ies):Mexican, +Alex Gourmet Burrito545 Sansome StreetSan Francisco, CA 94111Neighborhood/Area:Financial DistrictDiningGuidesm Category(ies):Mexican, +Financial District, +Mexican, +415-240-1207 TelAddress:Alexandria Cafe1488 Pine StreetSan Francisco, CA 94109Neighborhood/Area:Nob HillDiningGuidesm Category(ies):American, +Alexandria Cafe1488 Pine StreetSan Francisco, CA 94109Neighborhood/Area:Nob HillDiningGuidesm Category(ies):American, +Nob Hill, +American, +415-929-8888 TelAddress:Alegrias2018 Lombard StreetSan Francisco, CA 94123Neighborhood/Area:Marina DistrictDiningGuidesm Category(ies):SpanishOpen:Monday-Sunday Meals Served:Dinner. Cost:ModerateOther Info:Live Entertainment. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Alegrias2018 Lombard StreetSan Francisco, CA 94123Neighborhood/Area:Marina DistrictDiningGuidesm Category(ies):SpanishOpen:Monday-Sunday Meals Served:Dinner. Cost:ModerateOther Info:Live Entertainment. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Marina District, +SpanishOpen:Monday-Sunday Meals Served:Dinner. Cost:ModerateOther Info:Live Entertainment. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Monday-Sunday Meals Served:Dinner. Cost:ModerateOther Info:Live Entertainment. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Dinner. Cost:ModerateOther Info:Live Entertainment. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +ModerateOther Info:Live Entertainment. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Live Entertainment. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +[American Express] [MasterCard] [Visa], +650-872-8141 TelAddress:Alfiere1 Old Bayshore HighwayMillbrae, CA 94030Neighborhood/Area:MillbraeLocated In:Westin San Francisco AirportDiningGuidesm Category(ies):Mediterranean, BarOpen:Monday-Sunday Meals Served:Breakfast. Lunch. Dinner. Cost:InexpensiveOther Info:Full Bar on Site. Children's Menu Available. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] , +Alfiere1 Old Bayshore HighwayMillbrae, CA 94030Neighborhood/Area:MillbraeLocated In:Westin San Francisco AirportDiningGuidesm Category(ies):Mediterranean, BarOpen:Monday-Sunday Meals Served:Breakfast. Lunch. Dinner. Cost:InexpensiveOther Info:Full Bar on Site. Children's Menu Available. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] , +Millbrae, +Westin San Francisco AirportDiningGuidesm Category(ies):Mediterranean, BarOpen:Monday-Sunday Meals Served:Breakfast. Lunch. Dinner. Cost:InexpensiveOther Info:Full Bar on Site. Children's Menu Available. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] , +Mediterranean, BarOpen:Monday-Sunday Meals Served:Breakfast. Lunch. Dinner. Cost:InexpensiveOther Info:Full Bar on Site. Children's Menu Available. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] , +Monday-Sunday Meals Served:Breakfast. Lunch. Dinner. Cost:InexpensiveOther Info:Full Bar on Site. Children's Menu Available. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] , +Breakfast. Lunch. Dinner. Cost:InexpensiveOther Info:Full Bar on Site. Children's Menu Available. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] , +InexpensiveOther Info:Full Bar on Site. Children's Menu Available. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] , +Full Bar on Site. Children's Menu Available. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] , +[American Express] [Discover] [Diner's Club] [MasterCard] , +415-781-7058 Tel415-397-1928 FaxAddress:Alfred's Steakhouse659 Merchant StreetSan Francisco, CA 94111Neighborhood/Area:Financial DistrictDiningGuidesm Category(ies):Steak, BarOpen:Monday-Thursday 5:30 pm-9:00 pmFriday-Saturday 5:30 pm-10:00 pmSunday 5:30 pm-9:00 pmMeals Served:Dinner. Group Capacity:100Cost:ExpensiveOther Info:Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Getting Here:Alfred's Steakhouse is located one half block from the TransAmerica Pyramid, in the Financial DistrictCredit Cards Accepted:[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Traveler's Checks][Visa], +Alfred's Steakhouse659 Merchant StreetSan Francisco, CA 94111Neighborhood/Area:Financial DistrictDiningGuidesm Category(ies):Steak, BarOpen:Monday-Thursday 5:30 pm-9:00 pmFriday-Saturday 5:30 pm-10:00 pmSunday 5:30 pm-9:00 pmMeals Served:Dinner. Group Capacity:100Cost:ExpensiveOther Info:Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Getting Here:Alfred's Steakhouse is located one half block from the TransAmerica Pyramid, in the Financial DistrictCredit Cards Accepted:[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Traveler's Checks][Visa], +Financial District, +Steak, BarOpen:Monday-Thursday 5:30 pm-9:00 pmFriday-Saturday 5:30 pm-10:00 pmSunday 5:30 pm-9:00 pmMeals Served:Dinner. Group Capacity:100Cost:ExpensiveOther Info:Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Getting Here:Alfred's Steakhouse is located one half block from the TransAmerica Pyramid, in the Financial DistrictCredit Cards Accepted:[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Traveler's Checks][Visa], +Monday-Thursday 5:30 pm-9:00 pmFriday-Saturday 5:30 pm-10:00 pmSunday 5:30 pm-9:00 pmMeals Served:Dinner. Group Capacity:100Cost:ExpensiveOther Info:Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Getting Here:Alfred's Steakhouse is located one half block from the TransAmerica Pyramid, in the Financial DistrictCredit Cards Accepted:[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Traveler's Checks][Visa], +Dinner. Group Capacity:100Cost:ExpensiveOther Info:Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Getting Here:Alfred's Steakhouse is located one half block from the TransAmerica Pyramid, in the Financial DistrictCredit Cards Accepted:[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Traveler's Checks][Visa], +100Cost:ExpensiveOther Info:Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Getting Here:Alfred's Steakhouse is located one half block from the TransAmerica Pyramid, in the Financial DistrictCredit Cards Accepted:[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Traveler's Checks][Visa], +ExpensiveOther Info:Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Getting Here:Alfred's Steakhouse is located one half block from the TransAmerica Pyramid, in the Financial DistrictCredit Cards Accepted:[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Traveler's Checks][Visa], +Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Getting Here:Alfred's Steakhouse is located one half block from the TransAmerica Pyramid, in the Financial DistrictCredit Cards Accepted:[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Traveler's Checks][Visa], +Alfred's Steakhouse is located one half block from the TransAmerica Pyramid, in the Financial DistrictCredit Cards Accepted:[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Traveler's Checks][Visa], +[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Traveler's Checks][Visa], +415-673-0183 Tel415-931-6792 FaxAddress:Alioto's Restaurant8 Fisherman's WharfSan Francisco, CA 94133Neighborhood/Area:Fisherman's WharfDiningGuidesm Category(ies):Italian, Seafood, BarOpen:Monday-Sunday 11:00 am-11:00 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Water Views. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Visa], +Alioto's Restaurant8 Fisherman's WharfSan Francisco, CA 94133Neighborhood/Area:Fisherman's WharfDiningGuidesm Category(ies):Italian, Seafood, BarOpen:Monday-Sunday 11:00 am-11:00 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Water Views. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Visa], +Fisherman's Wharf, +Italian, Seafood, BarOpen:Monday-Sunday 11:00 am-11:00 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Water Views. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Visa], +Monday-Sunday 11:00 am-11:00 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Water Views. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Visa], +Lunch. Dinner. Cost:ExpensiveOther Info:Water Views. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Visa], +ExpensiveOther Info:Water Views. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Visa], +Water Views. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Visa], +[American Express] [Visa], +650-627-4303 TelAddress:All Spice1602 South El Camino RealSan Mateo, CA 94402Neighborhood/Area:San MateoDiningGuidesm Category(ies):California, IndianOpen:Wednesday-Sunday 5:30 pm-9:30 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +All Spice1602 South El Camino RealSan Mateo, CA 94402Neighborhood/Area:San MateoDiningGuidesm Category(ies):California, IndianOpen:Wednesday-Sunday 5:30 pm-9:30 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +San Mateo, +California, IndianOpen:Wednesday-Sunday 5:30 pm-9:30 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +Wednesday-Sunday 5:30 pm-9:30 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +Dinner. Cost:ExpensiveOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +ExpensiveOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +Take Out. Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +[Discover] [MasterCard] [Visa], +650-298-9828 Tel650-299-1838 FaxAddress:All Season Sushi2432 Broadway StreetRedwood City, CA 94063Neighborhood/Area:Redwood CityDiningGuidesm Category(ies):Japanese, +All Season Sushi2432 Broadway StreetRedwood City, CA 94063Neighborhood/Area:Redwood CityDiningGuidesm Category(ies):Japanese, +Redwood City, +Japanese, +650-491-3831 Tel650-491-3909 FaxAddress:Aloha Island Barbecue1150 El Camino RealSan Bruno, CA 94066Neighborhood/Area:San BrunoLocated In:The Shops at TanforanDiningGuidesm Category(ies):Hawaiian, +Aloha Island Barbecue1150 El Camino RealSan Bruno, CA 94066Neighborhood/Area:San BrunoLocated In:The Shops at TanforanDiningGuidesm Category(ies):Hawaiian, +San Bruno, +The Shops at TanforanDiningGuidesm Category(ies):Hawaiian, +Hawaiian, +415-552-4550 TelAddress:All You Knead Restaurant1466 Haight StreetSan Francisco, CA 94117DiningGuidesm Category(ies):American, +All You Knead Restaurant1466 Haight StreetSan Francisco, CA 94117DiningGuidesm Category(ies):American, +American, +415-383-1327 TelAddress:Amberjack Sushi72 East Blithedale AvenueMill Valley, CA 94941Neighborhood/Area:Mill ValleyDiningGuidesm Category(ies):Sushi, +Amberjack Sushi72 East Blithedale AvenueMill Valley, CA 94941Neighborhood/Area:Mill ValleyDiningGuidesm Category(ies):Sushi, +Mill Valley, +Sushi, +415-447-0441 TelAddress:Amarena2162 Larkin StreetSan Francisco, CA 94109Neighborhood/Area:Russian HillDiningGuidesm Category(ies):Buffet, ItalianOpen:Monday-Thursday 5:30 pm-10:00 pmFriday-Saturday 5:30 pm-10:30 pmSunday 5:30 pm-10:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Take Out. Catering. Live Entertainment. Reservations Accepted. Happy Hour. Early Bird Specials. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Amarena2162 Larkin StreetSan Francisco, CA 94109Neighborhood/Area:Russian HillDiningGuidesm Category(ies):Buffet, ItalianOpen:Monday-Thursday 5:30 pm-10:00 pmFriday-Saturday 5:30 pm-10:30 pmSunday 5:30 pm-10:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Take Out. Catering. Live Entertainment. Reservations Accepted. Happy Hour. Early Bird Specials. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Russian Hill, +Buffet, ItalianOpen:Monday-Thursday 5:30 pm-10:00 pmFriday-Saturday 5:30 pm-10:30 pmSunday 5:30 pm-10:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Take Out. Catering. Live Entertainment. Reservations Accepted. Happy Hour. Early Bird Specials. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Monday-Thursday 5:30 pm-10:00 pmFriday-Saturday 5:30 pm-10:30 pmSunday 5:30 pm-10:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Take Out. Catering. Live Entertainment. Reservations Accepted. Happy Hour. Early Bird Specials. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Dinner. Cost:ModerateOther Info:Take Out. Catering. Live Entertainment. Reservations Accepted. Happy Hour. Early Bird Specials. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +ModerateOther Info:Take Out. Catering. Live Entertainment. Reservations Accepted. Happy Hour. Early Bird Specials. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Take Out. Catering. Live Entertainment. Reservations Accepted. Happy Hour. Early Bird Specials. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +[American Express] [MasterCard] [Visa], +415-777-0500 TelAddress:Amber India25 Yerba Buena LaneSan Francisco, CA 94103Neighborhood/Area:Union SquareDiningGuidesm Category(ies):Indian, BarOpen:Monday-Thursday 11:30 am-10:00 pmFriday 11:30 am-10:30 pmSaturday 12:00 pm-10:30 pmSunday 12:00 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Amber India25 Yerba Buena LaneSan Francisco, CA 94103Neighborhood/Area:Union SquareDiningGuidesm Category(ies):Indian, BarOpen:Monday-Thursday 11:30 am-10:00 pmFriday 11:30 am-10:30 pmSaturday 12:00 pm-10:30 pmSunday 12:00 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Union Square, +Indian, BarOpen:Monday-Thursday 11:30 am-10:00 pmFriday 11:30 am-10:30 pmSaturday 12:00 pm-10:30 pmSunday 12:00 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Monday-Thursday 11:30 am-10:00 pmFriday 11:30 am-10:30 pmSaturday 12:00 pm-10:30 pmSunday 12:00 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Lunch. Dinner. Cost:ExpensiveOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +ExpensiveOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Take Out. Catering. Reservations Accepted. Reservations Recommended. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +415-920-1797 TelAddress:Amberjack Sushi1497 Church StreetSan Francisco, CA 94131DiningGuidesm Category(ies):Sushi, +Amberjack Sushi1497 Church StreetSan Francisco, CA 94131DiningGuidesm Category(ies):Sushi, +Sushi, +415-284-4040 TelAddress:Ame Restaurant689 Misson StreetSan Francisco, CA 94105Neighborhood/Area:South of MarketLocated In:St. Regis Hotel San FranciscoDiningGuidesm Category(ies):AmericanOpen:Monday-Sunday 11:30 am-10:00 pmMeals Served:Lunch. Dinner. Group Capacity:32Cost:ExpensiveOther Info:Valet Parking. Reservations Accepted. Reservations Recommended. Full Bar on Site. Getting Here:The Ame Restaurant is loocated at the corner of Third and Mission Streets within the St. Regis HotelCredit Cards Accepted:[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Visa], +Ame Restaurant689 Misson StreetSan Francisco, CA 94105Neighborhood/Area:South of MarketLocated In:St. Regis Hotel San FranciscoDiningGuidesm Category(ies):AmericanOpen:Monday-Sunday 11:30 am-10:00 pmMeals Served:Lunch. Dinner. Group Capacity:32Cost:ExpensiveOther Info:Valet Parking. Reservations Accepted. Reservations Recommended. Full Bar on Site. Getting Here:The Ame Restaurant is loocated at the corner of Third and Mission Streets within the St. Regis HotelCredit Cards Accepted:[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Visa], +South of Market, +St. Regis Hotel San FranciscoDiningGuidesm Category(ies):AmericanOpen:Monday-Sunday 11:30 am-10:00 pmMeals Served:Lunch. Dinner. Group Capacity:32Cost:ExpensiveOther Info:Valet Parking. Reservations Accepted. Reservations Recommended. Full Bar on Site. Getting Here:The Ame Restaurant is loocated at the corner of Third and Mission Streets within the St. Regis HotelCredit Cards Accepted:[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Visa], +AmericanOpen:Monday-Sunday 11:30 am-10:00 pmMeals Served:Lunch. Dinner. Group Capacity:32Cost:ExpensiveOther Info:Valet Parking. Reservations Accepted. Reservations Recommended. Full Bar on Site. Getting Here:The Ame Restaurant is loocated at the corner of Third and Mission Streets within the St. Regis HotelCredit Cards Accepted:[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Visa], +Monday-Sunday 11:30 am-10:00 pmMeals Served:Lunch. Dinner. Group Capacity:32Cost:ExpensiveOther Info:Valet Parking. Reservations Accepted. Reservations Recommended. Full Bar on Site. Getting Here:The Ame Restaurant is loocated at the corner of Third and Mission Streets within the St. Regis HotelCredit Cards Accepted:[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Visa], +Lunch. Dinner. Group Capacity:32Cost:ExpensiveOther Info:Valet Parking. Reservations Accepted. Reservations Recommended. Full Bar on Site. Getting Here:The Ame Restaurant is loocated at the corner of Third and Mission Streets within the St. Regis HotelCredit Cards Accepted:[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Visa], +32Cost:ExpensiveOther Info:Valet Parking. Reservations Accepted. Reservations Recommended. Full Bar on Site. Getting Here:The Ame Restaurant is loocated at the corner of Third and Mission Streets within the St. Regis HotelCredit Cards Accepted:[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Visa], +ExpensiveOther Info:Valet Parking. Reservations Accepted. Reservations Recommended. Full Bar on Site. Getting Here:The Ame Restaurant is loocated at the corner of Third and Mission Streets within the St. Regis HotelCredit Cards Accepted:[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Visa], +Valet Parking. Reservations Accepted. Reservations Recommended. Full Bar on Site. Getting Here:The Ame Restaurant is loocated at the corner of Third and Mission Streets within the St. Regis HotelCredit Cards Accepted:[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Visa], +The Ame Restaurant is loocated at the corner of Third and Mission Streets within the St. Regis HotelCredit Cards Accepted:[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Visa], +[American Express] [Discover] [Diner's Club] [JCB] [MasterCard] [Visa], +650-368-1390 TelAddress:Amelia's Restaurant2042 Broadway StreetRedwood City, CA 94063Neighborhood/Area:Redwood CityDiningGuidesm Category(ies):Mexican, +Amelia's Restaurant2042 Broadway StreetRedwood City, CA 94063Neighborhood/Area:Redwood CityDiningGuidesm Category(ies):Mexican, +Redwood City, +Mexican, +415-387-2893 TelAddress:Americana3528 Balboa StreetSan Francisco, CA 94121Neighborhood/Area:Richmond DistrictDiningGuidesm Category(ies):Vietnamese, +Americana3528 Balboa StreetSan Francisco, CA 94121Neighborhood/Area:Richmond DistrictDiningGuidesm Category(ies):Vietnamese, +Richmond District, +Vietnamese, +415-278-3777 Tel415-278-3770 FaxAddress:Americano Restaurant and Bar8 Mission StreetSan Francisco, CA 94105Neighborhood/Area:EmbarcaderoLocated In:Hotel VitaleDiningGuidesm Category(ies):Italian, Pacific RimOpen:Monday-Friday 6:30 am-1:00 amSaturday-Sunday 7:30 am-1:00 amMeals Served:Breakfast. Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Americano Restaurant and Bar8 Mission StreetSan Francisco, CA 94105Neighborhood/Area:EmbarcaderoLocated In:Hotel VitaleDiningGuidesm Category(ies):Italian, Pacific RimOpen:Monday-Friday 6:30 am-1:00 amSaturday-Sunday 7:30 am-1:00 amMeals Served:Breakfast. Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Embarcadero, +Hotel VitaleDiningGuidesm Category(ies):Italian, Pacific RimOpen:Monday-Friday 6:30 am-1:00 amSaturday-Sunday 7:30 am-1:00 amMeals Served:Breakfast. Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Italian, Pacific RimOpen:Monday-Friday 6:30 am-1:00 amSaturday-Sunday 7:30 am-1:00 amMeals Served:Breakfast. Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Monday-Friday 6:30 am-1:00 amSaturday-Sunday 7:30 am-1:00 amMeals Served:Breakfast. Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Breakfast. Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +ExpensiveOther Info:Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +[American Express] [MasterCard] [Visa], +650-342-9392 Tel650-342-0745 FaxAddress:Amici's East Coast Pizzeria69 East 3rd AvenueSan Mateo, CA 94401Neighborhood/Area:San MateoDiningGuidesm Category(ies):Pizzeria, +Amici's East Coast Pizzeria69 East 3rd AvenueSan Mateo, CA 94401Neighborhood/Area:San MateoDiningGuidesm Category(ies):Pizzeria, +San Mateo, +Pizzeria, +415-455-9777 Tel415-459-5309 FaxAddress:Amici's East Coast Pizzeria1242 4th StreetSan Rafael, CA 94901Neighborhood/Area:San RafaelDiningGuidesm Category(ies):Pizzeria, +Amici's East Coast Pizzeria1242 4th StreetSan Rafael, CA 94901Neighborhood/Area:San RafaelDiningGuidesm Category(ies):Pizzeria, +San Rafael, +Pizzeria, +415-885-4500 Tel415-885-0152 FaxAddress:Amici's East Coast Pizzeria2200 Lombard StreetSan Francisco, CA 94123Neighborhood/Area:Marina DistrictDiningGuidesm Category(ies):Pizzeria, +Amici's East Coast Pizzeria2200 Lombard StreetSan Francisco, CA 94123Neighborhood/Area:Marina DistrictDiningGuidesm Category(ies):Pizzeria, +Marina District, +Pizzeria, +415-546-6666 Tel415-546-6665 FaxAddress:Amici's East Coast Pizzeria216 King StreetSan Francisco, CA 94107DiningGuidesm Category(ies):Pizzeria, +Amici's East Coast Pizzeria216 King StreetSan Francisco, CA 94107DiningGuidesm Category(ies):Pizzeria, +Pizzeria, +650-654-3333 Tel650-654-3300 FaxAddress:Amici's East Coast Pizzeria226 Redwood Shores ParkwayRedwood City, CA 94065Neighborhood/Area:Redwood CityDiningGuidesm Category(ies):Pizzeria, +Amici's East Coast Pizzeria226 Redwood Shores ParkwayRedwood City, CA 94065Neighborhood/Area:Redwood CityDiningGuidesm Category(ies):Pizzeria, +Redwood City, +Pizzeria, +415-357-9611 Tel415-357-9689 FaxAddress:Amoura845 Market StreetSan Francisco, CA 94103DiningGuidesm Category(ies):Delicatessen, Middle Eastern, Sandwich Shop, +Amoura845 Market StreetSan Francisco, CA 94103DiningGuidesm Category(ies):Delicatessen, Middle Eastern, Sandwich Shop, +Delicatessen, Middle Eastern, Sandwich Shop, +415-441-4102 TelAddress:Amina's Pizzeria655 Divisadero StreetSan Francisco, CA 94117DiningGuidesm Category(ies):Pizzeria, +Amina's Pizzeria655 Divisadero StreetSan Francisco, CA 94117DiningGuidesm Category(ies):Pizzeria, +Pizzeria, +415-771-6800 TelAddress:Ana Mandara891 Beach StreetSan Francisco, CA 94109Neighborhood/Area:Fisherman's WharfDiningGuidesm Category(ies):VietnameseOpen:Monday-Tuesday 5:30 pm-9:30 pmWednesday-Thursday 11:30 am-9:30 pmFriday 11:30 am-10:30 pmSaturday 5:30 pm-10:30 pmSunday 5:30 pm-9:30 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [Diner's Club] [JCB] [MasterCard] [Visa], +Ana Mandara891 Beach StreetSan Francisco, CA 94109Neighborhood/Area:Fisherman's WharfDiningGuidesm Category(ies):VietnameseOpen:Monday-Tuesday 5:30 pm-9:30 pmWednesday-Thursday 11:30 am-9:30 pmFriday 11:30 am-10:30 pmSaturday 5:30 pm-10:30 pmSunday 5:30 pm-9:30 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [Diner's Club] [JCB] [MasterCard] [Visa], +Fisherman's Wharf, +VietnameseOpen:Monday-Tuesday 5:30 pm-9:30 pmWednesday-Thursday 11:30 am-9:30 pmFriday 11:30 am-10:30 pmSaturday 5:30 pm-10:30 pmSunday 5:30 pm-9:30 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [Diner's Club] [JCB] [MasterCard] [Visa], +Monday-Tuesday 5:30 pm-9:30 pmWednesday-Thursday 11:30 am-9:30 pmFriday 11:30 am-10:30 pmSaturday 5:30 pm-10:30 pmSunday 5:30 pm-9:30 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [Diner's Club] [JCB] [MasterCard] [Visa], +Lunch. Dinner. Cost:ExpensiveOther Info:Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [Diner's Club] [JCB] [MasterCard] [Visa], +ExpensiveOther Info:Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [Diner's Club] [JCB] [MasterCard] [Visa], +Valet Parking. Live Entertainment. Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [Diner's Club] [JCB] [MasterCard] [Visa], +[American Express] [Carte Blanche] [Discover] [Diner's Club] [JCB] [MasterCard] [Visa], +415-501-9100 TelAddress:Anchor and Hope83 Minna StreetSan Francisco, CA 94105Neighborhood/Area:Financial DistrictDiningGuidesm Category(ies):Seafood, BarOpen:Monday-Wednesday 11:30 am-10:00 pmThursday-Friday 11:30 am-11:00 pmSaturday 5:30 pm-11:00 pmSunday 5:30 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Anchor and Hope83 Minna StreetSan Francisco, CA 94105Neighborhood/Area:Financial DistrictDiningGuidesm Category(ies):Seafood, BarOpen:Monday-Wednesday 11:30 am-10:00 pmThursday-Friday 11:30 am-11:00 pmSaturday 5:30 pm-11:00 pmSunday 5:30 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Financial District, +Seafood, BarOpen:Monday-Wednesday 11:30 am-10:00 pmThursday-Friday 11:30 am-11:00 pmSaturday 5:30 pm-11:00 pmSunday 5:30 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Monday-Wednesday 11:30 am-10:00 pmThursday-Friday 11:30 am-11:00 pmSaturday 5:30 pm-11:00 pmSunday 5:30 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ExpensiveOther Info:Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Lunch. Dinner. Cost:ExpensiveOther Info:Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +ExpensiveOther Info:Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +[American Express] [MasterCard] [Visa], +415-621-1994 TelAddress:Ananda Fuara1298 Market StreetSan Francisco, CA 94102DiningGuidesm Category(ies):Vegetarian, +Ananda Fuara1298 Market StreetSan Francisco, CA 94102DiningGuidesm Category(ies):Vegetarian, +Vegetarian, +415-243-8700 Tel415-243-8702 FaxAddress:Andale845 Market StreetSan Francisco, CA 94103DiningGuidesm Category(ies):Mexican, +Andale845 Market StreetSan Francisco, CA 94103DiningGuidesm Category(ies):Mexican, +Mexican, +415-749-0506 Tel415-749-0680 FaxAddress:Andale Mexican Restaurant2150 Chestnut StreetSan Francisco, CA 94123DiningGuidesm Category(ies):Mexican, +Andale Mexican Restaurant2150 Chestnut StreetSan Francisco, CA 94123DiningGuidesm Category(ies):Mexican, +Mexican, +415-512-8160 TelAddress:Andersen Bakery665 Market StreetSan Francisco, CA 94105DiningGuidesm Category(ies):Bakery, +Andersen Bakery665 Market StreetSan Francisco, CA 94105DiningGuidesm Category(ies):Bakery, +Bakery, +415-621-2211 Tel415-621-2323 FaxAddress:Andalu3198 16th StreetSan Francisco, CA 94103Neighborhood/Area:Downtown San FranciscoDiningGuidesm Category(ies):Tapas, Tasting Menus, LoungeOpen:Monday-Tuesday 5:30 pm-10:00 pmWednesday-Thursday 5:30 pm-11:00 pmFriday-Saturday 5:30 pm-11:30 pmSunday 5:30 pm-10:00 pmMeals Served:Brunch. Dinner. Cost:ModerateOther Info:Catering. Valet Parking. Reservations Accepted. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [MasterCard] [Visa], +Andalu3198 16th StreetSan Francisco, CA 94103Neighborhood/Area:Downtown San FranciscoDiningGuidesm Category(ies):Tapas, Tasting Menus, LoungeOpen:Monday-Tuesday 5:30 pm-10:00 pmWednesday-Thursday 5:30 pm-11:00 pmFriday-Saturday 5:30 pm-11:30 pmSunday 5:30 pm-10:00 pmMeals Served:Brunch. Dinner. Cost:ModerateOther Info:Catering. Valet Parking. Reservations Accepted. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [MasterCard] [Visa], +Downtown San Francisco, +Tapas, Tasting Menus, LoungeOpen:Monday-Tuesday 5:30 pm-10:00 pmWednesday-Thursday 5:30 pm-11:00 pmFriday-Saturday 5:30 pm-11:30 pmSunday 5:30 pm-10:00 pmMeals Served:Brunch. Dinner. Cost:ModerateOther Info:Catering. Valet Parking. Reservations Accepted. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [MasterCard] [Visa], +Monday-Tuesday 5:30 pm-10:00 pmWednesday-Thursday 5:30 pm-11:00 pmFriday-Saturday 5:30 pm-11:30 pmSunday 5:30 pm-10:00 pmMeals Served:Brunch. Dinner. Cost:ModerateOther Info:Catering. Valet Parking. Reservations Accepted. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [MasterCard] [Visa], +Brunch. Dinner. Cost:ModerateOther Info:Catering. Valet Parking. Reservations Accepted. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [MasterCard] [Visa], +ModerateOther Info:Catering. Valet Parking. Reservations Accepted. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [MasterCard] [Visa], +Catering. Valet Parking. Reservations Accepted. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [MasterCard] [Visa], +[American Express] [Carte Blanche] [Discover] [MasterCard] [Visa], +415-262-0079 Tel415-262-0069 FaxAddress:Andersen Bakery50 Post StreetSan Francisco, CA 94104Neighborhood/Area:Downtown San FranciscoDiningGuidesm Category(ies):Bakery, +Andersen Bakery50 Post StreetSan Francisco, CA 94104Neighborhood/Area:Downtown San FranciscoDiningGuidesm Category(ies):Bakery, +Downtown San Francisco, +Bakery, +650-588-9015 Tel650-588-9018 FaxAddress:Andersen Bakery1150 El Camino RealSan Bruno, CA 94066Neighborhood/Area:San BrunoLocated In:The Shops at TanforanDiningGuidesm Category(ies):Bakery, +Andersen Bakery1150 El Camino RealSan Bruno, CA 94066Neighborhood/Area:San BrunoLocated In:The Shops at TanforanDiningGuidesm Category(ies):Bakery, +San Bruno, +The Shops at TanforanDiningGuidesm Category(ies):Bakery, +Bakery, +415-781-8222 TelAddress:Andrew Jaeger's House of Seafood & Jazz300 Columbus AvenueSan Francisco, CA 94133DiningGuidesm Category(ies):Seafood, +Andrew Jaeger's House of Seafood & Jazz300 Columbus AvenueSan Francisco, CA 94133DiningGuidesm Category(ies):Seafood, +Seafood, +415-661-1803 TelAddress:Andy's Chinese Cuisine1358 9th AvenueSan Francisco, CA 94122Neighborhood/Area:Sunset DistrictDiningGuidesm Category(ies):Chinese, +Andy's Chinese Cuisine1358 9th AvenueSan Francisco, CA 94122Neighborhood/Area:Sunset DistrictDiningGuidesm Category(ies):Chinese, +Sunset District, +Chinese, +415-922-5526 TelAddress:Andy's Chinese Cuisine2401 Polk StreetSan Francisco, CA 94109DiningGuidesm Category(ies):Chinese, +Andy's Chinese Cuisine2401 Polk StreetSan Francisco, CA 94109DiningGuidesm Category(ies):Chinese, +Chinese, +650-994-5412 Tel650-994-5718 FaxAddress:Andy's Restaurant121 Hickey BoulevardSouth San Francisco, CA 94080Neighborhood/Area:South San FranciscoDiningGuidesm Category(ies):Chinese, +Andy's Restaurant121 Hickey BoulevardSouth San Francisco, CA 94080Neighborhood/Area:South San FranciscoDiningGuidesm Category(ies):Chinese, +South San Francisco, +Chinese, +650-365-3226 TelAddress:Angelica's Bistro863 Main StreetRedwood City, CA 94063Neighborhood/Area:Redwood CityDiningGuidesm Category(ies):Italian, +Angelica's Bistro863 Main StreetRedwood City, CA 94063Neighborhood/Area:Redwood CityDiningGuidesm Category(ies):Italian, +Redwood City, +Italian, +415-331-5225 TelAddress:Angelino Restaurant621 BridgewaySausalito, CA 94965Neighborhood/Area:SausalitoDiningGuidesm Category(ies):ItalianOpen:Monday-Tuesday 4:00 pm-9:30 pmWednesday-Sunday 11:30 am-9:30 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Angelino Restaurant621 BridgewaySausalito, CA 94965Neighborhood/Area:SausalitoDiningGuidesm Category(ies):ItalianOpen:Monday-Tuesday 4:00 pm-9:30 pmWednesday-Sunday 11:30 am-9:30 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Sausalito, +ItalianOpen:Monday-Tuesday 4:00 pm-9:30 pmWednesday-Sunday 11:30 am-9:30 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Monday-Tuesday 4:00 pm-9:30 pmWednesday-Sunday 11:30 am-9:30 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Lunch. Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +[American Express] [MasterCard] [Visa], +650-323-3665 TelAddress:Angelo Mio Cucina Italiano820 Santa Cruz AvenueMenlo Park, CA 94025Neighborhood/Area:Menlo ParkDiningGuidesm Category(ies):Italian, +Angelo Mio Cucina Italiano820 Santa Cruz AvenueMenlo Park, CA 94025Neighborhood/Area:Menlo ParkDiningGuidesm Category(ies):Italian, +Menlo Park, +Italian, +415-550-8417 TelAddress:Angkor Borei3471 Mission StreetSan Francisco, CA 94110Neighborhood/Area:Marina DistrictDiningGuidesm Category(ies):Asian, InternationalOpen:Monday-Sunday Meals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Children's Menu Available. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Angkor Borei3471 Mission StreetSan Francisco, CA 94110Neighborhood/Area:Marina DistrictDiningGuidesm Category(ies):Asian, InternationalOpen:Monday-Sunday Meals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Children's Menu Available. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Marina District, +Asian, InternationalOpen:Monday-Sunday Meals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Children's Menu Available. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Monday-Sunday Meals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Children's Menu Available. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Lunch. Dinner. Cost:InexpensiveOther Info:Children's Menu Available. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +InexpensiveOther Info:Children's Menu Available. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Children's Menu Available. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +[American Express] [Discover] [MasterCard] [Visa], +415-885-5180 TelAddress:Anhhong Restaurant808 Geary StreetSan Francisco, CA 94109DiningGuidesm Category(ies):Chinese, +Anhhong Restaurant808 Geary StreetSan Francisco, CA 94109DiningGuidesm Category(ies):Chinese, +Chinese, +415-777-1200 TelAddress:Annabelle's Bar & Bistro68 Fourth StreetSan Francisco, CA 94103Neighborhood/Area:Union SquareDiningGuidesm Category(ies):American, New World, BarOpen:Monday-Thursday 11:30 am-10:30 pmFriday-Saturday 11:30 am-11:00 pmSunday 11:30 am-10:30 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Diner's Club] [MasterCard] [Visa], +Annabelle's Bar & Bistro68 Fourth StreetSan Francisco, CA 94103Neighborhood/Area:Union SquareDiningGuidesm Category(ies):American, New World, BarOpen:Monday-Thursday 11:30 am-10:30 pmFriday-Saturday 11:30 am-11:00 pmSunday 11:30 am-10:30 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Diner's Club] [MasterCard] [Visa], +Union Square, +American, New World, BarOpen:Monday-Thursday 11:30 am-10:30 pmFriday-Saturday 11:30 am-11:00 pmSunday 11:30 am-10:30 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Diner's Club] [MasterCard] [Visa], +Monday-Thursday 11:30 am-10:30 pmFriday-Saturday 11:30 am-11:00 pmSunday 11:30 am-10:30 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Diner's Club] [MasterCard] [Visa], +Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Diner's Club] [MasterCard] [Visa], +ModerateOther Info:Take Out. Catering. Reservations Accepted. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Diner's Club] [MasterCard] [Visa], +Take Out. Catering. Reservations Accepted. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [Diner's Club] [MasterCard] [Visa], +[American Express] [Diner's Club] [MasterCard] [Visa], +415-864-3780 Tel415-864-4780 FaxAddress:Anna's Teriyaki83 9th StreetSan Francisco, CA 94103DiningGuidesm Category(ies):Japanese, +Anna's Teriyaki83 9th StreetSan Francisco, CA 94103DiningGuidesm Category(ies):Japanese, +Japanese, +415-892-3440 TelAddress:Anokha Cuisine of India811 Grant AvenueNovato, CA 94945Neighborhood/Area:NovatoDiningGuidesm Category(ies):IndianOpen:Monday-Saturday 11:30 am-9:30 pmSunday 11:30 am-9:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Anokha Cuisine of India811 Grant AvenueNovato, CA 94945Neighborhood/Area:NovatoDiningGuidesm Category(ies):IndianOpen:Monday-Saturday 11:30 am-9:30 pmSunday 11:30 am-9:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Novato, +IndianOpen:Monday-Saturday 11:30 am-9:30 pmSunday 11:30 am-9:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Monday-Saturday 11:30 am-9:30 pmSunday 11:30 am-9:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Take Out. Catering. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +[American Express] [MasterCard] [Visa], +415-922-9669 TelAddress:Annie's Bistro2819 California StreetSan Francisco, CA 94115Neighborhood/Area:Pacific HeightsDiningGuidesm Category(ies):French, New WorldOpen:Monday-Friday 6:00 pm-9:30 pmSaturday 10:30 am-9:30 pmSunday 10:30 am-2:30 pmMeals Served:Brunch. Dinner. Cost:ExpensiveOther Info:Take Out. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Annie's Bistro2819 California StreetSan Francisco, CA 94115Neighborhood/Area:Pacific HeightsDiningGuidesm Category(ies):French, New WorldOpen:Monday-Friday 6:00 pm-9:30 pmSaturday 10:30 am-9:30 pmSunday 10:30 am-2:30 pmMeals Served:Brunch. Dinner. Cost:ExpensiveOther Info:Take Out. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Pacific Heights, +French, New WorldOpen:Monday-Friday 6:00 pm-9:30 pmSaturday 10:30 am-9:30 pmSunday 10:30 am-2:30 pmMeals Served:Brunch. Dinner. Cost:ExpensiveOther Info:Take Out. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Monday-Friday 6:00 pm-9:30 pmSaturday 10:30 am-9:30 pmSunday 10:30 am-2:30 pmMeals Served:Brunch. Dinner. Cost:ExpensiveOther Info:Take Out. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Brunch. Dinner. Cost:ExpensiveOther Info:Take Out. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +ExpensiveOther Info:Take Out. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Take Out. Reservations Accepted. Reservations Recommended. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +415-928-5797 TelAddress:Antica Trattoria2400 Polk StreetSan Francisco, CA 94109Neighborhood/Area:Russian HillDiningGuidesm Category(ies):ItalianOpen:Tuesday-Thursday 5:30 pm-10:00 pmFriday-Saturday 5:30 pm-10:30 pmSunday 5:30 pm-10:00 pmMeals Served:Dinner. Cost:InexpensiveOther Info:Valet Parking. Reservations Accepted. Children's Menu Available. Credit Cards Accepted:[MasterCard] [Visa], +Antica Trattoria2400 Polk StreetSan Francisco, CA 94109Neighborhood/Area:Russian HillDiningGuidesm Category(ies):ItalianOpen:Tuesday-Thursday 5:30 pm-10:00 pmFriday-Saturday 5:30 pm-10:30 pmSunday 5:30 pm-10:00 pmMeals Served:Dinner. Cost:InexpensiveOther Info:Valet Parking. Reservations Accepted. Children's Menu Available. Credit Cards Accepted:[MasterCard] [Visa], +Russian Hill, +ItalianOpen:Tuesday-Thursday 5:30 pm-10:00 pmFriday-Saturday 5:30 pm-10:30 pmSunday 5:30 pm-10:00 pmMeals Served:Dinner. Cost:InexpensiveOther Info:Valet Parking. Reservations Accepted. Children's Menu Available. Credit Cards Accepted:[MasterCard] [Visa], +Tuesday-Thursday 5:30 pm-10:00 pmFriday-Saturday 5:30 pm-10:30 pmSunday 5:30 pm-10:00 pmMeals Served:Dinner. Cost:InexpensiveOther Info:Valet Parking. Reservations Accepted. Children's Menu Available. Credit Cards Accepted:[MasterCard] [Visa], +Dinner. Cost:InexpensiveOther Info:Valet Parking. Reservations Accepted. Children's Menu Available. Credit Cards Accepted:[MasterCard] [Visa], +InexpensiveOther Info:Valet Parking. Reservations Accepted. Children's Menu Available. Credit Cards Accepted:[MasterCard] [Visa], +Valet Parking. Reservations Accepted. Children's Menu Available. Credit Cards Accepted:[MasterCard] [Visa], +[MasterCard] [Visa], +415-543-3505 TelAddress:Anu43 6th StreetSan Francisco, CA 94107Neighborhood/Area:Downtown San FranciscoDiningGuidesm Category(ies):Irish, Mexican, Pubs, Lounge, PubOpen:Tuesday-Saturday 5:00 pm-2:00 amMeals Served:Dinner. Cost:ModerateOther Info:Live Entertainment. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Anu43 6th StreetSan Francisco, CA 94107Neighborhood/Area:Downtown San FranciscoDiningGuidesm Category(ies):Irish, Mexican, Pubs, Lounge, PubOpen:Tuesday-Saturday 5:00 pm-2:00 amMeals Served:Dinner. Cost:ModerateOther Info:Live Entertainment. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Downtown San Francisco, +Irish, Mexican, Pubs, Lounge, PubOpen:Tuesday-Saturday 5:00 pm-2:00 amMeals Served:Dinner. Cost:ModerateOther Info:Live Entertainment. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Tuesday-Saturday 5:00 pm-2:00 amMeals Served:Dinner. Cost:ModerateOther Info:Live Entertainment. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Dinner. Cost:ModerateOther Info:Live Entertainment. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +ModerateOther Info:Live Entertainment. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Live Entertainment. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +[American Express] [Discover] [MasterCard] [Visa], +415-648-4737 TelAddress:Antojitos Aminta2590 Mission StreetSan Francisco, CA 94110DiningGuidesm Category(ies):Caribbean, +Antojitos Aminta2590 Mission StreetSan Francisco, CA 94110DiningGuidesm Category(ies):Caribbean, +Caribbean, +415-252-1625 Tel415-252-1036 FaxAddress:Aperto1434 18th Street @ ConnecticutSan Francisco, CA 94114Neighborhood/Area:The CastroDiningGuidesm Category(ies):ItalianOpen:Monday-Friday 11:30 am-10:00 pmSaturday 11:00 am-10:00 pmSunday 10:30 am-9:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Reservations Accepted. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Aperto1434 18th Street @ ConnecticutSan Francisco, CA 94114Neighborhood/Area:The CastroDiningGuidesm Category(ies):ItalianOpen:Monday-Friday 11:30 am-10:00 pmSaturday 11:00 am-10:00 pmSunday 10:30 am-9:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Reservations Accepted. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +The Castro, +ItalianOpen:Monday-Friday 11:30 am-10:00 pmSaturday 11:00 am-10:00 pmSunday 10:30 am-9:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Reservations Accepted. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Monday-Friday 11:30 am-10:00 pmSaturday 11:00 am-10:00 pmSunday 10:30 am-9:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Reservations Accepted. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Brunch. Lunch. Dinner. Cost:ModerateOther Info:Reservations Accepted. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +ModerateOther Info:Reservations Accepted. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Reservations Accepted. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +[American Express] [MasterCard] [Visa], +415-394-1100 TelAddress:Anzu222 Mason StreetSan Francisco, CA 94102Neighborhood/Area:Union SquareLocated In:Nikko Hotel San FranciscoDiningGuidesm Category(ies):Seafood, Steak, BarOpen:Monday-Sunday 6:30 am-12:00 amMeals Served:Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Anzu222 Mason StreetSan Francisco, CA 94102Neighborhood/Area:Union SquareLocated In:Nikko Hotel San FranciscoDiningGuidesm Category(ies):Seafood, Steak, BarOpen:Monday-Sunday 6:30 am-12:00 amMeals Served:Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Union Square, +Nikko Hotel San FranciscoDiningGuidesm Category(ies):Seafood, Steak, BarOpen:Monday-Sunday 6:30 am-12:00 amMeals Served:Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Seafood, Steak, BarOpen:Monday-Sunday 6:30 am-12:00 amMeals Served:Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Monday-Sunday 6:30 am-12:00 amMeals Served:Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +ExpensiveOther Info:Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +415-472-7828 TelAddress:Applebee'sNorthgate MallSan Rafael, CA 94903Neighborhood/Area:San RafaelDiningGuidesm Category(ies):American - Casual, SouthwesternMeals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. Full Bar on Site. , +Applebee'sNorthgate MallSan Rafael, CA 94903Neighborhood/Area:San RafaelDiningGuidesm Category(ies):American - Casual, SouthwesternMeals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. Full Bar on Site. , +San Rafael, +American - Casual, SouthwesternMeals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. Full Bar on Site. , +Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. Full Bar on Site. , +InexpensiveOther Info:Take Out. Full Bar on Site. , +Take Out. Full Bar on Site. , +650-328-1556 Tel650-325-8646 FaxAddress:Applewood 2-Go989 El Camino RealMenlo Park, CA 94025Neighborhood/Area:Menlo ParkDiningGuidesm Category(ies):Pizzeria, +Applewood 2-Go989 El Camino RealMenlo Park, CA 94025Neighborhood/Area:Menlo ParkDiningGuidesm Category(ies):Pizzeria, +Menlo Park, +Pizzeria, +650-364-6849 TelAddress:Applebee's1135 Veterans BoulevardRedwood City, CA 94063Neighborhood/Area:Redwood CityDiningGuidesm Category(ies):American - Casual, SouthwesternMeals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. Full Bar on Site. , +Applebee's1135 Veterans BoulevardRedwood City, CA 94063Neighborhood/Area:Redwood CityDiningGuidesm Category(ies):American - Casual, SouthwesternMeals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. Full Bar on Site. , +Redwood City, +American - Casual, SouthwesternMeals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. Full Bar on Site. , +Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. Full Bar on Site. , +InexpensiveOther Info:Take Out. Full Bar on Site. , +Take Out. Full Bar on Site. , +415-956-9662 TelAddress:Aqua252 California StreetSan Francisco, CA 94111Neighborhood/Area:Financial DistrictDiningGuidesm Category(ies):Seafood, BarOpen:Monday-Thursday 5:00 pm-10:30 pmFriday-Saturday 5:00 pm-11:00 pmSunday 5:30 pm-9:30 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Valet Parking. Reservations Accepted. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Aqua252 California StreetSan Francisco, CA 94111Neighborhood/Area:Financial DistrictDiningGuidesm Category(ies):Seafood, BarOpen:Monday-Thursday 5:00 pm-10:30 pmFriday-Saturday 5:00 pm-11:00 pmSunday 5:30 pm-9:30 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Valet Parking. Reservations Accepted. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Financial District, +Seafood, BarOpen:Monday-Thursday 5:00 pm-10:30 pmFriday-Saturday 5:00 pm-11:00 pmSunday 5:30 pm-9:30 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Valet Parking. Reservations Accepted. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Monday-Thursday 5:00 pm-10:30 pmFriday-Saturday 5:00 pm-11:00 pmSunday 5:30 pm-9:30 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Valet Parking. Reservations Accepted. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Dinner. Cost:ExpensiveOther Info:Valet Parking. Reservations Accepted. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +ExpensiveOther Info:Valet Parking. Reservations Accepted. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Valet Parking. Reservations Accepted. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +650-324-3486 Tel650-325-7021 FaxAddress:Applewood Inn1001 El Camino RealMenlo Park, CA 94025Neighborhood/Area:Menlo ParkDiningGuidesm Category(ies):Pizzeria, +Applewood Inn1001 El Camino RealMenlo Park, CA 94025Neighborhood/Area:Menlo ParkDiningGuidesm Category(ies):Pizzeria, +Menlo Park, +Pizzeria, +415-243-8575 Tel415-243-8474 FaxAddress:Arabi101 Spear StreetSan Francisco, CA 94105Located In:Rincon CenterDiningGuidesm Category(ies):Mediterranean, +Arabi101 Spear StreetSan Francisco, CA 94105Located In:Rincon CenterDiningGuidesm Category(ies):Mediterranean, +Rincon CenterDiningGuidesm Category(ies):Mediterranean, +Mediterranean, +415-332-0882 Tel415-332-8207 FaxAddress:Arawan47 Caledonia StreetSausalito, CA 94965Neighborhood/Area:SausalitoDiningGuidesm Category(ies):Thai, +Arawan47 Caledonia StreetSausalito, CA 94965Neighborhood/Area:SausalitoDiningGuidesm Category(ies):Thai, +Sausalito, +Thai, +415-775-9095 TelAddress:Arang1506 Fillmore StreetSan Francisco, CA 94115DiningGuidesm Category(ies):Japanese, +Arang1506 Fillmore StreetSan Francisco, CA 94115DiningGuidesm Category(ies):Japanese, +Japanese, +415-661-2575 TelAddress:Arby's1581 Sloat BoulevardSan Francisco, CA 94132DiningGuidesm Category(ies):Fast Food, Sandwich Shop, Soups & SaladsMeals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. , +Arby's1581 Sloat BoulevardSan Francisco, CA 94132DiningGuidesm Category(ies):Fast Food, Sandwich Shop, Soups & SaladsMeals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. , +Fast Food, Sandwich Shop, Soups & SaladsMeals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. , +Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. , +InexpensiveOther Info:Take Out. , +Take Out. , +650-348-3888 TelAddress:Archipelago1107 Howard AvenueBurlingame, CA 94010Neighborhood/Area:BurlingameDiningGuidesm Category(ies):Asian, SpanishOpen:Monday-Thursday 5:00 pm-10:00 pmFriday-Saturday 5:00 pm-11:00 pmSunday 5:00 pm-10:00 pmMeals Served:Dinner. Group Capacity:30Cost:ExpensiveOther Info:Reservations Accepted. Reservations Recommended. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Archipelago1107 Howard AvenueBurlingame, CA 94010Neighborhood/Area:BurlingameDiningGuidesm Category(ies):Asian, SpanishOpen:Monday-Thursday 5:00 pm-10:00 pmFriday-Saturday 5:00 pm-11:00 pmSunday 5:00 pm-10:00 pmMeals Served:Dinner. Group Capacity:30Cost:ExpensiveOther Info:Reservations Accepted. Reservations Recommended. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Burlingame, +Asian, SpanishOpen:Monday-Thursday 5:00 pm-10:00 pmFriday-Saturday 5:00 pm-11:00 pmSunday 5:00 pm-10:00 pmMeals Served:Dinner. Group Capacity:30Cost:ExpensiveOther Info:Reservations Accepted. Reservations Recommended. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Monday-Thursday 5:00 pm-10:00 pmFriday-Saturday 5:00 pm-11:00 pmSunday 5:00 pm-10:00 pmMeals Served:Dinner. Group Capacity:30Cost:ExpensiveOther Info:Reservations Accepted. Reservations Recommended. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Dinner. Group Capacity:30Cost:ExpensiveOther Info:Reservations Accepted. Reservations Recommended. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +30Cost:ExpensiveOther Info:Reservations Accepted. Reservations Recommended. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +ExpensiveOther Info:Reservations Accepted. Reservations Recommended. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Reservations Accepted. Reservations Recommended. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +[American Express] [Discover] [MasterCard] [Visa], +650-871-9862 TelAddress:Arby's840 El Camino RealSouth San Francisco, CA 94080Neighborhood/Area:South San FranciscoDiningGuidesm Category(ies):Fast Food, Sandwich Shop, Soups & SaladsMeals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. , +Arby's840 El Camino RealSouth San Francisco, CA 94080Neighborhood/Area:South San FranciscoDiningGuidesm Category(ies):Fast Food, Sandwich Shop, Soups & SaladsMeals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. , +South San Francisco, +Fast Food, Sandwich Shop, Soups & SaladsMeals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. , +Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. , +InexpensiveOther Info:Take Out. , +Take Out. , +415-255-1303 TelAddress:Arinell Pizza509 Valencia StreetSan Francisco, CA 94110DiningGuidesm Category(ies):Pizzeria, +Arinell Pizza509 Valencia StreetSan Francisco, CA 94110DiningGuidesm Category(ies):Pizzeria, +Pizzeria, +415-221-6210 TelAddress:Ariake San Francisco5041 Geary BoulevardSan Francisco, CA 94118DiningGuidesm Category(ies):Japanese, +Ariake San Francisco5041 Geary BoulevardSan Francisco, CA 94118DiningGuidesm Category(ies):Japanese, +Japanese, +415-566-3117 TelAddress:Arizmendi Bakery1331 9th AvenueSan Francisco, CA 94122Neighborhood/Area:Sunset DistrictDiningGuidesm Category(ies):Bakery, +Arizmendi Bakery1331 9th AvenueSan Francisco, CA 94122Neighborhood/Area:Sunset DistrictDiningGuidesm Category(ies):Bakery, +Sunset District, +Bakery, +415-459-4340 Tel415-459-4345 FaxAddress:Aroma Cafe1122 4th StreetSan Rafael, CA 94901Neighborhood/Area:San Rafael, +Aroma Cafe1122 4th StreetSan Rafael, CA 94901Neighborhood/Area:San Rafael, +San Rafael, +650-571-7427 TelAddress:Armadillo Willy's BBQ2260 Bridgepointe ParkwaySan Mateo, CA 94404Neighborhood/Area:San MateoDiningGuidesm Category(ies):American, +Armadillo Willy's BBQ2260 Bridgepointe ParkwaySan Mateo, CA 94404Neighborhood/Area:San MateoDiningGuidesm Category(ies):American, +San Mateo, +American, +415-440-2131 TelAddress:Arroi639 Post StreetSan Francisco, CA 94109DiningGuidesm Category(ies):Thai, +Arroi639 Post StreetSan Francisco, CA 94109DiningGuidesm Category(ies):Thai, +Thai, +415-345-8263 TelAddress:Asa Sushi2365 Chestnut StreetSan Francisco, CA 94123DiningGuidesm Category(ies):Japanese, +Asa Sushi2365 Chestnut StreetSan Francisco, CA 94123DiningGuidesm Category(ies):Japanese, +Japanese, +415-495-4237 TelAddress:Asia Chinese Food825 Mission StreetSan Francisco, CA 94103DiningGuidesm Category(ies):Chinese, +Asia Chinese Food825 Mission StreetSan Francisco, CA 94103DiningGuidesm Category(ies):Chinese, +Chinese, +415-567-8124 TelAddress:Ashoka2034 Chestnut StreetSan Francisco, CA 94123Neighborhood/Area:Marina DistrictDiningGuidesm Category(ies):IndianOpen:Monday-Sunday 5:00 pm-10:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Ashoka2034 Chestnut StreetSan Francisco, CA 94123Neighborhood/Area:Marina DistrictDiningGuidesm Category(ies):IndianOpen:Monday-Sunday 5:00 pm-10:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Marina District, +IndianOpen:Monday-Sunday 5:00 pm-10:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Monday-Sunday 5:00 pm-10:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Dinner. Cost:ModerateOther Info:Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +ModerateOther Info:Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +[American Express] [MasterCard] [Visa], +415-567-8124 TelAddress:Ashoka2048 Chestnut StreetSan Francisco, CA 94123DiningGuidesm Category(ies):Indian, +Ashoka2048 Chestnut StreetSan Francisco, CA 94123DiningGuidesm Category(ies):Indian, +Indian, +415-255-2742 TelAddress:AsiaSF201 9th StreetSan Francisco, CA 94103Neighborhood/Area:Downtown San FranciscoDiningGuidesm Category(ies):Asian, FusionOpen:Monday-Wednesday 6:30 pm-10:00 pmThursday 6:00 pm-10:00 pmFriday 5:30 pm-10:00 pmSaturday 5:00 pm-10:00 pmSunday 6:00 pm-10:00 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +AsiaSF201 9th StreetSan Francisco, CA 94103Neighborhood/Area:Downtown San FranciscoDiningGuidesm Category(ies):Asian, FusionOpen:Monday-Wednesday 6:30 pm-10:00 pmThursday 6:00 pm-10:00 pmFriday 5:30 pm-10:00 pmSaturday 5:00 pm-10:00 pmSunday 6:00 pm-10:00 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Downtown San Francisco, +Asian, FusionOpen:Monday-Wednesday 6:30 pm-10:00 pmThursday 6:00 pm-10:00 pmFriday 5:30 pm-10:00 pmSaturday 5:00 pm-10:00 pmSunday 6:00 pm-10:00 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Monday-Wednesday 6:30 pm-10:00 pmThursday 6:00 pm-10:00 pmFriday 5:30 pm-10:00 pmSaturday 5:00 pm-10:00 pmSunday 6:00 pm-10:00 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Dinner. Cost:ExpensiveOther Info:Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +ExpensiveOther Info:Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +[American Express] [Discover] [MasterCard] [Visa], +415-929-2300 TelAddress:Asia de Cuba San Francisco495 Geary StreetSan Francisco, CA 94102Neighborhood/Area:Downtown San FranciscoLocated In:The Clift HotelDiningGuidesm Category(ies):Asian, Spanish, BarOpen:Monday-Wednesday 7:30 am-10:30 pmThursday-Saturday 7:30 am-11:30 pmSunday 7:30 am-10:30 pmMeals Served:Breakfast. Lunch. Dinner. Cost:ExpensiveOther Info:Valet Parking. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [Diner's Club] [MasterCard] [Visa], +Asia de Cuba San Francisco495 Geary StreetSan Francisco, CA 94102Neighborhood/Area:Downtown San FranciscoLocated In:The Clift HotelDiningGuidesm Category(ies):Asian, Spanish, BarOpen:Monday-Wednesday 7:30 am-10:30 pmThursday-Saturday 7:30 am-11:30 pmSunday 7:30 am-10:30 pmMeals Served:Breakfast. Lunch. Dinner. Cost:ExpensiveOther Info:Valet Parking. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [Diner's Club] [MasterCard] [Visa], +Downtown San Francisco, +The Clift HotelDiningGuidesm Category(ies):Asian, Spanish, BarOpen:Monday-Wednesday 7:30 am-10:30 pmThursday-Saturday 7:30 am-11:30 pmSunday 7:30 am-10:30 pmMeals Served:Breakfast. Lunch. Dinner. Cost:ExpensiveOther Info:Valet Parking. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [Diner's Club] [MasterCard] [Visa], +Asian, Spanish, BarOpen:Monday-Wednesday 7:30 am-10:30 pmThursday-Saturday 7:30 am-11:30 pmSunday 7:30 am-10:30 pmMeals Served:Breakfast. Lunch. Dinner. Cost:ExpensiveOther Info:Valet Parking. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [Diner's Club] [MasterCard] [Visa], +Monday-Wednesday 7:30 am-10:30 pmThursday-Saturday 7:30 am-11:30 pmSunday 7:30 am-10:30 pmMeals Served:Breakfast. Lunch. Dinner. Cost:ExpensiveOther Info:Valet Parking. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [Diner's Club] [MasterCard] [Visa], +Breakfast. Lunch. Dinner. Cost:ExpensiveOther Info:Valet Parking. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [Diner's Club] [MasterCard] [Visa], +ExpensiveOther Info:Valet Parking. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [Diner's Club] [MasterCard] [Visa], +Valet Parking. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Discover] [Diner's Club] [MasterCard] [Visa], +[American Express] [Carte Blanche] [Discover] [Diner's Club] [MasterCard] [Visa], +415-695-0599 TelAddress:Aslam's Rasoi1037 Valencia StreetSan Francisco, CA 94110Neighborhood/Area:Mission DistrictDiningGuidesm Category(ies):IndianOpen:Monday-Sunday 5:00 pm-11:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Aslam's Rasoi1037 Valencia StreetSan Francisco, CA 94110Neighborhood/Area:Mission DistrictDiningGuidesm Category(ies):IndianOpen:Monday-Sunday 5:00 pm-11:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Mission District, +IndianOpen:Monday-Sunday 5:00 pm-11:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Monday-Sunday 5:00 pm-11:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +ModerateOther Info:Take Out. Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Take Out. Catering. Reservations Accepted. Reservations Recommended. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +[American Express] [MasterCard] [Visa], +415-931-9201 TelAddress:Asqew Grill3348 SteinerSan Francisco, CA 94123Neighborhood/Area:Marina DistrictDiningGuidesm Category(ies):Barbeque, Healthy - NaturalOpen:Monday-Sunday 11:00 am-10:00 pmMeals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. Catering. Children's Menu Available. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +Asqew Grill3348 SteinerSan Francisco, CA 94123Neighborhood/Area:Marina DistrictDiningGuidesm Category(ies):Barbeque, Healthy - NaturalOpen:Monday-Sunday 11:00 am-10:00 pmMeals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. Catering. Children's Menu Available. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +Marina District, +Barbeque, Healthy - NaturalOpen:Monday-Sunday 11:00 am-10:00 pmMeals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. Catering. Children's Menu Available. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +Monday-Sunday 11:00 am-10:00 pmMeals Served:Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. Catering. Children's Menu Available. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. Catering. Children's Menu Available. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +InexpensiveOther Info:Take Out. Catering. Children's Menu Available. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +Take Out. Catering. Children's Menu Available. Credit Cards Accepted:[Discover] [MasterCard] [Visa], +[Discover] [MasterCard] [Visa], +415-255-2742 TelAddress:AsiaSF201 Ninth StreetSan Francisco, CA 94103Neighborhood/Area:South of MarketDiningGuidesm Category(ies):Asian, Fusion, LoungeOpen:Wednesday-Thursday 7:00 pm-10:00 pmFriday 7:00 pm-2:00 amSaturday 5:00 pm-2:00 amSunday 7:00 pm-10:00 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +AsiaSF201 Ninth StreetSan Francisco, CA 94103Neighborhood/Area:South of MarketDiningGuidesm Category(ies):Asian, Fusion, LoungeOpen:Wednesday-Thursday 7:00 pm-10:00 pmFriday 7:00 pm-2:00 amSaturday 5:00 pm-2:00 amSunday 7:00 pm-10:00 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +South of Market, +Asian, Fusion, LoungeOpen:Wednesday-Thursday 7:00 pm-10:00 pmFriday 7:00 pm-2:00 amSaturday 5:00 pm-2:00 amSunday 7:00 pm-10:00 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Wednesday-Thursday 7:00 pm-10:00 pmFriday 7:00 pm-2:00 amSaturday 5:00 pm-2:00 amSunday 7:00 pm-10:00 pmMeals Served:Dinner. Cost:ExpensiveOther Info:Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Dinner. Cost:ExpensiveOther Info:Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +ExpensiveOther Info:Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Live Entertainment. Reservations Accepted. Reservations Recommended. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +415-227-0306 TelAddress:Asqew Grill865 Market StreetSan Francisco, CA 94103Neighborhood/Area:Mission DistrictLocated In:Westfield San Francisco CentreDiningGuidesm Category(ies):American, +Asqew Grill865 Market StreetSan Francisco, CA 94103Neighborhood/Area:Mission DistrictLocated In:Westfield San Francisco CentreDiningGuidesm Category(ies):American, +Mission District, +Westfield San Francisco CentreDiningGuidesm Category(ies):American, +American, +415-386-5608 TelAddress:Asqew Grill3415 California StreetSan Francisco, CA 94118DiningGuidesm Category(ies):American, +Asqew Grill3415 California StreetSan Francisco, CA 94118DiningGuidesm Category(ies):American, +American, +415-701-9301 TelAddress:Asqew Grill1607 Haight StreetSan Francisco, CA 94117DiningGuidesm Category(ies):American, +Asqew Grill1607 Haight StreetSan Francisco, CA 94117DiningGuidesm Category(ies):American, +American, +415-614-1958 Tel415-614-1005 FaxAddress:Atami Sushi Bar & Grill1662 Lombard StreetSan Francisco, CA 94123Neighborhood/Area:Marina DistrictDiningGuidesm Category(ies):Sushi, +Atami Sushi Bar & Grill1662 Lombard StreetSan Francisco, CA 94123Neighborhood/Area:Marina DistrictDiningGuidesm Category(ies):Sushi, +Marina District, +Sushi, +650-344-9444 TelAddress:Astaria50 East 3rd AvenueSan Mateo, CA 94402Neighborhood/Area:San MateoDiningGuidesm Category(ies):MediterraneanOpen:Monday-Thursday 11:30 am-9:00 pmFriday-Saturday 11:30 am-9:30 pmSunday 10:30 am-9:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Astaria50 East 3rd AvenueSan Mateo, CA 94402Neighborhood/Area:San MateoDiningGuidesm Category(ies):MediterraneanOpen:Monday-Thursday 11:30 am-9:00 pmFriday-Saturday 11:30 am-9:30 pmSunday 10:30 am-9:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +San Mateo, +MediterraneanOpen:Monday-Thursday 11:30 am-9:00 pmFriday-Saturday 11:30 am-9:30 pmSunday 10:30 am-9:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Monday-Thursday 11:30 am-9:00 pmFriday-Saturday 11:30 am-9:30 pmSunday 10:30 am-9:00 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +ModerateOther Info:Take Out. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Take Out. Catering. Valet Parking. Live Entertainment. Reservations Accepted. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +[American Express] [MasterCard] [Visa], +415-788-4101 Tel415-788-4593 FaxAddress:Atrium101 California StreetSan Francisco, CA 94111Neighborhood/Area:Financial DistrictDiningGuidesm Category(ies):Pacific RimOpen:Monday-Friday 11:30 am-7:30 pmMeals Served:Dinner. Cost:InexpensiveOther Info:Catering. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Atrium101 California StreetSan Francisco, CA 94111Neighborhood/Area:Financial DistrictDiningGuidesm Category(ies):Pacific RimOpen:Monday-Friday 11:30 am-7:30 pmMeals Served:Dinner. Cost:InexpensiveOther Info:Catering. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Financial District, +Pacific RimOpen:Monday-Friday 11:30 am-7:30 pmMeals Served:Dinner. Cost:InexpensiveOther Info:Catering. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Monday-Friday 11:30 am-7:30 pmMeals Served:Dinner. Cost:InexpensiveOther Info:Catering. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Dinner. Cost:InexpensiveOther Info:Catering. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +InexpensiveOther Info:Catering. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +Catering. Outdoor Dining. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +[American Express] [Discover] [Diner's Club] [MasterCard] [Visa], +650-348-3405 Tel650-348-3409 FaxAddress:Athena Gyros312 3rd AvenueRedwood City, CA 94063Neighborhood/Area:Redwood CityDiningGuidesm Category(ies):Mediterranean, +Athena Gyros312 3rd AvenueRedwood City, CA 94063Neighborhood/Area:Redwood CityDiningGuidesm Category(ies):Mediterranean, +Redwood City, +Mediterranean, +650-342-4506 TelAddress:Attic234 South B StreetSan Mateo, CA 94401Neighborhood/Area:San MateoDiningGuidesm Category(ies):Asian, BarOpen:Tuesday-Saturday 5:30 pm-12:00 amMeals Served:Dinner. Cost:ModerateOther Info:Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Attic234 South B StreetSan Mateo, CA 94401Neighborhood/Area:San MateoDiningGuidesm Category(ies):Asian, BarOpen:Tuesday-Saturday 5:30 pm-12:00 amMeals Served:Dinner. Cost:ModerateOther Info:Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +San Mateo, +Asian, BarOpen:Tuesday-Saturday 5:30 pm-12:00 amMeals Served:Dinner. Cost:ModerateOther Info:Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Tuesday-Saturday 5:30 pm-12:00 amMeals Served:Dinner. Cost:ModerateOther Info:Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Dinner. Cost:ModerateOther Info:Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +ModerateOther Info:Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Reservations Accepted. Reservations Recommended. Outdoor Dining. Full Bar on Site. Happy Hour. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +[American Express] [MasterCard] [Visa], +650-757-8716 TelAddress:Auntie Anne's Pretzels32A Serramonte CenterDaly City, CA 94015Neighborhood/Area:Daly CityLocated In:Serramonte CenterDiningGuidesm Category(ies):BakeryCost:InexpensiveOther Info:Take Out. , +Auntie Anne's Pretzels32A Serramonte CenterDaly City, CA 94015Neighborhood/Area:Daly CityLocated In:Serramonte CenterDiningGuidesm Category(ies):BakeryCost:InexpensiveOther Info:Take Out. , +Daly City, +Serramonte CenterDiningGuidesm Category(ies):BakeryCost:InexpensiveOther Info:Take Out. , +BakeryCost:InexpensiveOther Info:Take Out. , +InexpensiveOther Info:Take Out. , +Take Out. , +415-924-2094 TelAddress:Auntie Anne's Pretzels1610 Redwood HighwaySpace #D35Corte Madera, CA 94925Neighborhood/Area:Corte MaderaDiningGuidesm Category(ies):BakeryCost:InexpensiveOther Info:Take Out. , +Auntie Anne's Pretzels1610 Redwood HighwaySpace #D35Corte Madera, CA 94925Neighborhood/Area:Corte MaderaDiningGuidesm Category(ies):BakeryCost:InexpensiveOther Info:Take Out. , +Corte Madera, +BakeryCost:InexpensiveOther Info:Take Out. , +InexpensiveOther Info:Take Out. , +Take Out. , +650-871-0643 TelAddress:Auntie Anne's Pretzels1150 El Camino RealSuite #137San Bruno, CA 94066Neighborhood/Area:San BrunoLocated In:The Shops at TanforanDiningGuidesm Category(ies):BakeryCost:InexpensiveOther Info:Take Out. , +Auntie Anne's Pretzels1150 El Camino RealSuite #137San Bruno, CA 94066Neighborhood/Area:San BrunoLocated In:The Shops at TanforanDiningGuidesm Category(ies):BakeryCost:InexpensiveOther Info:Take Out. , +San Bruno, +The Shops at TanforanDiningGuidesm Category(ies):BakeryCost:InexpensiveOther Info:Take Out. , +BakeryCost:InexpensiveOther Info:Take Out. , +InexpensiveOther Info:Take Out. , +Take Out. , +415-773-2233 TelAddress:Auntie Anne's PretzelsStreet LevelSuite #1San Francisco, CA 94111DiningGuidesm Category(ies):BakeryCost:InexpensiveOther Info:Take Out. , +Auntie Anne's PretzelsStreet LevelSuite #1San Francisco, CA 94111DiningGuidesm Category(ies):BakeryCost:InexpensiveOther Info:Take Out. , +BakeryCost:InexpensiveOther Info:Take Out. , +InexpensiveOther Info:Take Out. , +Take Out. , +415-504-9700 TelAddress:Auntie Anne's Pretzels3251 20th AvenueSpace #261San Francisco, CA 94132Neighborhood/Area:Sunset DistrictLocated In:StonestownDiningGuidesm Category(ies):BakeryCost:InexpensiveOther Info:Take Out. , +Auntie Anne's Pretzels3251 20th AvenueSpace #261San Francisco, CA 94132Neighborhood/Area:Sunset DistrictLocated In:StonestownDiningGuidesm Category(ies):BakeryCost:InexpensiveOther Info:Take Out. , +Sunset District, +StonestownDiningGuidesm Category(ies):BakeryCost:InexpensiveOther Info:Take Out. , +BakeryCost:InexpensiveOther Info:Take Out. , +InexpensiveOther Info:Take Out. , +Take Out. , +415-382-8488 TelAddress:Aurora Ristorante Italiano8 Commercial BoulevardBel Marin KeysNovato, CA 94949Neighborhood/Area:NovatoDiningGuidesm Category(ies):ItalianOpen:Monday-Sunday 11:00 am-9:30 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Recommended. Outdoor Dining. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Aurora Ristorante Italiano8 Commercial BoulevardBel Marin KeysNovato, CA 94949Neighborhood/Area:NovatoDiningGuidesm Category(ies):ItalianOpen:Monday-Sunday 11:00 am-9:30 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Recommended. Outdoor Dining. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Novato, +ItalianOpen:Monday-Sunday 11:00 am-9:30 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Recommended. Outdoor Dining. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Monday-Sunday 11:00 am-9:30 pmMeals Served:Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Recommended. Outdoor Dining. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Brunch. Lunch. Dinner. Cost:ModerateOther Info:Take Out. Catering. Reservations Recommended. Outdoor Dining. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +ModerateOther Info:Take Out. Catering. Reservations Recommended. Outdoor Dining. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Take Out. Catering. Reservations Recommended. Outdoor Dining. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +[American Express] [MasterCard] [Visa], +415-989-1910 TelAddress:Aurea905 California StreetSan Francisco, CA 94108Neighborhood/Area:Nob HillLocated In:Renaissance Stanford Court HotelDiningGuidesm Category(ies):American - Casual, BarOpen:Monday-Sunday Meals Served:Breakfast. Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Reservations Accepted. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Aurea905 California StreetSan Francisco, CA 94108Neighborhood/Area:Nob HillLocated In:Renaissance Stanford Court HotelDiningGuidesm Category(ies):American - Casual, BarOpen:Monday-Sunday Meals Served:Breakfast. Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Reservations Accepted. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Nob Hill, +Renaissance Stanford Court HotelDiningGuidesm Category(ies):American - Casual, BarOpen:Monday-Sunday Meals Served:Breakfast. Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Reservations Accepted. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +American - Casual, BarOpen:Monday-Sunday Meals Served:Breakfast. Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Reservations Accepted. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Monday-Sunday Meals Served:Breakfast. Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Reservations Accepted. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Breakfast. Brunch. Lunch. Dinner. Cost:ExpensiveOther Info:Reservations Accepted. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +ExpensiveOther Info:Reservations Accepted. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +Reservations Accepted. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [MasterCard] [Visa], +[American Express] [MasterCard] [Visa], +415-928-4977 Tel415-928-4986 FaxAddress:Aux Delices2327 Polk StreetSan Francisco, CA 94109DiningGuidesm Category(ies):Vietnamese, +Aux Delices2327 Polk StreetSan Francisco, CA 94109DiningGuidesm Category(ies):Vietnamese, +Vietnamese, +415-453-3407 TelAddress:Ava Restaurant636 San Anselmo AvenueSan Anselmo, CA 94960Neighborhood/Area:San AnselmoDiningGuidesm Category(ies):New WorldOpen:Tuesday-Thursday 5:30 pm-9:30 pmFriday-Saturday 5:30 pm-10:00 pmMeals Served:Dinner. Group Capacity:10Cost:ModerateOther Info:Take Out. Reservations Accepted. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[MasterCard] [Visa], +Ava Restaurant636 San Anselmo AvenueSan Anselmo, CA 94960Neighborhood/Area:San AnselmoDiningGuidesm Category(ies):New WorldOpen:Tuesday-Thursday 5:30 pm-9:30 pmFriday-Saturday 5:30 pm-10:00 pmMeals Served:Dinner. Group Capacity:10Cost:ModerateOther Info:Take Out. Reservations Accepted. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[MasterCard] [Visa], +San Anselmo, +New WorldOpen:Tuesday-Thursday 5:30 pm-9:30 pmFriday-Saturday 5:30 pm-10:00 pmMeals Served:Dinner. Group Capacity:10Cost:ModerateOther Info:Take Out. Reservations Accepted. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[MasterCard] [Visa], +Tuesday-Thursday 5:30 pm-9:30 pmFriday-Saturday 5:30 pm-10:00 pmMeals Served:Dinner. Group Capacity:10Cost:ModerateOther Info:Take Out. Reservations Accepted. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[MasterCard] [Visa], +Dinner. Group Capacity:10Cost:ModerateOther Info:Take Out. Reservations Accepted. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[MasterCard] [Visa], +10Cost:ModerateOther Info:Take Out. Reservations Accepted. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[MasterCard] [Visa], +ModerateOther Info:Take Out. Reservations Accepted. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[MasterCard] [Visa], +Take Out. Reservations Accepted. Outdoor Dining. Banquet Facilities. Credit Cards Accepted:[MasterCard] [Visa], +[MasterCard] [Visa], +650-854-1222 Tel650-854-6979 FaxAddress:Avanti Pizza Fresh Pasta3536 Alameda De Las PulgasMenlo Park, CA 94025Neighborhood/Area:Menlo ParkDiningGuidesm Category(ies):Pizzeria, +Avanti Pizza Fresh Pasta3536 Alameda De Las PulgasMenlo Park, CA 94025Neighborhood/Area:Menlo ParkDiningGuidesm Category(ies):Pizzeria, +Menlo Park, +Pizzeria, +415-381-8293 TelAddress:Avatar's Punjabi Burrito's15 Madrona StreetMill Valley, CA 94941Neighborhood/Area:Mill ValleyDiningGuidesm Category(ies):Mexican, +Avatar's Punjabi Burrito's15 Madrona StreetMill Valley, CA 94941Neighborhood/Area:Mill ValleyDiningGuidesm Category(ies):Mexican, +Mill Valley, +Mexican, +415-332-8083 TelAddress:Avatar's Restaurant2656 BridgewaySausalito, CA 94965Neighborhood/Area:SausalitoDiningGuidesm Category(ies):Seafood, +Avatar's Restaurant2656 BridgewaySausalito, CA 94965Neighborhood/Area:SausalitoDiningGuidesm Category(ies):Seafood, +Sausalito, +Seafood, +415-348-0808 TelAddress:Ayola118 New Montgomery StreetSan Francisco, CA 94105DiningGuidesm Category(ies):Greek, +Ayola118 New Montgomery StreetSan Francisco, CA 94105DiningGuidesm Category(ies):Greek, +Greek, +415-437-2947 TelAddress:Axis Cafe1201 8th StreetSan Francisco, CA 94107DiningGuidesm Category(ies):American, +Axis Cafe1201 8th StreetSan Francisco, CA 94107DiningGuidesm Category(ies):American, +American, +415-752-2222 TelAddress:Aziza5800 Geary BoulevardSan Francisco, CA 94121Neighborhood/Area:Richmond DistrictDiningGuidesm Category(ies):Mediterranean, MoroccanOpen:Monday 5:30 pm-10:30 pmWednesday-Sunday 5:30 pm-10:30 pmMeals Served:Dinner. Cost:ModerateOther Info:Valet Parking. Full Bar on Site. Credit Cards Accepted:[MasterCard] [Visa], +Aziza5800 Geary BoulevardSan Francisco, CA 94121Neighborhood/Area:Richmond DistrictDiningGuidesm Category(ies):Mediterranean, MoroccanOpen:Monday 5:30 pm-10:30 pmWednesday-Sunday 5:30 pm-10:30 pmMeals Served:Dinner. Cost:ModerateOther Info:Valet Parking. Full Bar on Site. Credit Cards Accepted:[MasterCard] [Visa], +Richmond District, +Mediterranean, MoroccanOpen:Monday 5:30 pm-10:30 pmWednesday-Sunday 5:30 pm-10:30 pmMeals Served:Dinner. Cost:ModerateOther Info:Valet Parking. Full Bar on Site. Credit Cards Accepted:[MasterCard] [Visa], +Monday 5:30 pm-10:30 pmWednesday-Sunday 5:30 pm-10:30 pmMeals Served:Dinner. Cost:ModerateOther Info:Valet Parking. Full Bar on Site. Credit Cards Accepted:[MasterCard] [Visa], +Dinner. Cost:ModerateOther Info:Valet Parking. Full Bar on Site. Credit Cards Accepted:[MasterCard] [Visa], +ModerateOther Info:Valet Parking. Full Bar on Site. Credit Cards Accepted:[MasterCard] [Visa], +Valet Parking. Full Bar on Site. Credit Cards Accepted:[MasterCard] [Visa], +[MasterCard] [Visa], +650-631-5886 TelAddress:Azure648 El Camino RealSan Carlos, CA 94070Neighborhood/Area:San CarlosDiningGuidesm Category(ies):California, FrenchOpen:Tuesday-Friday 11:30 am-10:00 pmSaturday-Sunday 5:00 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Azure648 El Camino RealSan Carlos, CA 94070Neighborhood/Area:San CarlosDiningGuidesm Category(ies):California, FrenchOpen:Tuesday-Friday 11:30 am-10:00 pmSaturday-Sunday 5:00 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +San Carlos, +California, FrenchOpen:Tuesday-Friday 11:30 am-10:00 pmSaturday-Sunday 5:00 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Tuesday-Friday 11:30 am-10:00 pmSaturday-Sunday 5:00 pm-10:00 pmMeals Served:Lunch. Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Lunch. Dinner. Cost:ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +ModerateOther Info:Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Take Out. Reservations Accepted. Reservations Recommended. Full Bar on Site. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +[American Express] [Discover] [MasterCard] [Visa], +415-538-0918 Tel415-538-0916 FaxAddress:Azie826 Folsom StreetSan Francisco, CA 94107Neighborhood/Area:Downtown San FranciscoDiningGuidesm Category(ies):FrenchOpen:Monday-Thursday 5:30 pm-10:00 pmFriday-Saturday 5:30 pm-10:30 pmSunday 5:00 pm-10:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Catering. Valet Parking. Reservations Required. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Diner's Club] [MasterCard] [Visa], +Azie826 Folsom StreetSan Francisco, CA 94107Neighborhood/Area:Downtown San FranciscoDiningGuidesm Category(ies):FrenchOpen:Monday-Thursday 5:30 pm-10:00 pmFriday-Saturday 5:30 pm-10:30 pmSunday 5:00 pm-10:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Catering. Valet Parking. Reservations Required. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Diner's Club] [MasterCard] [Visa], +Downtown San Francisco, +FrenchOpen:Monday-Thursday 5:30 pm-10:00 pmFriday-Saturday 5:30 pm-10:30 pmSunday 5:00 pm-10:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Catering. Valet Parking. Reservations Required. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Diner's Club] [MasterCard] [Visa], +Monday-Thursday 5:30 pm-10:00 pmFriday-Saturday 5:30 pm-10:30 pmSunday 5:00 pm-10:00 pmMeals Served:Dinner. Cost:ModerateOther Info:Catering. Valet Parking. Reservations Required. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Diner's Club] [MasterCard] [Visa], +Dinner. Cost:ModerateOther Info:Catering. Valet Parking. Reservations Required. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Diner's Club] [MasterCard] [Visa], +ModerateOther Info:Catering. Valet Parking. Reservations Required. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Diner's Club] [MasterCard] [Visa], +Catering. Valet Parking. Reservations Required. Full Bar on Site. Banquet Facilities. Credit Cards Accepted:[American Express] [Carte Blanche] [Diner's Club] [MasterCard] [Visa], +[American Express] [Carte Blanche] [Diner's Club] [MasterCard] [Visa], +650-652-4908 Tel650-652-9825 FaxAddress:The American 'Bull'1817 El Camino RealBurlingame, CA 94010Neighborhood/Area:BurlingameDiningGuidesm Category(ies):American, +The American 'Bull'1817 El Camino RealBurlingame, CA 94010Neighborhood/Area:BurlingameDiningGuidesm Category(ies):American, +Burlingame, +American, +415-648-1047 TelAddress:The Atlas Cafe3049 20th StreetSan Francisco, CA 94110Neighborhood/Area:Mission DistrictDiningGuidesm Category(ies):Bakery, CafeOpen:Monday-Friday 6:30 am-10:00 pmSaturday-Sunday 8:00 am-8:00 pmMeals Served:Breakfast. Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +The Atlas Cafe3049 20th StreetSan Francisco, CA 94110Neighborhood/Area:Mission DistrictDiningGuidesm Category(ies):Bakery, CafeOpen:Monday-Friday 6:30 am-10:00 pmSaturday-Sunday 8:00 am-8:00 pmMeals Served:Breakfast. Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Mission District, +Bakery, CafeOpen:Monday-Friday 6:30 am-10:00 pmSaturday-Sunday 8:00 am-8:00 pmMeals Served:Breakfast. Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Monday-Friday 6:30 am-10:00 pmSaturday-Sunday 8:00 am-8:00 pmMeals Served:Breakfast. Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Breakfast. Lunch. Dinner. Cost:InexpensiveOther Info:Take Out. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +InexpensiveOther Info:Take Out. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +Take Out. Credit Cards Accepted:[American Express] [Discover] [MasterCard] [Visa], +[American Express] [Discover] [MasterCard] [Visa], diff --git a/file2.json b/file2.json new file mode 100644 index 0000000..69788ad --- /dev/null +++ b/file2.json @@ -0,0 +1,62 @@ +[ + { + "name": "Olivella’s Neo Pizza Napoletana University Park", + "category": "Pizza", + "phone": "(214) 528-7070", + "address": "3406 McFarlin BlvdDallas, TX 75205" + }, + { + "name": "St Martin’s Wine Bistro", + "category": "French,Wine Bars", + "phone": "(214) 826-0940", + "address": "3020 Greenville AveDallas, TX 75206" + }, + { + "name": "Abacus", + "category": "Asian Fusion", + "phone": "(214) 559-3111", + "address": "4511 McKinney AveDallas, TX 75205" + }, + { + "name": "Victor Tangos", + "category": "American (New),Gastropubs,Cocktail Bars", + "phone": "(214) 252-8595", + "address": "3001 N Henderson AveDallas, TX 75206" + }, + { + "name": "Tei Tei Robata", + "category": "Japanese,Sushi Bars", + "phone": "(214) 828-2400", + "address": "2906 N Henderson AveDallas, TX 75206" + }, + { + "name": "Pappas Bros Steakhouse", + "category": "Steakhouses,American (Traditional),Buffets", + "phone": "(214) 366-2000", + "address": "10477 Lombardy LnDallas, TX 75220" + }, + { + "name": "Nonna Restaurant", + "category": "Italian", + "phone": "(214) 521-1800", + "address": "4115 Lomo Alto DrDallas, TX 75219" + }, + { + "name": "Spoon Bar & Kitchen", + "category": "Seafood", + "phone": "(214) 368-8220", + "address": "8220 Westchester DrDallas, TX 75225" + }, + { + "name": "Eddie V’s Prime Seafood", + "category": "Steakhouses,Seafood,Jazz & Blues", + "phone": "(214) 890-1500", + "address": "4023 Oak Lawn AveDallas, TX 75219" + }, + { + "name": "Mai’s Vietnamese Restaurant", + "category": "Vietnamese", + "phone": "(214) 826-9887", + "address": "4812 Bryan StDallas, TX 75204" + } +] \ No newline at end of file diff --git a/node_modules/.bin/gulp b/node_modules/.bin/gulp new file mode 120000 index 0000000..5de7332 --- /dev/null +++ b/node_modules/.bin/gulp @@ -0,0 +1 @@ +../gulp/bin/gulp.js \ No newline at end of file diff --git a/node_modules/cheerio/.jshintrc b/node_modules/cheerio/.jshintrc new file mode 100644 index 0000000..f96ed6c --- /dev/null +++ b/node_modules/cheerio/.jshintrc @@ -0,0 +1,14 @@ +{ + "indent": 2, + "eqnull": true, + "laxbreak": true, + "proto": true, + "undef": true, + "node": true, + "globals": { + "expect": true, + "it": true, + "describe": true, + "beforeEach": true + } +} diff --git a/node_modules/cheerio/.npmignore b/node_modules/cheerio/.npmignore new file mode 100644 index 0000000..64b7e3f --- /dev/null +++ b/node_modules/cheerio/.npmignore @@ -0,0 +1,8 @@ +src/ +support/ +tests/ +examples/ +*.sock +*.tmproj +coverage.html +lib-cov diff --git a/node_modules/cheerio/.travis.yml b/node_modules/cheerio/.travis.yml new file mode 100644 index 0000000..c693a93 --- /dev/null +++ b/node_modules/cheerio/.travis.yml @@ -0,0 +1,5 @@ +language: node_js +node_js: + - 0.6 + - 0.8 + - "0.10" diff --git a/node_modules/cheerio/CONTRIBUTING.md b/node_modules/cheerio/CONTRIBUTING.md new file mode 100644 index 0000000..cc38bb8 --- /dev/null +++ b/node_modules/cheerio/CONTRIBUTING.md @@ -0,0 +1,47 @@ +# Contributing to Cheerio + +Thanks for your interest in contributing to the project! Here's a rundown of +how we'd like to work with you: + +1. File an issue on GitHub describing the contribution you'd like to make. This + will help us to get you started on the right foot. +2. Create a single commit that addresses the issue: + 1. Follow the project's code style (see below) + 2. Add enough unit tests to "prove" that your patch is correct + 3. Update the project documentation as needed (see below) + 4. Describe your approach with as much detail as necessary in the git + commit message +3. Open a pull request, and reference the initial issue in the pull request + message. + +# Documentation + +Any API change should be reflected in the project's README.md file. Reuse +[jQuery's documentation](http://api.jquery.com) wherever possible, but take +care to note aspects that make Cheerio distinct. + +# Code Style + +This section is by no means complete. For undocumented stylistic choices, +please try to maintain consistency with the code base. + +- Single quotes: `'` +- Whitespace + - Two-space "soft" tabs + - Once space following control flow statements (`if (condition) {` rather + than `if(condition) {`) + - Remove trailing spaces + - [End each file with a newline + character.](https://github.com/editorconfig/editorconfig/wiki/Newline-at-End-of-File-Support) +- Terminate every statement with a semicolon +- Private functionality (for re-using functionality that isn't part of the + jQuery API) + - *Static methods*: If the functionality does not require a reference to a + Cheerio instance, simply define a named function within the module it is + needed. + - *Instance methods*: If the functionality requires a reference to a Cheerio + instance, informally define the method as "private" using the following + conventions: + - Define the method as a function on the Cheerio prototype + - Prefix the method name with an underscore (`_`) character + - Include `@api private` in the code comment the documents the method diff --git a/node_modules/cheerio/History.md b/node_modules/cheerio/History.md new file mode 100644 index 0000000..316b550 --- /dev/null +++ b/node_modules/cheerio/History.md @@ -0,0 +1,292 @@ + +0.12.4 / 2013-11-12 +================== + + * Coerce JSON values returned by `data` (@jugglinmike) + * issue #284: when rendering HTML, use original data attributes (@Trott) + * Introduce JSHint for automated code linting (@jugglinmike) + * Prevent `find` from returning duplicate elements (@jugglinmike) + * Implement function signature of `replaceWith` (@jugglinmike) + * Implement function signature of `before` (@jugglinmike) + * Implement function signature of `after` (@jugglinmike) + * Implement function signature of `append`/`prepend` (@jugglinmike) + * Extend iteration methods to accept nodes (@jugglinmike) + * Improve `removeClass` (@jugglinmike) + * Complete function signature of `addClass` (@jugglinmike) + * Fix bug in `removeClass` (@jugglinmike) + * Improve contributing.md (@jugglinmike) + * Fix and document .css() (@jugglinmike) + +0.12.3 / 2013-10-04 +=================== + + * Add .toggleClass() function (@cyberthom) + * Add contributing guidelines (@jugglinmike) + * Fix bug in `siblings` (@jugglinmike) + * Correct the implementation `filter` and `is` (@jugglinmike) + * add .data() function (@andi-neck) + * add .css() (@yields) + * Implements contents() (@jlep) + +0.12.2 / 2013-09-04 +================== + + * Correct implementation of `$.fn.text` (@jugglinmike) + * Refactor Cheerio array creation (@jugglinmike) + * Extend manipulation methods to accept Arrays (@jugglinmike) + * support .attr(attributeName, function(index, attr)) (@xiaohwan) + +0.12.1 / 2013-07-30 +================== + + * Correct behavior of `Cheerio#parents` (@jugglinmike) + * Double quotes inside attributes kills HTML (@khoomeister) + * Making next({}) and prev({}) return empty object (@absentTelegraph) + * Implement $.parseHTML (@jugglinmike) + * Correct bug in jQuery.fn.closest (@jugglinmike) + * Correct behavior of $.fn.val on 'option' elements (@jugglinmike) + +0.12.0 / 2013-06-09 +=================== + + * Breaking Change: Changed context from parent to the actual passed one (@swissmanu) + * Fixed: jquery checkbox val behavior (@jhubble) + * Added: output xml with $.xml() (@Maciek416) + * Bumped: htmlparser2 to 3.1.1 + * Fixed: bug in attr(key, val) on empty objects (@farhadi) + * Added: prevAll, nextAll (@lessmind) + * Fixed: Safety check in parents and closest (@zero21xxx) + * Added: .is(sel) (@zero21xxx) + +0.11.0 / 2013-04-22 +================== + +* Added: .closest() (@jeremy-dentel) +* Added: .parents() (@zero21xxx) +* Added: .val() (@rschmukler & @leahciMic) +* Added: Travis support for node 0.10.0 (@jeremy-dentel) +* Fixed: .find() if no selector (@davidchambers) +* Fixed: Propagate syntax errors caused by invalid selectors (@davidchambers) + +0.10.8 / 2013-03-11 +================== + +* Add slice method (SBoudrias) + +0.10.7 / 2013-02-10 +================== + +* Code & doc cleanup (davidchambers) +* Fixed bug in filter (jugglinmike) + +0.10.6 / 2013-01-29 +================== + +* Added `$.contains(...)` (jugglinmike) +* formatting cleanup (davidchambers) +* Bug fix for `.children()` (jugglinmike & davidchambers) +* Remove global `render` bug (wvl) + +0.10.5 / 2012-12-18 +=================== + +* Fixed botched publish from 0.10.4 - changes should now be present + +0.10.4 / 2012-12-16 +================== + +* $.find should query descendants only (@jugglinmike) +* Tighter underscore dependency + +0.10.3 / 2012-11-18 +=================== + +* fixed outer html bug +* Updated documentation for $(...).html() and $.html() + +0.10.2 / 2012-11-17 +=================== + +* Added a toString() method (@bensheldon) +* use `_.each` and `_.map` to simplify cheerio namesakes (@davidchambers) +* Added filter() with tests and updated readme (@bensheldon & @davidchambers) +* Added spaces between attributes rewritten by removeClass (@jos3000) +* updated docs to remove reference to size method (@ironchefpython) +* removed tidy from cheerio + +0.10.1 / 2012-10-04 +=================== + +* Fixed regression, filtering with a context (#106) + +0.10.0 / 2012-09-24 +=================== + +* Greatly simplified and reorganized the library, reducing the loc by 30% +* Now supports mocha's test-coverage +* Deprecated self-closing tags (HTML5 doesn't require them) +* Fixed error thrown in removeClass(...) @robashton + +0.9.2 / 2012-08-10 +================== + +* added $(...).map(fn) +* manipulation: refactor `makeCheerioArray` +* make .removeClass() remove *all* occurrences (#64) + +0.9.1 / 2012-08-03 +================== + +* fixed bug causing options not to make it to the parser + +0.9.0 / 2012-07-24 +================== + +* Added node 8.x support +* Removed node 4.x support +* Add html(dom) support (@wvl) +* fixed xss vulnerabilities on .attr(), .text(), & .html() (@benatkin, @FB55) +* Rewrote tests into javascript, removing coffeescript dependency (@davidchambers) +* Tons of cleanup (@davidchambers) + +0.8.3 / 2012-06-12 +================== + +* Fixed minor package regression (closes #60) + +0.8.2 / 2012-06-11 +================== + +* Now fails gracefully in cases that involve special chars, which is inline with jQuery (closes #59) +* text() now decode special entities (closes #52) +* updated travis.yml to test node 4.x + +0.8.1 / 2012-06-02 +================== + +* fixed regression where if you created an element, it would update the root +* compatible with node 4.x (again) + +0.8.0 / 2012-05-27 +================== + +* Updated CSS parser to use FB55/CSSselect. Cheerio now supports most CSS3 psuedo selectors thanks to @FB55. +* ignoreWhitespace now on by default again. See #55 for context. +* Changed $(':root') to $.root(), cleaned up $.clone() +* Support for .eq(i) thanks to @alexbardas +* Removed support for node 0.4.x +* Fixed memory leak where package.json was continually loaded +* Tons more tests + +0.7.0 / 2012-04-08 +================== + +* Now testing with node v0.7.7 +* Added travis-ci integration +* Replaced should.js with expect.js. Browser testing to come +* Fixed spacing between attributes and their values +* Added HTML pretty print +* Exposed node-htmlparser2 parsing options +* Revert .replaceWith(...) to be consistent with jQuery + +0.6.2 / 2012-02-12 +================== + +* Fixed .replaceWith(...) regression + +0.6.1 / 2012-02-12 +================== + +* Added .first(), .last(), and .clone() commands. +* Option to parse using whitespace added to `.load`. +* Many bug fixes to make cheerio more aligned with jQuery. +* Added $(':root') to select the highest level element. + +Many thanks to the contributors that made this release happen: @ironchefpython and @siddMahen + +0.6.0 / 2012-02-07 +================== + +* *Important:* `$(...).html()` now returns inner HTML, which is in line with the jQuery spec +* `$.html()` returns the full HTML string. `$.html([cheerioObject])` will return the outer(selected element's tag) and inner HTML of that object +* Fixed bug that prevented HTML strings with depth (eg. `append('')`) from getting `parent`, `next`, `prev` attributes. +* Halted [htmlparser2](https://github.com/FB55/node-htmlparser) at v2.2.2 until single attributes bug gets fixed. + +0.5.1 / 2012-02-05 +================== + +* Fixed minor regression: $(...).text(fn) would fail + +0.5.1 / 2012-02-05 +================== + +* Fixed regression: HTML pages with comments would fail + +0.5.0 / 2012-02-04 +================== + +* Transitioned from Coffeescript back to Javascript +* Parser now ignores whitespace +* Fixed issue with double slashes on self-enclosing tags +* Added boolean attributes to html rendering + +0.4.2 / 2012-01-16 +================== + +* Multiple selectors support: $('.apple, .orange'). Thanks @siddMahen! +* Update package.json to always use latest cheerio-soupselect +* Fix memory leak in index.js + +0.4.1 / 2011-12-19 +================== +* Minor packaging changes to allow `make test` to work from npm installation + +0.4.0 / 2011-12-19 +================== + +* Rewrote all unit tests as cheerio transitioned from vows -> mocha +* Internally, renderer.render -> render(...), parser.parse -> parse(...) +* Append, prepend, html, before, after all work with only text (no tags) +* Bugfix: Attributes can now be removed from script and style tags +* Added yield as a single tag +* Cheerio now compatible with node >=0.4.7 + +0.3.2 / 2011-12-1 +================= + +* Fixed $(...).text(...) to work with "root" element + +0.3.1 / 2011-11-25 +================== + +* Now relying on cheerio-soupselect instead of node-soupselect +* Removed all lingering htmlparser dependencies +* parser now returns parent "root" element. Root now never needs to be updated when there is multiple roots. This fixes ongoing issues with before(...), after(...) and other manipulation functions +* Added jQuery's $(...).replaceWith(...) + +0.3.0 / 2011-11-19 +================== + +* Now using htmlparser2 for parsing (2x speed increase, cleaner, actively developed) +* Added benchmark directory for future speed tests +* $('...').dom() was funky, so it was removed in favor of $('...').get(). $.dom() still works the same. +* $.root now correctly static across all instances of $ +* Added a screencast + +0.2.2 / 2011-11-9 +================= + +* Traversing will select ` text " +); + +module.exports = makeDom(markup); diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/domutils/test/tests/helpers.js b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/domutils/test/tests/helpers.js new file mode 100644 index 0000000..c418dd4 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/domutils/test/tests/helpers.js @@ -0,0 +1,29 @@ +var makeDom = require("../utils").makeDom; +var assert = require("assert"); + +describe("helpers", function() { + describe("removeSubsets", function() { + var removeSubsets = require("../..").removeSubsets; + var dom = makeDom("

")[0]; + + it("removes identical trees", function() { + var matches = removeSubsets([dom, dom]); + assert.equal(matches.length, 1); + }); + + it("Removes subsets found first", function() { + var matches = removeSubsets([dom, dom.children[0].children[0]]); + assert.equal(matches.length, 1); + }); + + it("Removes subsets found last", function() { + var matches = removeSubsets([dom.children[0], dom]); + assert.equal(matches.length, 1); + }); + + it("Does not remove unique trees", function() { + var matches = removeSubsets([dom.children[0], dom.children[1]]); + assert.equal(matches.length, 2); + }); + }); +}); diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/domutils/test/tests/legacy.js b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/domutils/test/tests/legacy.js new file mode 100644 index 0000000..87fabfa --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/domutils/test/tests/legacy.js @@ -0,0 +1,119 @@ +var DomUtils = require("../.."); +var fixture = require("../fixture"); +var assert = require("assert"); + +// Set up expected structures +var expected = { + idAsdf: fixture[1], + tag2: [], + typeScript: [] +}; +for (var idx = 0; idx < 20; ++idx) { + expected.tag2.push(fixture[idx*2 + 1].children[5]); + expected.typeScript.push(fixture[idx*2 + 1].children[1]); +} + +describe("legacy", function() { + describe("getElements", function() { + var getElements = DomUtils.getElements; + it("returns the node with the specified ID", function() { + assert.deepEqual( + getElements({ id: "asdf" }, fixture, true, 1), + [expected.idAsdf] + ); + }); + it("returns empty array for unknown IDs", function() { + assert.deepEqual(getElements({ id: "asdfs" }, fixture, true), []); + }); + it("returns the nodes with the specified tag name", function() { + assert.deepEqual( + getElements({ tag_name:"tag2" }, fixture, true), + expected.tag2 + ); + }); + it("returns empty array for unknown tag names", function() { + assert.deepEqual( + getElements({ tag_name : "asdfs" }, fixture, true), + [] + ); + }); + it("returns the nodes with the specified tag type", function() { + assert.deepEqual( + getElements({ tag_type: "script" }, fixture, true), + expected.typeScript + ); + }); + it("returns empty array for unknown tag types", function() { + assert.deepEqual( + getElements({ tag_type: "video" }, fixture, true), + [] + ); + }); + }); + + describe("getElementById", function() { + var getElementById = DomUtils.getElementById; + it("returns the specified node", function() { + assert.equal( + expected.idAsdf, + getElementById("asdf", fixture, true) + ); + }); + it("returns `null` for unknown IDs", function() { + assert.equal(null, getElementById("asdfs", fixture, true)); + }); + }); + + describe("getElementsByTagName", function() { + var getElementsByTagName = DomUtils.getElementsByTagName; + it("returns the specified nodes", function() { + assert.deepEqual( + getElementsByTagName("tag2", fixture, true), + expected.tag2 + ); + }); + it("returns empty array for unknown tag names", function() { + assert.deepEqual( + getElementsByTagName("tag23", fixture, true), + [] + ); + }); + }); + + describe("getElementsByTagType", function() { + var getElementsByTagType = DomUtils.getElementsByTagType; + it("returns the specified nodes", function() { + assert.deepEqual( + getElementsByTagType("script", fixture, true), + expected.typeScript + ); + }); + it("returns empty array for unknown tag types", function() { + assert.deepEqual( + getElementsByTagType("video", fixture, true), + [] + ); + }); + }); + + describe("getOuterHTML", function() { + var getOuterHTML = DomUtils.getOuterHTML; + it("Correctly renders the outer HTML", function() { + assert.equal( + getOuterHTML(fixture[1]), + " text " + ); + }); + }); + + describe("getInnerHTML", function() { + var getInnerHTML = DomUtils.getInnerHTML; + it("Correctly renders the inner HTML", function() { + assert.equal( + getInnerHTML(fixture[1]), + " text " + ); + }); + }); + +}); diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/domutils/test/utils.js b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/domutils/test/utils.js new file mode 100644 index 0000000..676e8f6 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/domutils/test/utils.js @@ -0,0 +1,9 @@ +var htmlparser = require("htmlparser2"); + +exports.makeDom = function(markup) { + var handler = new htmlparser.DomHandler(), + parser = new htmlparser.Parser(handler); + parser.write(markup); + parser.done(); + return handler.dom; +}; diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/nth-check/README.md b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/nth-check/README.md new file mode 100644 index 0000000..b2189f3 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/nth-check/README.md @@ -0,0 +1,50 @@ +#nth-check + +A performant nth-check parser & compiler. + +###About + +This module can be used to parse & compile nth-checks, as they are found in CSS 3's `nth-child()` and `nth-last-of-type()`. + +`nth-check` focusses on speed, providing optimized functions for different kinds of nth-child formulas, while still following the [spec](http://www.w3.org/TR/css3-selectors/#nth-child-pseudo). + +###API + +```js +var nthCheck = require("nth-check"); +``` + +#####`nthCheck(formula)` + +First parses, then compiles the formula. + +#####`nthCheck.parse(formula)` + +Parses the expression, throws a `SyntaxError` if it fails, otherwise returns an array containing two elements. + +__Example:__ + +```js +nthCheck.parse("2n+3") //[2, 3] +``` + +#####`nthCheck.compile([a, b])` + +Takes an array with two elements (as returned by `.parse`) and returns a highly optimized function. + +If the formula doesn't match any elements, it returns [`boolbase`](https://github.com/fb55/boolbase)'s `falseFunc`, otherwise, a function accepting an _index_ is returned, which returns whether or not a passed _index_ matches the formula. (Note: The spec starts counting at `1`, the returned function at `0`). + +```js +var check = nthCheck.compile([2, 3]); + +check(0) //false +check(1) //false +check(2) //true +check(3) //false +check(4) //true +check(5) //false +check(6) //true +``` + +--- +License: BSD \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/nth-check/compile.js b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/nth-check/compile.js new file mode 100644 index 0000000..77f2436 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/nth-check/compile.js @@ -0,0 +1,40 @@ +module.exports = compile; + +var BaseFuncs = require("boolbase"), + trueFunc = BaseFuncs.trueFunc, + falseFunc = BaseFuncs.falseFunc; + +/* + returns a function that checks if an elements index matches the given rule + highly optimized to return the fastest solution +*/ +function compile(parsed){ + var a = parsed[0], + b = parsed[1] - 1; + + //when b <= 0, a*n won't be possible for any matches when a < 0 + //besides, the specification says that no element is matched when a and b are 0 + if(b < 0 && a <= 0) return falseFunc; + + //when a is in the range -1..1, it matches any element (so only b is checked) + if(a ===-1) return function(pos){ return pos <= b; }; + if(a === 0) return function(pos){ return pos === b; }; + //when b <= 0 and a === 1, they match any element + if(a === 1) return b < 0 ? trueFunc : function(pos){ return pos >= b; }; + + //when a > 0, modulo can be used to check if there is a match + var bMod = b % a; + if(bMod < 0) bMod += a; + + if(a > 1){ + return function(pos){ + return pos >= b && pos % a === bMod; + }; + } + + a *= -1; //make `a` positive + + return function(pos){ + return pos <= b && pos % a === bMod; + }; +} \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/nth-check/index.js b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/nth-check/index.js new file mode 100644 index 0000000..3253bbd --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/nth-check/index.js @@ -0,0 +1,9 @@ +var parse = require("./parse.js"), + compile = require("./compile.js"); + +module.exports = function nthCheck(formula){ + return compile(parse(formula)); +}; + +module.exports.parse = parse; +module.exports.compile = compile; \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/nth-check/package.json b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/nth-check/package.json new file mode 100644 index 0000000..4b99331 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/nth-check/package.json @@ -0,0 +1,50 @@ +{ + "name": "nth-check", + "version": "1.0.0", + "description": "performant nth-check parser & compiler", + "main": "index.js", + "scripts": { + "test": "node test" + }, + "repository": { + "type": "git", + "url": "https://github.com/fb55/nth-check" + }, + "keywords": [ + "nth-child", + "nth", + "css" + ], + "author": { + "name": "Felix Boehm", + "email": "me@feedic.com" + }, + "license": "BSD", + "bugs": { + "url": "https://github.com/fb55/nth-check/issues" + }, + "homepage": "https://github.com/fb55/nth-check", + "dependencies": { + "boolbase": "~1.0.0" + }, + "_id": "nth-check@1.0.0", + "dist": { + "shasum": "02fc1277aa2bf8e6083be456104d6a646101a49d", + "tarball": "http://registry.npmjs.org/nth-check/-/nth-check-1.0.0.tgz" + }, + "_from": "nth-check@~1.0.0", + "_npmVersion": "1.4.2", + "_npmUser": { + "name": "feedic", + "email": "me@feedic.com" + }, + "maintainers": [ + { + "name": "feedic", + "email": "me@feedic.com" + } + ], + "directories": {}, + "_shasum": "02fc1277aa2bf8e6083be456104d6a646101a49d", + "_resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.0.tgz" +} diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/nth-check/parse.js b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/nth-check/parse.js new file mode 100644 index 0000000..61f1d83 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/nth-check/parse.js @@ -0,0 +1,40 @@ +module.exports = parse; + +//following http://www.w3.org/TR/css3-selectors/#nth-child-pseudo + +//[ ['-'|'+']? INTEGER? {N} [ S* ['-'|'+'] S* INTEGER ]? +var re_nthElement = /^([+\-]?\d*n)?\s*(?:([+\-]?)\s*(\d+))?$/; + +/* + parses a nth-check formula, returns an array of two numbers +*/ +function parse(formula){ + formula = formula.trim().toLowerCase(); + + if(formula === "even"){ + return [2, 0]; + } else if(formula === "odd"){ + return [2, 1]; + } else { + var parsed = formula.match(re_nthElement); + + if(!parsed){ + throw new SyntaxError("n-th rule couldn't be parsed ('" + formula + "')"); + } + + var a; + + if(parsed[1]){ + a = parseInt(parsed[1], 10); + if(!a){ + if(parsed[1].charAt(0) === "-") a = -1; + else a = 1; + } + } else a = 0; + + return [ + a, + parsed[3] ? parseInt((parsed[2] || "") + parsed[3], 10) : 0 + ]; + } +} \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/nth-check/test.js b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/nth-check/test.js new file mode 100644 index 0000000..3d863d1 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/nth-check/test.js @@ -0,0 +1,102 @@ +var nthCheck = require("./"), + assert = require("assert"); + +var invalid = ["-", "asdf", "2n+-0", "2+0", "- 1n", "-1 n"]; + +function parseInvalid(){ + invalid.forEach(function(formula){ + assert.throws(function(){ + nthCheck.parse(formula); + }, + SyntaxError, + formula + ); + }); +} + +var valid = { + "1": [ 0, 1 ], + "2": [ 0, 2 ], + "3": [ 0, 3 ], + "5": [ 0, 5 ], + " 1 ": [ 0, 1 ], + " 5 ": [ 0, 5 ], + "+2n + 1": [ 2, 1 ], + "-1": [ 0, -1 ], + "-1n + 3": [ -1, 3 ], + "-1n+3": [ -1, 3 ], + "-n+2": [ -1, 2 ], + "-n+3": [ -1, 3 ], + "0n+3": [ 1, 3 ], + "1n": [ 1, 0 ], + "1n+0": [ 1, 0 ], + "2n": [ 2, 0 ], + "2n + 1": [ 2, 1 ], + "2n+1": [ 2, 1 ], + "3n": [ 3, 0 ], + "3n+0": [ 3, 0 ], + "3n+1": [ 3, 1 ], + "3n+2": [ 3, 2 ], + "3n+3": [ 3, 3 ], + "3n-1": [ 3, -1 ], + "3n-2": [ 3, -2 ], + "3n-3": [ 3, -3 ], + even: [ 2, 0 ], + n: [ 1, 0 ], + "n+2": [ 1, 2 ], + odd: [ 2, 1 ], + + //surprisingly, neither sizzle, qwery or nwmatcher cover these cases + "-4n+13": [-4, 13], + "-2n + 12": [-2, 12] +}; + +function parseValid(){ + Object.keys(valid).forEach(function(formula){ + assert.deepEqual(nthCheck.parse(formula), valid[formula], formula); + }); +} + +function testValid(){ + Object.keys(valid).forEach(function(formula){ + testFormula(valid[formula], formula); + }); +} + +var valArray = Array.apply(null, Array(2e3)).map(function(_, i){return i;}); + +function testFormula(formula, name){ + var filtered = valArray.filter(nthCheck.compile(formula)), + iterated = stupidNth(formula); + + try { + assert.deepEqual(filtered, iterated, name); + } catch(e){ + e.expected = JSON.stringify(iterated) + " " + name; + e.actual = JSON.stringify(filtered) + " " + name; + throw e; + } +} + +function stupidNth(formula, limit){ + var a = formula[0], + b = formula[1]; + + if(a === 0 && b > 0) return [b - 1]; + + //taken from qwery + return valArray.filter(function(val){ + for(var i = b, l = valArray.length; ((a > 0) ? (i <= l) : (i >= 1)); i += a){ + if(val === valArray[i - 1]) return true; + } + }); +} + +process.stdout.write("- parser"); +process.stdout.write("\n - parse invalid:\t"); +parseInvalid(); +process.stdout.write("X\n - parse valid:\t"); +parseValid(); +process.stdout.write("X\n- check values: \t"); +testValid(); +process.stdout.write("X\n"); \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/package.json b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/package.json new file mode 100644 index 0000000..7576e79 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/package.json @@ -0,0 +1,57 @@ +{ + "name": "CSSselect", + "version": "0.7.0", + "description": "a CSS selector compiler/engine", + "author": { + "name": "Felix Boehm", + "email": "me@feedic.com" + }, + "keywords": [ + "css", + "selector" + ], + "repository": { + "type": "git", + "url": "git://github.com/fb55/CSSselect.git" + }, + "dependencies": { + "CSSwhat": "0.4", + "domutils": "1.4", + "boolbase": "~1.0.0", + "nth-check": "~1.0.0" + }, + "devDependencies": { + "htmlparser2": "*", + "cheerio-soupselect": "*", + "mocha": "*", + "expect.js": "*" + }, + "scripts": { + "test": "mocha" + }, + "license": "BSD-like", + "bugs": { + "url": "https://github.com/fb55/CSSselect/issues" + }, + "homepage": "https://github.com/fb55/CSSselect", + "_id": "CSSselect@0.7.0", + "dist": { + "shasum": "e4054c67b467465f3c9500c0da0aa7878c4babd2", + "tarball": "http://registry.npmjs.org/CSSselect/-/CSSselect-0.7.0.tgz" + }, + "_from": "CSSselect@0.x", + "_npmVersion": "1.4.4", + "_npmUser": { + "name": "feedic", + "email": "me@feedic.com" + }, + "maintainers": [ + { + "name": "feedic", + "email": "me@feedic.com" + } + ], + "directories": {}, + "_shasum": "e4054c67b467465f3c9500c0da0aa7878c4babd2", + "_resolved": "https://registry.npmjs.org/CSSselect/-/CSSselect-0.7.0.tgz" +} diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/api.js b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/api.js new file mode 100644 index 0000000..5d90bee --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/api.js @@ -0,0 +1,111 @@ +var CSSselect = require(".."), + makeDom = require("htmlparser2").parseDOM, + bools = require("boolbase"), + assert = require("assert"); + +var dom = makeDom("

foo

")[0], + xmlDom = makeDom("

foo

", {xmlMode: true})[0]; + +describe("API", function(){ + describe("removes duplicates", function(){ + it("between identical trees", function(){ + var matches = CSSselect.selectAll("div", [dom, dom]); + assert.equal(matches.length, 1, "Removes duplicate matches"); + }); + it("between a superset and subset", function(){ + var matches = CSSselect.selectAll("p", [dom, dom.children[0]]); + assert.equal(matches.length, 1, "Removes duplicate matches"); + }); + it("betweeen a subset and superset", function(){ + var matches = CSSselect.selectAll("p", [dom.children[0], dom]); + assert.equal(matches.length, 1, "Removes duplicate matches"); + }); + }); + + describe("can be queried by function", function(){ + it("in `is`", function(){ + assert(CSSselect.is(dom, function(elem){ + return elem.attribs.id === "foo"; + })); + }); + //probably more cases should be added here + }); + + describe("unsatisfiable and universally valid selectors", function(){ + it("in :not", function(){ + var func = CSSselect._compileUnsafe(":not(*)"); + assert.equal(func, bools.falseFunc); + func = CSSselect._compileUnsafe(":not(:nth-child(-1n-1))"); + assert.equal(func, bools.trueFunc); + func = CSSselect._compileUnsafe(":not(:not(:not(*)))"); + assert.equal(func, bools.falseFunc); + }); + + it("in :has", function(){ + var matches = CSSselect.selectAll(":has(*)", [dom]); + assert.equal(matches.length, 1); + assert.equal(matches[0], dom); + var func = CSSselect._compileUnsafe(":has(:nth-child(-1n-1))"); + assert.equal(func, bools.falseFunc); + }); + + it("should skip unsatisfiable", function(){ + var func = CSSselect._compileUnsafe("* :not(*) foo"); + assert.equal(func, bools.falseFunc); + }); + + it("should promote universally valid", function(){ + var func = CSSselect._compileUnsafe("*, foo"); + assert.equal(func, bools.trueFunc); + }); + }); + + describe("parent selector (<)", function(){ + it("should select the right element", function(){ + var matches = CSSselect.selectAll("p < div", [dom]); + assert.equal(matches.length, 1); + assert.equal(matches[0], dom); + }); + it("should not select nodes without children", function(){ + var matches = CSSselect.selectAll("p < div", [dom]); + assert.deepEqual(matches, CSSselect.selectAll("* < *", [dom])); + }); + }); + + describe("selectOne", function(){ + it("should select elements in traversal order", function(){ + var match = CSSselect.selectOne("p", [dom]); + assert.equal(match, dom.children[0]); + match = CSSselect.selectOne(":contains(foo)", [dom]); + assert.equal(match, dom); + }); + it("should take shortcuts when applicable", function(){ + //TODO this is currently only visible in coverage reports + var match = CSSselect.selectOne(bools.falseFunc, [dom]); + assert.equal(match, null); + match = CSSselect.selectOne("*", []); + assert.equal(match, null); + }); + }); + + describe("options", function(){ + var opts = {xmlMode: true}; + it("should recognize xmlMode in :has and :not", function(){ + assert(CSSselect.is(xmlDom, "DiV:has(P)", opts)); + assert(CSSselect.is(xmlDom, "DiV:not(div)", opts)); + assert(CSSselect.is(xmlDom.children[0], "DiV:has(P) :not(p)", opts)); + }); + + it("should be strict", function(){ + var opts = {strict: true}; + assert.throws(CSSselect.compile.bind(null, ":checkbox", opts), SyntaxError); + assert.throws(CSSselect.compile.bind(null, "[attr=val i]", opts), SyntaxError); + assert.throws(CSSselect.compile.bind(null, "[attr!=val]", opts), SyntaxError); + assert.throws(CSSselect.compile.bind(null, "[attr!=val i]", opts), SyntaxError); + assert.throws(CSSselect.compile.bind(null, "foo < bar", opts), SyntaxError); + assert.throws(CSSselect.compile.bind(null, ":not(:parent)", opts), SyntaxError); + assert.throws(CSSselect.compile.bind(null, ":not(a > b)", opts), SyntaxError); + assert.throws(CSSselect.compile.bind(null, ":not(a, b)", opts), SyntaxError); + }); + }); +}); diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/attributes.js b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/attributes.js new file mode 100644 index 0000000..254be83 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/attributes.js @@ -0,0 +1,84 @@ +var CSSselect = require("../"), + makeDom = require("htmlparser2").parseDOM, + falseFunc = require("boolbase").falseFunc, + assert = require("assert"); + +var dom = makeDom("
"); + +describe("Attributes", function(){ + describe("ignore case", function(){ + it("should for =", function(){ + var matches = CSSselect.selectAll("[data-foo=\"indeed-that's a delicate matter.\" i]", dom); + assert.equal(matches.length, 1); + assert.deepEqual(matches, [dom[0].children[1]]); + matches = CSSselect.selectAll("[data-foo=\"inDeeD-THAT's a DELICATE matteR.\" i]", dom); + assert.deepEqual(matches, [dom[0].children[1]]); + }); + + it("should for ^=", function(){ + var matches = CSSselect.selectAll("[data-foo^=IN i]", dom); + assert.equal(matches.length, 2); + assert.deepEqual(matches, dom[0].children); + matches = CSSselect.selectAll("[data-foo^=in i]", dom); + assert.deepEqual(matches, dom[0].children); + matches = CSSselect.selectAll("[data-foo^=iN i]", dom); + assert.deepEqual(matches, dom[0].children); + }); + + it("should for $=", function(){ + var matches = CSSselect.selectAll("[data-foo$=\"MATTER.\" i]", dom); + assert.equal(matches.length, 2); + assert.deepEqual(matches, dom[0].children); + matches = CSSselect.selectAll("[data-foo$=\"matter.\" i]", dom); + assert.deepEqual(matches, dom[0].children); + matches = CSSselect.selectAll("[data-foo$=\"MaTtEr.\" i]", dom); + assert.deepEqual(matches, dom[0].children); + }); + + it("should for !=", function(){ + var matches = CSSselect.selectAll("[data-foo!=\"indeed-that's a delicate matter.\" i]", dom); + assert.equal(matches.length, 1); + assert.deepEqual(matches, [dom[0].children[0]]); + matches = CSSselect.selectAll("[data-foo!=\"inDeeD-THAT's a DELICATE matteR.\" i]", dom); + assert.deepEqual(matches, [dom[0].children[0]]); + }); + + it("should for *=", function(){ + var matches = CSSselect.selectAll("[data-foo*=IT i]", dom); + assert.equal(matches.length, 1); + assert.deepEqual(matches, [dom[0].children[0]]); + matches = CSSselect.selectAll("[data-foo*=tH i]", dom); + assert.deepEqual(matches, dom[0].children); + }); + + it("should for |=", function(){ + var matches = CSSselect.selectAll("[data-foo|=indeed i]", dom); + assert.equal(matches.length, 1); + assert.deepEqual(matches, [dom[0].children[1]]); + matches = CSSselect.selectAll("[data-foo|=inDeeD i]", dom); + assert.deepEqual(matches, [dom[0].children[1]]); + }); + + it("should for ~=", function(){ + var matches = CSSselect.selectAll("[data-foo~=IT i]", dom); + assert.equal(matches.length, 1); + assert.deepEqual(matches, [dom[0].children[0]]); + matches = CSSselect.selectAll("[data-foo~=dElIcAtE i]", dom); + assert.deepEqual(matches, [dom[0].children[1]]); + }); + }); + + describe("no matches", function(){ + it("should for ~=", function(){ + assert.equal(CSSselect._compileUnsafe("[foo~='baz bar']"), falseFunc); + }); + + it("should for $=", function(){ + assert.equal(CSSselect._compileUnsafe("[foo$='']"), falseFunc); + }); + + it("should for *=", function(){ + assert.equal(CSSselect._compileUnsafe("[foo*='']"), falseFunc); + }); + }); +}); \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/mocha.opts b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/mocha.opts new file mode 100644 index 0000000..af53e24 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/mocha.opts @@ -0,0 +1,2 @@ +--check-leaks +--reporter spec diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/nwmatcher/LICENSE b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/nwmatcher/LICENSE new file mode 100644 index 0000000..d7ac905 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/nwmatcher/LICENSE @@ -0,0 +1,22 @@ +Copyright (c) 2007-2013 Diego Perini (http://www.iport.it) + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/nwmatcher/index.js b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/nwmatcher/index.js new file mode 100644 index 0000000..bdd54df --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/nwmatcher/index.js @@ -0,0 +1,467 @@ +/* + taken from https://github.com/dperini/nwmatcher/blob/master/test/scotch/test.js +*/ + +var DomUtils = require("htmlparser2").DomUtils, + helper = require("../tools/helper.js"), + assert = require("assert"), + path = require("path"), + document = helper.getDocument(path.join(__dirname, "test.html")), + CSSselect = helper.CSSselect; + +//Prototype's `$` function +function getById(element){ + if(arguments.length === 1){ + if(typeof element === "string"){ + return DomUtils.getElementById(element, document); + } + return element; + } + else return Array.prototype.map.call(arguments, function(elem){ + return getById(elem); + }); +} + +//NWMatcher methods +var select = function(query, doc){ + if(arguments.length === 1 || typeof doc === "undefined") doc = document; + else if(typeof doc === "string") doc = select(doc); + return CSSselect(query, doc); +}, match = CSSselect.is; + +var validators = { + assert: assert, + assertEqual: assert.equal, + assertEquivalent: assert.deepEqual, + refute: function refute(a, msg){ + assert(!a, msg); + }, + assertThrowsException: function(){} //not implemented +}; + +var runner = { + __name: "", + addGroup: function(name){ + this.__name = name; + return this; + }, + addTests: function(_, tests){ + if(this.__name){ + describe(this.__name, run); + this.__name = ""; + } else run(); + + function run(){ + Object.keys(tests).forEach(function(name){ + it(name, function(){ + tests[name].call(validators); + }); + }); + } + } +} + +var RUN_BENCHMARKS = false; +//The tests... +(function(runner){ + runner.addGroup("Basic Selectors").addTests(null, { + "*": function(){ + //Universal selector + var results = [], nodes = document.getElementsByTagName("*"), index = 0, length = nodes.length, node; + //Collect all element nodes, excluding comments (IE) + for(; index < length; index++){ + if((node = nodes[index]).tagName !== "!"){ + results[results.length] = node; + } + } + this.assertEquivalent(select("*"), results, "Comment nodes should be ignored."); + }, + "E": function(){ + //Type selector + var results = [], index = 0, nodes = document.getElementsByTagName("li"); + while((results[index] = nodes[index++])){} + results.length--; + // this.assertEquivalent(select("li"), results); //TODO + this.assertEqual(select("strong", getById("fixtures"))[0], getById("strong")); + this.assertEquivalent(select("nonexistent"), []); + }, + "#id": function(){ + //ID selector + this.assertEqual(select("#fixtures")[0], getById("fixtures")); + this.assertEquivalent(select("nonexistent"), []); + this.assertEqual(select("#troubleForm")[0], getById("troubleForm")); + }, + ".class": function(){ + //Class selector + this.assertEquivalent(select(".first"), getById('p', 'link_1', 'item_1')); + this.assertEquivalent(select(".second"), []); + }, + "E#id": function(){ + this.assertEqual(select("strong#strong")[0], getById("strong")); + this.assertEquivalent(select("p#strong"), []); + }, + "E.class": function(){ + var secondLink = getById("link_2"); + this.assertEquivalent(select('a.internal'), getById('link_1', 'link_2')); + this.assertEqual(select('a.internal.highlight')[0], secondLink); + this.assertEqual(select('a.highlight.internal')[0], secondLink); + this.assertEquivalent(select('a.highlight.internal.nonexistent'), []); + }, + "#id.class": function(){ + var secondLink = getById('link_2'); + this.assertEqual(select('#link_2.internal')[0], secondLink); + this.assertEqual(select('.internal#link_2')[0], secondLink); + this.assertEqual(select('#link_2.internal.highlight')[0], secondLink); + this.assertEquivalent(select('#link_2.internal.nonexistent'), []); + }, + "E#id.class": function(){ + var secondLink = getById('link_2'); + this.assertEqual(select('a#link_2.internal')[0], secondLink); + this.assertEqual(select('a.internal#link_2')[0], secondLink); + this.assertEqual(select('li#item_1.first')[0], getById("item_1")); + this.assertEquivalent(select('li#item_1.nonexistent'), []); + this.assertEquivalent(select('li#item_1.first.nonexistent'), []); + } + }); + + runner.addGroup("Attribute Selectors").addTests(null, { + "[foo]": function(){ + this.assertEquivalent(select('[href]', document.body), select('a[href]', document.body)); + this.assertEquivalent(select('[class~=internal]'), select('a[class~="internal"]')); + this.assertEquivalent(select('[id]'), select('*[id]')); + this.assertEquivalent(select('[type=radio]'), getById('checked_radio', 'unchecked_radio')); + this.assertEquivalent(select('[type=checkbox]'), select('*[type=checkbox]')); + this.assertEquivalent(select('[title]'), getById('with_title', 'commaParent')); + this.assertEquivalent(select('#troubleForm [type=radio]'), select('#troubleForm *[type=radio]')); + this.assertEquivalent(select('#troubleForm [type]'), select('#troubleForm *[type]')); + }, + "E[foo]": function(){ + this.assertEquivalent(select('h1[class]'), select('#fixtures h1'), "h1[class]"); + this.assertEquivalent(select('h1[CLASS]'), select('#fixtures h1'), "h1[CLASS]"); + this.assertEqual(select('li#item_3[class]')[0], getById('item_3'), "li#item_3[class]"); + this.assertEquivalent(select('#troubleForm2 input[name="brackets[5][]"]'), getById('chk_1', 'chk_2')); + //Brackets in attribute value + this.assertEqual(select('#troubleForm2 input[name="brackets[5][]"]:checked')[0], getById('chk_1')); + //Space in attribute value + this.assertEqual(select('cite[title="hello world!"]')[0], getById('with_title')); + //Namespaced attributes + // this.assertEquivalent(select('[xml:lang]'), [document.documentElement, getById("item_3")]); + // this.assertEquivalent(select('*[xml:lang]'), [document.documentElement, getById("item_3")]); + }, + 'E[foo="bar"]': function(){ + this.assertEquivalent(select('a[href="#"]'), getById('link_1', 'link_2', 'link_3')); + this.assertThrowsException(/Error/, function(){ + select('a[href=#]'); + }); + this.assertEqual(select('#troubleForm2 input[name="brackets[5][]"][value="2"]')[0], getById('chk_2')); + }, + 'E[foo~="bar"]': function(){ + this.assertEquivalent(select('a[class~="internal"]'), getById('link_1', 'link_2'), "a[class~=\"internal\"]"); + this.assertEquivalent(select('a[class~=internal]'), getById('link_1', 'link_2'), "a[class~=internal]"); + this.assertEqual(select('a[class~=external][href="#"]')[0], getById('link_3'), 'a[class~=external][href="#"]'); + },/* + 'E[foo|="en"]': function(){ + this.assertEqual(select('*[xml:lang|="es"]')[0], getById('item_3')); + this.assertEqual(select('*[xml:lang|="ES"]')[0], getById('item_3')); + },*/ + 'E[foo^="bar"]': function(){ + this.assertEquivalent(select('div[class^=bro]'), getById('father', 'uncle'), 'matching beginning of string'); + this.assertEquivalent(select('#level1 *[id^="level2_"]'), getById('level2_1', 'level2_2', 'level2_3')); + this.assertEquivalent(select('#level1 *[id^=level2_]'), getById('level2_1', 'level2_2', 'level2_3')); + if(RUN_BENCHMARKS){ + this.wait(function(){ + this.benchmark(function(){ + select('#level1 *[id^=level2_]'); + }, 1000); + }, 500); + } + }, + 'E[foo$="bar"]': function(){ + this.assertEquivalent(select('div[class$=men]'), getById('father', 'uncle'), 'matching end of string'); + this.assertEquivalent(select('#level1 *[id$="_1"]'), getById('level2_1', 'level3_1')); + this.assertEquivalent(select('#level1 *[id$=_1]'), getById('level2_1', 'level3_1')); + if(RUN_BENCHMARKS){ + this.wait(function(){ + this.benchmark(function(){ + select('#level1 *[id$=_1]'); + }, 1000); + }, 500); + } + }, + 'E[foo*="bar"]': function(){ + this.assertEquivalent(select('div[class*="ers m"]'), getById('father', 'uncle'), 'matching substring'); + this.assertEquivalent(select('#level1 *[id*="2"]'), getById('level2_1', 'level3_2', 'level2_2', 'level2_3')); + this.assertThrowsException(/Error/, function(){ + select('#level1 *[id*=2]'); + }); + if(RUN_BENCHMARKS){ + this.wait(function(){ + this.benchmark(function(){ + select('#level1 *[id*=2]'); + }, 1000); + }, 500); + } + }, + + // *** these should throw SYNTAX_ERR *** + + 'E[id=-1]': function(){ + this.assertThrowsException(/Error/, function(){ + select('#level1 *[id=-1]'); + }); + if(RUN_BENCHMARKS){ + this.wait(function(){ + this.benchmark(function(){ + select('#level1 *[id=9]'); + }, 1000); + }, 500); + } + }, + 'E[class=-45deg]': function(){ + this.assertThrowsException(/Error/, function(){ + select('#level1 *[class=-45deg]'); + }); + if(RUN_BENCHMARKS){ + this.wait(function(){ + this.benchmark(function(){ + select('#level1 *[class=-45deg]'); + }, 1000); + }, 500); + } + }, + 'E[class=8mm]': function(){ + this.assertThrowsException(/Error/, function(){ + select('#level1 *[class=8mm]'); + }); + if(RUN_BENCHMARKS){ + this.wait(function(){ + this.benchmark(function(){ + select('#level1 *[class=8mm]'); + }, 1000); + }, 500); + } + } + + }); + + runner.addGroup("Structural pseudo-classes").addTests(null, { + "E:first-child": function(){ + this.assertEqual(select('#level1>*:first-child')[0], getById('level2_1')); + this.assertEquivalent(select('#level1 *:first-child'), getById('level2_1', 'level3_1', 'level_only_child')); + this.assertEquivalent(select('#level1>div:first-child'), []); + this.assertEquivalent(select('#level1 span:first-child'), getById('level2_1', 'level3_1')); + this.assertEquivalent(select('#level1:first-child'), []); + if(RUN_BENCHMARKS){ + this.wait(function(){ + this.benchmark(function(){ + select('#level1 *:first-child'); + }, 1000); + }, 500); + } + }, + "E:last-child": function(){ + this.assertEqual(select('#level1>*:last-child')[0], getById('level2_3')); + this.assertEquivalent(select('#level1 *:last-child'), getById('level3_2', 'level_only_child', 'level2_3')); + this.assertEqual(select('#level1>div:last-child')[0], getById('level2_3')); + this.assertEqual(select('#level1 div:last-child')[0], getById('level2_3')); + this.assertEquivalent(select('#level1>span:last-child'), []); + if(RUN_BENCHMARKS){ + this.wait(function(){ + this.benchmark(function(){ + select('#level1 *:last-child'); + }, 1000); + }, 500); + } + }, + "E:nth-child(n)": function(){ + this.assertEqual(select('#p *:nth-child(3)')[0], getById('link_2')); + this.assertEqual(select('#p a:nth-child(3)')[0], getById('link_2'), 'nth-child'); + this.assertEquivalent(select('#list > li:nth-child(n+2)'), getById('item_2', 'item_3')); + this.assertEquivalent(select('#list > li:nth-child(-n+2)'), getById('item_1', 'item_2')); + }, + "E:nth-of-type(n)": function(){ + this.assertEqual(select('#p a:nth-of-type(2)')[0], getById('link_2'), 'nth-of-type'); + this.assertEqual(select('#p a:nth-of-type(1)')[0], getById('link_1'), 'nth-of-type'); + }, + "E:nth-last-of-type(n)": function(){ + this.assertEqual(select('#p a:nth-last-of-type(1)')[0], getById('link_2'), 'nth-last-of-type'); + }, + "E:first-of-type": function(){ + this.assertEqual(select('#p a:first-of-type')[0], getById('link_1'), 'first-of-type'); + }, + "E:last-of-type": function(){ + this.assertEqual(select('#p a:last-of-type')[0], getById('link_2'), 'last-of-type'); + }, + "E:only-child": function(){ + this.assertEqual(select('#level1 *:only-child')[0], getById('level_only_child')); + //Shouldn't return anything + this.assertEquivalent(select('#level1>*:only-child'), []); + this.assertEquivalent(select('#level1:only-child'), []); + this.assertEquivalent(select('#level2_2 :only-child:not(:last-child)'), []); + this.assertEquivalent(select('#level2_2 :only-child:not(:first-child)'), []); + if(RUN_BENCHMARKS){ + this.wait(function(){ + this.benchmark(function(){ + select('#level1 *:only-child'); + }, 1000); + }, 500); + } + }, + "E:empty": function(){ + getById('level3_1').children = []; + if(document.createEvent){ + this.assertEquivalent(select('#level1 *:empty'), getById('level3_1', 'level3_2', 'level2_3'), '#level1 *:empty'); + this.assertEquivalent(select('#level_only_child:empty'), [], 'newlines count as content!'); + }else{ + this.assertEqual(select('#level3_1:empty')[0], getById('level3_1'), 'IE forced empty content!'); + //this.skip("IE forced empty content!"); + } + //Shouldn't return anything + this.assertEquivalent(select('span:empty > *'), []); + } + }); + + runner.addTests(null, { + "E:not(s)": function(){ + //Negation pseudo-class + this.assertEquivalent(select('a:not([href="#"])'), []); + this.assertEquivalent(select('div.brothers:not(.brothers)'), []); + this.assertEquivalent(select('a[class~=external]:not([href="#"])'), [], 'a[class~=external][href!="#"]'); + this.assertEqual(select('#p a:not(:first-of-type)')[0], getById('link_2'), 'first-of-type'); + this.assertEqual(select('#p a:not(:last-of-type)')[0], getById('link_1'), 'last-of-type'); + this.assertEqual(select('#p a:not(:nth-of-type(1))')[0], getById('link_2'), 'nth-of-type'); + this.assertEqual(select('#p a:not(:nth-last-of-type(1))')[0], getById('link_1'), 'nth-last-of-type'); + this.assertEqual(select('#p a:not([rel~=nofollow])')[0], getById('link_2'), 'attribute 1'); + this.assertEqual(select('#p a:not([rel^=external])')[0], getById('link_2'), 'attribute 2'); + this.assertEqual(select('#p a:not([rel$=nofollow])')[0], getById('link_2'), 'attribute 3'); + this.assertEqual(select('#p a:not([rel$="nofollow"]) > em')[0], getById('em'), 'attribute 4'); + this.assertEqual(select('#list li:not(#item_1):not(#item_3)')[0], getById('item_2'), 'adjacent :not clauses'); + this.assertEqual(select('#grandfather > div:not(#uncle) #son')[0], getById('son')); + this.assertEqual(select('#p a:not([rel$="nofollow"]) em')[0], getById('em'), 'attribute 4 + all descendants'); + this.assertEqual(select('#p a:not([rel$="nofollow"])>em')[0], getById('em'), 'attribute 4 (without whitespace)'); + } + }); + + runner.addGroup("UI element states pseudo-classes").addTests(null, { + "E:disabled": function(){ + this.assertEqual(select('#troubleForm > p > *:disabled')[0], getById('disabled_text_field')); + }, + "E:checked": function(){ + this.assertEquivalent(select('#troubleForm *:checked'), getById('checked_box', 'checked_radio')); + } + }); + + runner.addGroup("Combinators").addTests(null, { + "E F": function(){ + //Descendant + this.assertEquivalent(select('#fixtures a *'), getById('em2', 'em', 'span')); + this.assertEqual(select('div#fixtures p')[0], getById("p")); + }, + "E + F": function(){ + //Adjacent sibling + this.assertEqual(select('div.brothers + div.brothers')[0], getById("uncle")); + this.assertEqual(select('div.brothers + div')[0], getById('uncle')); + this.assertEqual(select('#level2_1+span')[0], getById('level2_2')); + this.assertEqual(select('#level2_1 + span')[0], getById('level2_2')); + this.assertEqual(select('#level2_1 + *')[0], getById('level2_2')); + this.assertEquivalent(select('#level2_2 + span'), []); + this.assertEqual(select('#level3_1 + span')[0], getById('level3_2')); + this.assertEqual(select('#level3_1 + *')[0], getById('level3_2')); + this.assertEquivalent(select('#level3_2 + *'), []); + this.assertEquivalent(select('#level3_1 + em'), []); + if(RUN_BENCHMARKS){ + this.wait(function(){ + this.benchmark(function(){ + select('#level3_1 + span'); + }, 1000); + }, 500); + } + }, + "E > F": function(){ + //Child + this.assertEquivalent(select('p.first > a'), getById('link_1', 'link_2')); + this.assertEquivalent(select('div#grandfather > div'), getById('father', 'uncle')); + this.assertEquivalent(select('#level1>span'), getById('level2_1', 'level2_2')); + this.assertEquivalent(select('#level1 > span'), getById('level2_1', 'level2_2')); + this.assertEquivalent(select('#level2_1 > *'), getById('level3_1', 'level3_2')); + this.assertEquivalent(select('div > #nonexistent'), []); + if(RUN_BENCHMARKS){ + this.wait(function(){ + this.benchmark(function(){ + select('#level1 > span'); + }, 1000); + }, 500); + } + }, + "E ~ F": function(){ + //General sibling + this.assertEqual(select('h1 ~ ul')[0], getById('list')); + this.assertEquivalent(select('#level2_2 ~ span'), []); + this.assertEquivalent(select('#level3_2 ~ *'), []); + this.assertEquivalent(select('#level3_1 ~ em'), []); + this.assertEquivalent(select('div ~ #level3_2'), []); + this.assertEquivalent(select('div ~ #level2_3'), []); + this.assertEqual(select('#level2_1 ~ span')[0], getById('level2_2')); + this.assertEquivalent(select('#level2_1 ~ *'), getById('level2_2', 'level2_3')); + this.assertEqual(select('#level3_1 ~ #level3_2')[0], getById('level3_2')); + this.assertEqual(select('span ~ #level3_2')[0], getById('level3_2')); + if(RUN_BENCHMARKS){ + this.wait(function(){ + this.benchmark(function(){ + select('#level2_1 ~ span'); + }, 1000); + }, 500); + } + } + }); + + runner.addTests(null, { + "NW.Dom.match": function(){ + var element = getById('dupL1'); + //Assertions + this.assert(match(element, 'span')); + this.assert(match(element, "span#dupL1")); + this.assert(match(element, "div > span"), "child combinator"); + this.assert(match(element, "#dupContainer span"), "descendant combinator"); + this.assert(match(element, "#dupL1"), "ID only"); + this.assert(match(element, "span.span_foo"), "class name 1"); + this.assert(match(element, "span.span_bar"), "class name 2"); + this.assert(match(element, "span:first-child"), "first-child pseudoclass"); + //Refutations + this.refute(match(element, "span.span_wtf"), "bogus class name"); + this.refute(match(element, "#dupL2"), "different ID"); + this.refute(match(element, "div"), "different tag name"); + this.refute(match(element, "span span"), "different ancestry"); + this.refute(match(element, "span > span"), "different parent"); + this.refute(match(element, "span:nth-child(5)"), "different pseudoclass"); + //Misc. + this.refute(match(getById('link_2'), 'a[rel^=external]')); + this.assert(match(getById('link_1'), 'a[rel^=external]')); + this.assert(match(getById('link_1'), 'a[rel^="external"]')); + this.assert(match(getById('link_1'), "a[rel^='external']")); + }, + "Equivalent Selectors": function(){ + this.assertEquivalent(select('div.brothers'), select('div[class~=brothers]')); + this.assertEquivalent(select('div.brothers'), select('div[class~=brothers].brothers')); + this.assertEquivalent(select('div:not(.brothers)'), select('div:not([class~=brothers])')); + this.assertEquivalent(select('li ~ li'), select('li:not(:first-child)')); + this.assertEquivalent(select('ul > li'), select('ul > li:nth-child(n)')); + this.assertEquivalent(select('ul > li:nth-child(even)'), select('ul > li:nth-child(2n)')); + this.assertEquivalent(select('ul > li:nth-child(odd)'), select('ul > li:nth-child(2n+1)')); + this.assertEquivalent(select('ul > li:first-child'), select('ul > li:nth-child(1)')); + this.assertEquivalent(select('ul > li:last-child'), select('ul > li:nth-last-child(1)')); + /* Opera 10 does not accept values > 128 as a parameter to :nth-child + See */ + this.assertEquivalent(select('ul > li:nth-child(n-128)'), select('ul > li')); + this.assertEquivalent(select('ul>li'), select('ul > li')); + this.assertEquivalent(select('#p a:not([rel$="nofollow"])>em'), select('#p a:not([rel$="nofollow"]) > em')); + }, + "Multiple Selectors": function(){ + //The next two assertions should return document-ordered lists of matching elements --Diego Perini + // this.assertEquivalent(select('#list, .first,*[xml:lang="es-us"] , #troubleForm'), getById('p', 'link_1', 'list', 'item_1', 'item_3', 'troubleForm')); + // this.assertEquivalent(select('#list, .first, *[xml:lang="es-us"], #troubleForm'), getById('p', 'link_1', 'list', 'item_1', 'item_3', 'troubleForm')); + this.assertEquivalent(select('form[title*="commas,"], input[value="#commaOne,#commaTwo"]'), getById('commaParent', 'commaChild')); + this.assertEquivalent(select('form[title*="commas,"], input[value="#commaOne,#commaTwo"]'), getById('commaParent', 'commaChild')); + } + }); +}(runner)); \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/nwmatcher/test.html b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/nwmatcher/test.html new file mode 100644 index 0000000..f74daba --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/nwmatcher/test.html @@ -0,0 +1,92 @@ + + + + + NWMatcher Tests + + + + + + +
+
+ + +
+ + diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/qwery/index.html b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/qwery/index.html new file mode 100644 index 0000000..d7bfb28 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/qwery/index.html @@ -0,0 +1,132 @@ + + + + + Qwery tests + + + + + + + + +

Qwery Tests

+
+
    +
  1. hello
  2. +
  3. world
  4. +
      +
    1. world
    2. +
    3. hello
    4. +
    +
  5. humans
  6. +
+
+

+

+
+
+
+
+
+
+ +
+
+
+
+
+
+
+ + +
+
+ + + +
+ +
+
+
+
+
+
+
+
+
+ aname +
+
+
+
+
+ +
+
+
+
+
+

+ + + +
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

+

+

+

+
+
+
+ + + +
+
+
    + + + + diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/qwery/index.js b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/qwery/index.js new file mode 100644 index 0000000..345d503 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/qwery/index.js @@ -0,0 +1,549 @@ +"use strict"; + +var expect = require("expect.js"), + DomUtils = require("htmlparser2").DomUtils, + helper = require("../tools/helper.js"), + path = require("path"), + document = helper.getDocument(path.join(__dirname, "index.html")), + CSSselect = helper.CSSselect; + +var location = {hash: ""}; +CSSselect.pseudos.target = function(elem){ + return elem.attribs && elem.attribs.id === location.hash.substr(1); +}; + +//--- + +/* + The following is taken from https://github.com/ded/qwery/blob/master/tests/tests.js +*/ + +CSSselect.pseudos.humanoid = function(e) { return CSSselect.is(e, 'li:contains(human)') || CSSselect.is(e, 'ol:contains(human)'); }; + +var frag = helper.getDOM( + '
    ' + + '

    ' + + '
    ' + + '

    ' + + '

    ' + + '

    ' +); + +var doc = helper.getDOM( + '
    ' + + '
    ' + + '

    ' + + '' + + '' + + '
    ' + + '

    ' + + '
    ' + + '
    ' +); + +var el = DomUtils.getElementById('attr-child-boosh', document); + +var pseudos = DomUtils.getElementById('pseudos', document).children.filter(DomUtils.isTag); + +module.exports = { + +'Contexts': { + + 'should be able to pass optional context': function () { + expect(CSSselect('.a', document)).to.have.length(3); //no context found 3 elements (.a) + expect(CSSselect('.a', CSSselect('#boosh', document))).to.have.length(2); //context found 2 elements (#boosh .a) + }, + +/* + 'should be able to pass string as context': function() { + expect(CSSselect('.a', '#boosh')).to.have.length(2); //context found 2 elements(.a, #boosh) + expect(CSSselect('.a', '.a')).to.be.empty(); //context found 0 elements(.a, .a) + expect(CSSselect('.a', '.b')).to.have.length(1); //context found 1 elements(.a, .b) + expect(CSSselect('.a', '#boosh .b')).to.have.length(1); //context found 1 elements(.a, #boosh .b) + expect(CSSselect('.b', '#boosh .b')).to.be.empty(); //context found 0 elements(.b, #boosh .b) + }, +*/ +/* + 'should be able to pass qwery result as context': function() { + expect(CSSselect('.a', CSSselect('#boosh', document))).to.have.length(2); //context found 2 elements(.a, #boosh) + expect(CSSselect('.a', CSSselect('.a', document))).to.be.empty(); //context found 0 elements(.a, .a) + expect(CSSselect('.a', CSSselect('.b', document))).to.have.length(1); //context found 1 elements(.a, .b) + expect(CSSselect('.a', CSSselect('#boosh .b', document))).to.have.length(1); //context found 1 elements(.a, #boosh .b) + expect(CSSselect('.b', CSSselect('#boosh .b', document))).to.be.empty(); //context found 0 elements(.b, #boosh .b) + }, +*/ + 'should not return duplicates from combinators': function () { + expect(CSSselect('#boosh,#boosh', document)).to.have.length(1); //two booshes dont make a thing go right + expect(CSSselect('#boosh,.apples,#boosh', document)).to.have.length(1); //two booshes and an apple dont make a thing go right + }, + + 'byId sub-queries within context': function() { + expect(CSSselect('#booshTest', CSSselect('#boosh', document))).to.have.length(1); //found "#id #id" + expect(CSSselect('.a.b #booshTest', CSSselect('#boosh', document))).to.have.length(1); //found ".class.class #id" + expect(CSSselect('.a>#booshTest', CSSselect('#boosh', document))).to.have.length(1); //found ".class>#id" + expect(CSSselect('>.a>#booshTest', CSSselect('#boosh', document))).to.have.length(1); //found ">.class>#id" + expect(CSSselect('#boosh', CSSselect('#booshTest', document)).length).to.not.be.ok(); //shouldn't find #boosh (ancestor) within #booshTest (descendent) + expect(CSSselect('#boosh', CSSselect('#lonelyBoosh', document)).length).to.not.be.ok(); //shouldn't find #boosh within #lonelyBoosh (unrelated) + } +}, + +'CSS 1': { + 'get element by id': function () { + var result = CSSselect('#boosh', document); + expect(result[0]).to.be.ok(); //found element with id=boosh + expect(CSSselect('h1', document)[0]).to.be.ok(); //found 1 h1 + }, + + 'byId sub-queries': function() { + expect(CSSselect('#boosh #booshTest', document)).to.have.length(1); //found "#id #id" + expect(CSSselect('.a.b #booshTest', document)).to.have.length(1); //found ".class.class #id" + expect(CSSselect('#boosh>.a>#booshTest', document)).to.have.length(1); //found "#id>.class>#id" + expect(CSSselect('.a>#booshTest', document)).to.have.length(1); //found ".class>#id" + }, + + 'get elements by class': function () { + expect(CSSselect('#boosh .a', document)).to.have.length(2); //found two elements + expect(CSSselect('#boosh div.a', document)[0]).to.be.ok(); //found one element + expect(CSSselect('#boosh div', document)).to.have.length(2); //found two {div} elements + expect(CSSselect('#boosh span', document)[0]).to.be.ok(); //found one {span} element + expect(CSSselect('#boosh div div', document)[0]).to.be.ok(); //found a single div + expect(CSSselect('a.odd', document)).to.have.length(1); //found single a + }, + + 'combos': function () { + expect(CSSselect('#boosh div,#boosh span', document)).to.have.length(3); //found 2 divs and 1 span + }, + + 'class with dashes': function() { + expect(CSSselect('.class-with-dashes', document)).to.have.length(1); //found something + }, + + 'should ignore comment nodes': function() { + expect(CSSselect('#boosh *', document)).to.have.length(4); //found only 4 elements under #boosh + }, + + 'deep messy relationships': function() { + // these are mostly characterised by a combination of tight relationships and loose relationships + // on the right side of the query it's easy to find matches but they tighten up quickly as you + // go to the left + // they are useful for making sure the dom crawler doesn't stop short or over-extend as it works + // up the tree the crawl needs to be comprehensive + expect(CSSselect('div#fixtures > div a', document)).to.have.length(5); //found four results for "div#fixtures > div a" + expect(CSSselect('.direct-descend > .direct-descend .lvl2', document)).to.have.length(1); //found one result for ".direct-descend > .direct-descend .lvl2" + expect(CSSselect('.direct-descend > .direct-descend div', document)).to.have.length(1); //found one result for ".direct-descend > .direct-descend div" + expect(CSSselect('.direct-descend > .direct-descend div', document)).to.have.length(1); //found one result for ".direct-descend > .direct-descend div" + expect(CSSselect('div#fixtures div ~ a div', document)).to.be.empty(); //found no results for odd query + expect(CSSselect('.direct-descend > .direct-descend > .direct-descend ~ .lvl2', document)).to.be.empty(); //found no results for another odd query + } +}, + +'CSS 2': { + + 'get elements by attribute': function () { + var wanted = CSSselect('#boosh div[test]', document)[0]; + var expected = DomUtils.getElementById('booshTest', document); + expect(wanted).to.be(expected); //found attribute + expect(CSSselect('#boosh div[test=fg]', document)[0]).to.be(expected); //found attribute with value + expect(CSSselect('em[rel~="copyright"]', document)).to.have.length(1); //found em[rel~="copyright"] + expect(CSSselect('em[nopass~="copyright"]', document)).to.be.empty(); //found em[nopass~="copyright"] + }, + + 'should not throw error by attribute selector': function () { + expect(CSSselect('[foo^="bar"]', document)).to.have.length(1); //found 1 element + }, + + 'crazy town': function () { + var el = DomUtils.getElementById('attr-test3', document); + expect(CSSselect('div#attr-test3.found.you[title="whatup duders"]', document)[0]).to.be(el); //found the right element + } + +}, + +'attribute selectors': { + + /* CSS 2 SPEC */ + + '[attr]': function () { + var expected = DomUtils.getElementById('attr-test-1', document); + expect(CSSselect('#attributes div[unique-test]', document)[0]).to.be(expected); //found attribute with [attr] + }, + + '[attr=val]': function () { + var expected = DomUtils.getElementById('attr-test-2', document); + expect(CSSselect('#attributes div[test="two-foo"]', document)[0]).to.be(expected); //found attribute with = + expect(CSSselect("#attributes div[test='two-foo']", document)[0]).to.be(expected); //found attribute with = + expect(CSSselect('#attributes div[test=two-foo]', document)[0]).to.be(expected); //found attribute with = + }, + + '[attr~=val]': function () { + var expected = DomUtils.getElementById('attr-test-3', document); + expect(CSSselect('#attributes div[test~=three]', document)[0]).to.be(expected); //found attribute with ~= + }, + + '[attr|=val]': function () { + var expected = DomUtils.getElementById('attr-test-2', document); + expect(CSSselect('#attributes div[test|="two-foo"]', document)[0]).to.be(expected); //found attribute with |= + expect(CSSselect('#attributes div[test|=two]', document)[0]).to.be(expected); //found attribute with |= + }, + + '[href=#x] special case': function () { + var expected = DomUtils.getElementById('attr-test-4', document); + expect(CSSselect('#attributes a[href="#aname"]', document)[0]).to.be(expected); //found attribute with href=#x + }, + + /* CSS 3 SPEC */ + + '[attr^=val]': function () { + var expected = DomUtils.getElementById('attr-test-2', document); + expect(CSSselect('#attributes div[test^=two]', document)[0]).to.be(expected); //found attribute with ^= + }, + + '[attr$=val]': function () { + var expected = DomUtils.getElementById('attr-test-2', document); + expect(CSSselect('#attributes div[test$=foo]', document)[0]).to.be(expected); //found attribute with $= + }, + + '[attr*=val]': function () { + var expected = DomUtils.getElementById('attr-test-3', document); + expect(CSSselect('#attributes div[test*=hree]', document)[0]).to.be(expected); //found attribute with *= + }, + + 'direct descendants': function () { + expect(CSSselect('#direct-descend > .direct-descend', document)).to.have.length(2); //found two direct descendents + expect(CSSselect('#direct-descend > .direct-descend > .lvl2', document)).to.have.length(3); //found three second-level direct descendents + }, + + 'sibling elements': function () { + expect(CSSselect('#sibling-selector ~ .sibling-selector', document)).to.have.length(2); //found two siblings + expect(CSSselect('#sibling-selector ~ div.sibling-selector', document)).to.have.length(2); //found two siblings + expect(CSSselect('#sibling-selector + div.sibling-selector', document)).to.have.length(1); //found one sibling + expect(CSSselect('#sibling-selector + .sibling-selector', document)).to.have.length(1); //found one sibling + + expect(CSSselect('.parent .oldest ~ .sibling', document)).to.have.length(4); //found four younger siblings + expect(CSSselect('.parent .middle ~ .sibling', document)).to.have.length(2); //found two younger siblings + expect(CSSselect('.parent .middle ~ h4', document)).to.have.length(1); //found next sibling by tag + expect(CSSselect('.parent .middle ~ h4.younger', document)).to.have.length(1); //found next sibling by tag and class + expect(CSSselect('.parent .middle ~ h3', document)).to.be.empty(); //an element can't be its own sibling + expect(CSSselect('.parent .middle ~ h2', document)).to.be.empty(); //didn't find an older sibling + expect(CSSselect('.parent .youngest ~ .sibling', document)).to.be.empty(); //found no younger siblings + + expect(CSSselect('.parent .oldest + .sibling', document)).to.have.length(1); //found next sibling + expect(CSSselect('.parent .middle + .sibling', document)).to.have.length(1); //found next sibling + expect(CSSselect('.parent .middle + h4', document)).to.have.length(1); //found next sibling by tag + expect(CSSselect('.parent .middle + h3', document)).to.be.empty(); //an element can't be its own sibling + expect(CSSselect('.parent .middle + h2', document)).to.be.empty(); //didn't find an older sibling + expect(CSSselect('.parent .youngest + .sibling', document)).to.be.empty(); //found no younger siblings + } + +}, + +/* +'Uniq': { + 'duplicates arent found in arrays': function () { + expect(CSSselect.uniq(['a', 'b', 'c', 'd', 'e', 'a', 'b', 'c', 'd', 'e'])).to.have.length(5); //result should be a, b, c, d, e + expect(CSSselect.uniq(['a', 'b', 'c', 'c', 'c'])).to.have.length(3); //result should be a, b, c + } +}, +*/ + + +'element-context queries': { + +/* + 'relationship-first queries': function() { + expect(CSSselect('> .direct-descend', CSSselect('#direct-descend', document))).to.have.length(2); //found two direct descendents using > first + expect(CSSselect('~ .sibling-selector', CSSselect('#sibling-selector', document))).to.have.length(2); //found two siblings with ~ first + expect(CSSselect('+ .sibling-selector', CSSselect('#sibling-selector', document))).to.have.length(1); //found one sibling with + first + expect(CSSselect('> .tokens a', CSSselect('.idless', document)[0])).to.have.length(1); //found one sibling from a root with no id + }, +*/ + + // should be able to query on an element that hasn't been inserted into the dom + 'detached fragments': function() { + expect(CSSselect('.a span', frag)).to.have.length(1); //should find child elements of fragment + //expect(CSSselect('> div p em', frag)).to.have.length(2); //should find child elements of fragment, relationship first + }, + + 'byId sub-queries within detached fragment': function () { + expect(CSSselect('#emem', frag)).to.have.length(1); //found "#id" in fragment + expect(CSSselect('.d.i #emem', frag)).to.have.length(1); //found ".class.class #id" in fragment + expect(CSSselect('.d #oooo #emem', frag)).to.have.length(1); //found ".class #id #id" in fragment + //expect(CSSselect('> div #oooo', frag)).to.have.length(1); //found "> .class #id" in fragment + expect(CSSselect('#oooo', CSSselect('#emem', frag)).length).to.not.be.ok(); //shouldn't find #oooo (ancestor) within #emem (descendent) + expect(CSSselect('#sep', CSSselect('#emem', frag)).length).to.not.be.ok(); //shouldn't find #sep within #emem (unrelated) + }, + +/* + 'exclude self in match': function() { + expect(CSSselect('.order-matters', CSSselect('#order-matters', document))).to.have.length(4); //should not include self in element-context queries + }, +*/ + + // because form's have .length + 'forms can be used as contexts': function() { + expect(CSSselect('*', CSSselect('form', document)[0])).to.have.length(3); //found 3 elements under <form> + } +}, + +'tokenizer': { + + 'should not get weird tokens': function () { + expect(CSSselect('div .tokens[title="one"]', document)[0]).to.be(DomUtils.getElementById('token-one', document)); //found div .tokens[title="one"] + expect(CSSselect('div .tokens[title="one two"]', document)[0]).to.be(DomUtils.getElementById('token-two', document)); //found div .tokens[title="one two"] + expect(CSSselect('div .tokens[title="one two three #%"]', document)[0]).to.be(DomUtils.getElementById('token-three', document)); //found div .tokens[title="one two three #%"] + expect(CSSselect("div .tokens[title='one two three #%'] a", document)[0]).to.be(DomUtils.getElementById('token-four', document)); //found div .tokens[title=\'one two three #%\'] a + expect(CSSselect('div .tokens[title="one two three #%"] a[href$=foo] div', document)[0]).to.be(DomUtils.getElementById('token-five', document)); //found div .tokens[title="one two three #%"] a[href=foo] div + } + +}, + +'interesting syntaxes': { + 'should parse bad selectors': function () { + expect(CSSselect('#spaced-tokens p em a', document).length).to.be.ok(); //found element with funny tokens + } +}, + +'order matters': { + + //
    + //

    + // + // + // + //
    + + 'the order of elements return matters': function () { + function tag(el) { + return el.name.toLowerCase(); + } + var els = CSSselect('#order-matters .order-matters', document); + expect(tag(els[0])).to.be('p'); //first element matched is a {p} tag + expect(tag(els[1])).to.be('a'); //first element matched is a {a} tag + expect(tag(els[2])).to.be('em'); //first element matched is a {em} tag + expect(tag(els[3])).to.be('b'); //first element matched is a {b} tag + } + +}, + +'pseudo-selectors': { + ':contains': function() { + expect(CSSselect('li:contains(humans)', document)).to.have.length(1); //found by "element:contains(text)" + expect(CSSselect(':contains(humans)', document)).to.have.length(5); //found by ":contains(text)", including all ancestors + // * is an important case, can cause weird errors + expect(CSSselect('*:contains(humans)', document)).to.have.length(5); //found by "*:contains(text)", including all ancestors + expect(CSSselect('ol:contains(humans)', document)).to.have.length(1); //found by "ancestor:contains(text)" + }, + + ':not': function() { + expect(CSSselect('.odd:not(div)', document)).to.have.length(1); //found one .odd :not an <a> + }, + + ':first-child': function () { + expect(CSSselect('#pseudos div:first-child', document)[0]).to.be(pseudos[0]); //found first child + expect(CSSselect('#pseudos div:first-child', document)).to.have.length(1); //found only 1 + }, + + ':last-child': function () { + var all = DomUtils.getElementsByTagName('div', pseudos); + expect(CSSselect('#pseudos div:last-child', document)[0]).to.be(all[all.length - 1]); //found last child + expect(CSSselect('#pseudos div:last-child', document)).to.have.length(1); //found only 1 + }, + + 'ol > li[attr="boosh"]:last-child': function () { + var expected = DomUtils.getElementById('attr-child-boosh', document); + expect(CSSselect('ol > li[attr="boosh"]:last-child', document)).to.have.length(1); //only 1 element found + expect(CSSselect('ol > li[attr="boosh"]:last-child', document)[0]).to.be(expected); //found correct element + }, + + ':nth-child(odd|even|x)': function () { + var second = DomUtils.getElementsByTagName('div', pseudos)[1]; + expect(CSSselect('#pseudos :nth-child(odd)', document)).to.have.length(4); //found 4 odd elements + expect(CSSselect('#pseudos div:nth-child(odd)', document)).to.have.length(3); //found 3 odd elements with div tag + expect(CSSselect('#pseudos div:nth-child(even)', document)).to.have.length(3); //found 3 even elements with div tag + expect(CSSselect('#pseudos div:nth-child(2)', document)[0]).to.be(second); //found 2nd nth-child of pseudos + }, + + ':nth-child(expr)': function () { + var fifth = DomUtils.getElementsByTagName('a', pseudos)[0]; + var sixth = DomUtils.getElementsByTagName('div', pseudos)[4]; + + expect(CSSselect('#pseudos :nth-child(3n+1)', document)).to.have.length(3); //found 3 elements + expect(CSSselect('#pseudos :nth-child(+3n-2)', document)).to.have.length(3); //found 3 elements' + expect(CSSselect('#pseudos :nth-child(-n+6)', document)).to.have.length(6); //found 6 elements + expect(CSSselect('#pseudos :nth-child(-n+5)', document)).to.have.length(5); //found 5 elements + expect(CSSselect('#pseudos :nth-child(3n+2)', document)[1]).to.be(fifth); //second :nth-child(3n+2) is the fifth child + expect(CSSselect('#pseudos :nth-child(3n)', document)[1]).to.be(sixth); //second :nth-child(3n) is the sixth child + }, + + ':nth-last-child(odd|even|x)': function () { + var second = DomUtils.getElementsByTagName('div', pseudos)[1]; + expect(CSSselect('#pseudos :nth-last-child(odd)', document)).to.have.length(4); //found 4 odd elements + expect(CSSselect('#pseudos div:nth-last-child(odd)', document)).to.have.length(3); //found 3 odd elements with div tag + expect(CSSselect('#pseudos div:nth-last-child(even)', document)).to.have.length(3); //found 3 even elements with div tag + expect(CSSselect('#pseudos div:nth-last-child(6)', document)[0]).to.be(second); //6th nth-last-child should be 2nd of 7 elements + }, + + ':nth-last-child(expr)': function () { + var third = DomUtils.getElementsByTagName('div', pseudos)[2]; + + expect(CSSselect('#pseudos :nth-last-child(3n+1)', document)).to.have.length(3); //found 3 elements + expect(CSSselect('#pseudos :nth-last-child(3n-2)', document)).to.have.length(3); //found 3 elements + expect(CSSselect('#pseudos :nth-last-child(-n+6)', document)).to.have.length(6); //found 6 elements + expect(CSSselect('#pseudos :nth-last-child(-n+5)', document)).to.have.length(5); //found 5 elements + expect(CSSselect('#pseudos :nth-last-child(3n+2)', document)[0]).to.be(third); //first :nth-last-child(3n+2) is the third child + }, + + ':nth-of-type(expr)': function () { + var a = DomUtils.getElementsByTagName('a', pseudos)[0]; + + expect(CSSselect('#pseudos div:nth-of-type(3n+1)', document)).to.have.length(2); //found 2 div elements + expect(CSSselect('#pseudos a:nth-of-type(3n+1)', document)).to.have.length(1); //found 1 a element + expect(CSSselect('#pseudos a:nth-of-type(3n+1)', document)[0]).to.be(a); //found the right a element + expect(CSSselect('#pseudos a:nth-of-type(3n)', document)).to.be.empty(); //no matches for every third a + expect(CSSselect('#pseudos a:nth-of-type(odd)', document)).to.have.length(1); //found the odd a + expect(CSSselect('#pseudos a:nth-of-type(1)', document)).to.have.length(1); //found the first a + }, + + ':nth-last-of-type(expr)': function () { + var second = DomUtils.getElementsByTagName('div', pseudos)[1]; + + expect(CSSselect('#pseudos div:nth-last-of-type(3n+1)', document)).to.have.length(2); //found 2 div elements + expect(CSSselect('#pseudos a:nth-last-of-type(3n+1)', document)).to.have.length(1); //found 1 a element + expect(CSSselect('#pseudos div:nth-last-of-type(5)', document)[0]).to.be(second); //5th nth-last-of-type should be 2nd of 7 elements + }, + + ':first-of-type': function () { + expect(CSSselect('#pseudos a:first-of-type', document)[0]).to.be(DomUtils.getElementsByTagName('a', pseudos)[0]); //found first a element + expect(CSSselect('#pseudos a:first-of-type', document)).to.have.length(1); //found only 1 + }, + + ':last-of-type': function () { + var all = DomUtils.getElementsByTagName('div', pseudos); + expect(CSSselect('#pseudos div:last-of-type', document)[0]).to.be(all[all.length - 1]); //found last div element + expect(CSSselect('#pseudos div:last-of-type', document)).to.have.length(1); //found only 1 + }, + + ':only-of-type': function () { + expect(CSSselect('#pseudos a:only-of-type', document)[0]).to.be(DomUtils.getElementsByTagName('a', pseudos)[0]); //found the only a element + expect(CSSselect('#pseudos a:first-of-type', document)).to.have.length(1); //found only 1 + }, + + ':target': function () { + location.hash = ''; + expect(CSSselect('#pseudos:target', document)).to.be.empty(); //#pseudos is not the target + location.hash = '#pseudos'; + expect(CSSselect('#pseudos:target', document)).to.have.length(1); //now #pseudos is the target + location.hash = ''; + }, + + 'custom pseudos': function() { + // :humanoid implemented just for testing purposes + expect(CSSselect(':humanoid', document)).to.have.length(2); //selected using custom pseudo + } + +}, + +/* +'argument types': { + + 'should be able to pass in nodes as arguments': function () { + var el = DomUtils.getElementById('boosh', document); + expect(CSSselect(el)[0]).to.be(el); //CSSselect(el)[0] == el + expect(CSSselect(el, 'body')[0]).to.be(el); //CSSselect(el, 'body')[0] == el + expect(CSSselect(el, document)[0]).to.be(el); //CSSselect(el, document)[0] == el + expect(CSSselect(window)[0]).to.be(window); //CSSselect(window)[0] == window + expect(CSSselect(document)[0]).to.be(document); //CSSselect(document)[0] == document + }, + + 'should be able to pass in an array of results as arguments': function () { + var el = DomUtils.getElementById('boosh', document); + var result = CSSselect([CSSselect('#boosh', document), CSSselect(document), CSSselect(window)]); + expect(result).to.have.length(3); //3 elements in the combined set + expect(result[0]).to.be(el); //result[0] == el + expect(result[1]).to.be(document); //result[0] == document + expect(result[2]).to.be(window); //result[0] == window + expect(CSSselect([CSSselect('#pseudos div.odd', document), CSSselect('#pseudos div.even', document)])).to.have.length(6); //found all the odd and even divs + } + +}, +*/ + +'is()': { + 'simple selectors': function () { + expect(CSSselect.is(el, 'li')).to.be.ok(); //tag + expect(CSSselect.is(el, '*')).to.be.ok(); //wildcard + expect(CSSselect.is(el, '#attr-child-boosh')).to.be.ok(); //#id + expect(CSSselect.is(el, '[attr]')).to.be.ok(); //[attr] + expect(CSSselect.is(el, '[attr=boosh]')).to.be.ok(); //[attr=val] + expect(CSSselect.is(el, 'div')).to.not.be.ok(); //wrong tag + expect(CSSselect.is(el, '#foo')).to.not.be.ok(); //wrong #id + expect(CSSselect.is(el, '[foo]')).to.not.be.ok(); //wrong [attr] + expect(CSSselect.is(el, '[attr=foo]')).to.not.be.ok(); //wrong [attr=val] + }, + 'selector sequences': function () { + expect(CSSselect.is(el, 'li#attr-child-boosh[attr=boosh]')).to.be.ok(); //tag#id[attr=val] + expect(CSSselect.is(el, 'div#attr-child-boosh[attr=boosh]')).to.not.be.ok(); //wrong tag#id[attr=val] + }, + 'selector sequences combinators': function () { + expect(CSSselect.is(el, 'ol li')).to.be.ok(); //tag tag + expect(CSSselect.is(el, 'ol>li')).to.be.ok(); //tag>tag + expect(CSSselect.is(el, 'ol>li+li')).to.be.ok(); //tab>tag+tag + expect(CSSselect.is(el, 'ol#list li#attr-child-boosh[attr=boosh]')).to.be.ok(); //tag#id tag#id[attr=val] + expect(CSSselect.is(el, 'ol#list>li#attr-child-boosh[attr=boosh]')).to.not.be.ok(); //wrong tag#id>tag#id[attr=val] + expect(CSSselect.is(el, 'ol ol li#attr-child-boosh[attr=boosh]')).to.be.ok(); //tag tag tag#id[attr=val] + expect(CSSselect.is(CSSselect('#token-four', document)[0], 'div#fixtures>div a')).to.be.ok(); //tag#id>tag tag where ambiguous middle tag requires backtracking + }, + 'pseudos': function() { + //TODO: more tests! + expect(CSSselect.is(el, 'li:contains(hello)')).to.be.ok(); //matching :contains(text) + expect(CSSselect.is(el, 'li:contains(human)')).to.not.be.ok(); //non-matching :contains(text) + expect(CSSselect.is(CSSselect('#list>li', document)[2], ':humanoid')).to.be.ok(); //matching custom pseudo + expect(CSSselect.is(CSSselect('#list>li', document)[1], ':humanoid')).to.not.be.ok(); //non-matching custom pseudo + }/*, + 'context': function () { + expect(CSSselect.is(el, 'li#attr-child-boosh[attr=boosh]', CSSselect('#list', document)[0])).to.be.ok(); //context + expect(CSSselect.is(el, 'ol#list li#attr-child-boosh[attr=boosh]', CSSselect('#boosh', document)[0])).to.not.be.ok(); //wrong context + }*/ +}, + +'selecting elements in other documents': { + 'get element by id': function () { + var result = CSSselect('#hsoob', doc); + expect(result[0]).to.be.ok(); //found element with id=hsoob + }, + + 'get elements by class': function () { + expect(CSSselect('#hsoob .a', doc)).to.have.length(2); //found two elements + expect(CSSselect('#hsoob div.a', doc)[0]).to.be.ok(); //found one element + expect(CSSselect('#hsoob div', doc)).to.have.length(2); //found two {div} elements + expect(CSSselect('#hsoob span', doc)[0]).to.be.ok(); //found one {span} element + expect(CSSselect('#hsoob div div', doc)[0]).to.be.ok(); //found a single div + expect(CSSselect('p.odd', doc)).to.have.length(1); //found single br + }, + + 'complex selectors': function () { + expect(CSSselect('.d ~ .sib', doc)).to.have.length(2); //found one ~ sibling + expect(CSSselect('.a .d + .sib', doc)).to.have.length(1); //found 2 + siblings + expect(CSSselect('#hsoob > div > .h', doc)).to.have.length(1); //found span using child selectors + expect(CSSselect('.a .d ~ .sib[test="f g"]', doc)).to.have.length(1); //found 1 ~ sibling with test attribute + }, + + 'byId sub-queries': function () { + expect(CSSselect('#hsoob #spanny', doc)).to.have.length(1); //found "#id #id" in frame + expect(CSSselect('.a #spanny', doc)).to.have.length(1); //found ".class #id" in frame + expect(CSSselect('.a #booshTest #spanny', doc)).to.have.length(1); //found ".class #id #id" in frame + //expect(CSSselect('> #hsoob', doc)).to.have.length(1) //found "> #id" in frame + }, + + 'byId sub-queries within sub-context': function () { + expect(CSSselect('#spanny', CSSselect('#hsoob', doc))).to.have.length(1); //found "#id -> #id" in frame + expect(CSSselect('.a #spanny', CSSselect('#hsoob', doc))).to.have.length(1); //found ".class #id" in frame + expect(CSSselect('.a #booshTest #spanny', CSSselect('#hsoob', doc))).to.have.length(1); //found ".class #id #id" in frame + expect(CSSselect('.a > #booshTest', CSSselect('#hsoob', doc))).to.have.length(1); //found "> .class #id" in frame + expect(CSSselect('#booshTest', CSSselect('#spanny', doc)).length).to.not.be.ok(); //shouldn't find #booshTest (ancestor) within #spanny (descendent) + expect(CSSselect('#booshTest', CSSselect('#lonelyHsoob', doc)).length).to.not.be.ok(); //shouldn't find #booshTest within #lonelyHsoob (unrelated) + } + +} + +}; diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/sizzle/data/fries.xml b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/sizzle/data/fries.xml new file mode 100644 index 0000000..8528575 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/sizzle/data/fries.xml @@ -0,0 +1 @@ + 1 foo diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/sizzle/data/index.html b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/sizzle/data/index.html new file mode 100755 index 0000000..ad7db53 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/sizzle/data/index.html @@ -0,0 +1,247 @@ + + + + + Sizzle Test Suite + + + + + + + + + + + +
    +

    jQuery Test Suite

    +

    +
    +

    +
    + + +
    +
    +

    See this blog entry for more information.

    +

    + Here are some [links] in a normal paragraph: Google, + Google Groups (Link). + This link has class="blog": + diveintomark + +

    +
    +

    Everything inside the red border is inside a div with id="foo".

    +

    This is a normal link: Yahoo

    +

    This link has class="blog": Simon Willison's Weblog

    + +
    +
    +
    +
    + +

    Try them out:

    +
      +
      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + test element +
      + Float test. + +
      + + +
      +
      + +
      + + + + +
      + +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      +
      +
      + +
      +
      hi there
      +
      +
      +
      +
      +
      +
      +
      + +
      +
      +
      + + +
      + + +
      + + +
      C
      +
      +
      + +
      +
        +
      1. Rice
      2. +
      3. Beans
      4. +
      5. Blinis
      6. +
      7. Tofu
      8. +
      + +
      I'm hungry. I should...
      + ...Eat lots of food... | + ...Eat a little food... | + ...Eat no food... + ...Eat a burger... + ...Eat some funyuns... + ...Eat some funyuns... +
      + +
      + + +
      + +
      + 1 + 2 + + + + + + + + +
      ​ +
      +
      +
      + + diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/sizzle/data/testinit.js b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/sizzle/data/testinit.js new file mode 100755 index 0000000..c3cd0e1 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/sizzle/data/testinit.js @@ -0,0 +1,87 @@ +var assert = require("assert"), + util = require("util"), + helper = require("../../tools/helper.js"), + CSSselect = helper.CSSselect, + path = require("path"), + docPath = path.join(__dirname, "index.html"), + document = null; + + +//in this module, the only use-case is to compare arrays of +function deepEqual(a, b, msg){ + try { + assert.deepEqual(a, b, msg); + } catch(e) { + function getId(n){return n && n.attribs.id; } + e.actual = JSON.stringify(a.map(getId), 0, 2); + e.expected = JSON.stringify(b.map(getId), 0, 2); + throw e; + } +} + +function loadDoc(){ + return document = helper.getDocument(docPath); +} + +module.exports = { + q: q, + t: t, + loadDoc: loadDoc, + createWithFriesXML: createWithFriesXML +}; + +/** + * Returns an array of elements with the given IDs + * @example q("main", "foo", "bar") + * @result [
      , , ] + */ +function q() { + var r = [], + i = 0; + + for ( ; i < arguments.length; i++ ) { + r.push( document.getElementById( arguments[i] ) ); + } + return r; +} + +/** + * Asserts that a select matches the given IDs + * @param {String} a - Assertion name + * @param {String} b - Sizzle selector + * @param {String} c - Array of ids to construct what is expected + * @example t("Check for something", "//[a]", ["foo", "baar"]); + * @result returns true if "//[a]" return two elements with the IDs 'foo' and 'baar' + */ +function t( a, b, c ) { + var f = CSSselect(b, document), + s = "", + i = 0; + + for ( ; i < f.length; i++ ) { + s += ( s && "," ) + '"' + f[ i ].id + '"'; + } + + deepEqual(f, q.apply( q, c ), a + " (" + b + ")"); +} + +/** + * Add random number to url to stop caching + * + * @example url("data/test.html") + * @result "data/test.html?10538358428943" + * + * @example url("data/test.php?foo=bar") + * @result "data/test.php?foo=bar&10538358345554" + */ +function url( value ) { + return value + (/\?/.test(value) ? "&" : "?") + new Date().getTime() + "" + parseInt(Math.random()*100000); +} + +var xmlDoc = helper.getDOMFromPath(path.join(__dirname, "fries.xml"), { xmlMode: true }); +var filtered = xmlDoc.filter(function(t){return t.type === "tag"}); +xmlDoc.lastChild = filtered[filtered.length - 1]; + +function createWithFriesXML() { + return xmlDoc; +} diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/sizzle/selector.js b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/sizzle/selector.js new file mode 100755 index 0000000..d0ce777 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/sizzle/selector.js @@ -0,0 +1,1196 @@ +var DomUtils = require("domutils"), + helper = require("../tools/helper.js"), + CSSselect = helper.CSSselect, + assert = require("assert"), + raises = assert.throws, + equal = assert.equal, + deepEqual = assert.deepEqual, + ok = assert.ok, + testInit = require("./data/testinit.js"), + q = testInit.q, + t = testInit.t, + document = testInit.loadDoc(), + createWithFriesXML = testInit.createWithFriesXML, + expect = function(){}, + test = it; + +function Sizzle(str, doc){ + return CSSselect(str, doc || document); +} + +Sizzle.matches = function(selector, elements){ + return elements.filter(CSSselect.compile(selector)); +}; + +Sizzle.matchesSelector = CSSselect.is; + +function jQuery(dom){ + if(typeof dom === "string") dom = helper.getDOM(dom); + var ret = { + appendTo: function(elem){ + if(typeof elem === "string") elem = Sizzle(elem)[0]; + dom.forEach(function(child){ + DomUtils.appendChild(elem, child); + }); + return this; + }, + remove: function(){ + dom.forEach(DomUtils.removeElement); + return this; + }, + prev: function(){ + dom = dom.map(function(elem){ + return elem.prev; + }); + return this; + }, + before: function(str){ + dom.forEach(function(elem){ + helper.getDOM(str).forEach(function(child){ + DomUtils.prepend(elem, child); + }); + }); + return this; + } + }; + + dom.forEach(function(elem, i){ + ret[i] = elem; + }); + + return ret; +} + +function asyncTest(name, _, func){ + it(name, func); +} + +beforeEach(function(){ + document = testInit.loadDoc(); +}); + +// #### NOTE: #### +// jQuery should not be used in this module +// except for DOM manipulation +// If jQuery is mandatory for the selection, move the test to jquery/test/unit/selector.js +// Use t() or Sizzle() +// ############### + +/* + ======== QUnit Reference ======== + http://docs.jquery.com/QUnit + + Test methods: + expect(numAssertions) + stop() + start() + note: QUnit's eventual addition of an argument to stop/start is ignored in this test suite + so that start and stop can be passed as callbacks without worrying about + their parameters + Test assertions: + ok(value, [message]) + equal(actual, expected, [message]) + notEqual(actual, expected, [message]) + deepEqual(actual, expected, [message]) + notDeepEqual(actual, expected, [message]) + strictEqual(actual, expected, [message]) + notStrictEqual(actual, expected, [message]) + raises(block, [expected], [message]) + + ======== testinit.js reference ======== + See data/testinit.js + + q(...); + Returns an array of elements with the given IDs + @example q("main", "foo", "bar") => [
      , , ] + + t( testName, selector, [ "array", "of", "ids" ] ); + Asserts that a select matches the given IDs + @example t("Check for something", "//[a]", ["foo", "baar"]); + + url( "some/url.php" ); + Add random number to url to stop caching + @example url("data/test.html") => "data/test.html?10538358428943" + @example url("data/test.php?foo=bar") => "data/test.php?foo=bar&10538358345554" +*/ + +test("element", function() { + expect( 38 ); + + var form, all, good, i, obj1, lengthtest, + siblingTest, iframe, iframeDoc, html; + + equal( Sizzle("").length, 0, "Empty selector returns an empty array" ); + deepEqual( Sizzle("div", document.createTextNode("")), [], "Text element as context fails silently" ); + form = document.getElementById("form"); + ok( !Sizzle.matchesSelector( form, "" ), "Empty string passed to matchesSelector does not match" ); + equal( Sizzle(" ").length, 0, "Empty selector returns an empty array" ); + equal( Sizzle("\t").length, 0, "Empty selector returns an empty array" ); + + ok( Sizzle("*").length >= 30, "Select all" ); + all = Sizzle("*"); + good = true; + for ( i = 0; i < all.length; i++ ) { + if ( all[i].nodeType === 8 ) { + good = false; + } + } + ok( good, "Select all elements, no comment nodes" ); + t( "Element Selector", "html", ["html"] ); + t( "Element Selector", "body", ["body"] ); + t( "Element Selector", "#qunit-fixture p", ["firstp","ap","sndp","en","sap","first"] ); + + t( "Leading space", " #qunit-fixture p", ["firstp","ap","sndp","en","sap","first"] ); + t( "Leading tab", "\t#qunit-fixture p", ["firstp","ap","sndp","en","sap","first"] ); + t( "Leading carriage return", "\r#qunit-fixture p", ["firstp","ap","sndp","en","sap","first"] ); + t( "Leading line feed", "\n#qunit-fixture p", ["firstp","ap","sndp","en","sap","first"] ); + t( "Leading form feed", "\f#qunit-fixture p", ["firstp","ap","sndp","en","sap","first"] ); + t( "Trailing space", "#qunit-fixture p ", ["firstp","ap","sndp","en","sap","first"] ); + t( "Trailing tab", "#qunit-fixture p\t", ["firstp","ap","sndp","en","sap","first"] ); + t( "Trailing carriage return", "#qunit-fixture p\r", ["firstp","ap","sndp","en","sap","first"] ); + t( "Trailing line feed", "#qunit-fixture p\n", ["firstp","ap","sndp","en","sap","first"] ); + t( "Trailing form feed", "#qunit-fixture p\f", ["firstp","ap","sndp","en","sap","first"] ); + + t( "Parent Element", "dl ol", ["empty", "listWithTabIndex"] ); + t( "Parent Element (non-space descendant combinator)", "dl\tol", ["empty", "listWithTabIndex"] ); + obj1 = document.getElementById("object1"); + equal( Sizzle("param", obj1).length, 2, "Object/param as context" ); + + deepEqual( Sizzle("select", form), q("select1","select2","select3","select4","select5"), "Finding selects with a context." ); + + // Check for unique-ness and sort order + deepEqual( Sizzle("p, div p"), Sizzle("p"), "Check for duplicates: p, div p" ); + + t( "Checking sort order", "h2, h1", ["qunit-header", "qunit-banner", "qunit-userAgent"] ); + // t( "Checking sort order", "h2:first, h1:first", ["qunit-header", "qunit-banner"] ); + t( "Checking sort order", "#qunit-fixture p, #qunit-fixture p a", ["firstp", "simon1", "ap", "google", "groups", "anchor1", "mark", "sndp", "en", "yahoo", "sap", "anchor2", "simon", "first"] ); + + // Test Conflict ID + lengthtest = document.getElementById("lengthtest"); + deepEqual( Sizzle("#idTest", lengthtest), q("idTest"), "Finding element with id of ID." ); + deepEqual( Sizzle("[name='id']", lengthtest), q("idTest"), "Finding element with id of ID." ); + deepEqual( Sizzle("input[id='idTest']", lengthtest), q("idTest"), "Finding elements with id of ID." ); + + siblingTest = document.getElementById("siblingTest"); // TODO + // deepEqual( Sizzle("div em", siblingTest), [], "Element-rooted QSA does not select based on document context" ); + // deepEqual( Sizzle("div em, div em, div em:not(div em)", siblingTest), [], "Element-rooted QSA does not select based on document context" ); + // deepEqual( Sizzle("div em, em\\,", siblingTest), [], "Escaped commas do not get treated with an id in element-rooted QSA" ); + + iframe = document.getElementById("iframe"); + //iframeDoc.open(); + iframe.children = helper.getDOM("

      bar

      "); + //iframeDoc.close(); + deepEqual( + Sizzle( "p:contains(bar)", iframe ), + [ DomUtils.getElementById("foo", iframe.children) ], + "Other document as context" + ); + iframe.children = []; + + html = ""; + for ( i = 0; i < 100; i++ ) { + html = "
      " + html + "
      "; + } + html = jQuery( html ).appendTo( document.body ); + ok( !!Sizzle("body div div div").length, "No stack or performance problems with large amounts of descendents" ); + ok( !!Sizzle("body>div div div").length, "No stack or performance problems with large amounts of descendents" ); + html.remove(); + + // Real use case would be using .watch in browsers with window.watch (see Issue #157) + var elem = document.createElement("tostring"); + elem.attribs.id = "toString"; + var siblings = q("qunit-fixture")[0].children; + siblings.push( elem ); + t( "Element name matches Object.prototype property", "tostring#toString", ["toString"] ); + siblings.pop(); +}); + +test("XML Document Selectors", function() { + var xml = createWithFriesXML(); + expect( 11 ); + + equal( Sizzle("foo_bar", xml).length, 1, "Element Selector with underscore" ); + equal( Sizzle(".component", xml).length, 1, "Class selector" ); + equal( Sizzle("[class*=component]", xml).length, 1, "Attribute selector for class" ); + equal( Sizzle("property[name=prop2]", xml).length, 1, "Attribute selector with name" ); + equal( Sizzle("[name=prop2]", xml).length, 1, "Attribute selector with name" ); + equal( Sizzle("#seite1", xml).length, 1, "Attribute selector with ID" ); + equal( Sizzle("component#seite1", xml).length, 1, "Attribute selector with ID" ); + equal( Sizzle.matches( "#seite1", Sizzle("component", xml) ).length, 1, "Attribute selector filter with ID" ); + equal( Sizzle("meta property thing", xml).length, 2, "Descendent selector and dir caching" ); + ok( Sizzle.matchesSelector( xml.lastChild, "soap\\:Envelope", { xmlMode: true } ), "Check for namespaced element" ); + + xml = helper.getDOM("", { xmlMode: true }); + equal( Sizzle( "elem:not(:has(*))", xml ).length, 1, + "Non-qSA path correctly handles numeric ids (jQuery #14142)" ); +}); + +test("broken", function() { + expect( 26 ); + + var attrbad, + broken = function( name, selector ) { + raises(function() { + // Setting context to null here somehow avoids QUnit's window.error handling + // making the e & e.message correct + // For whatever reason, without this, + // Sizzle.error will be called but no error will be seen in oldIE + Sizzle.call( null, selector ); + }, SyntaxError, name + ": " + selector ); + }; + + // broken( "Broken Selector", "[" ); + // broken( "Broken Selector", "(" ); + // broken( "Broken Selector", "{" ); + // broken( "Broken Selector", "<" ); + // broken( "Broken Selector", "()" ); + // broken( "Broken Selector", "<>" ); + broken( "Broken Selector", "{}" ); + broken( "Broken Selector", "," ); + broken( "Broken Selector", ",a" ); + broken( "Broken Selector", "a," ); + // Hangs on IE 9 if regular expression is inefficient + // broken( "Broken Selector", "[id=012345678901234567890123456789"); + broken( "Doesn't exist", ":visble" ); + broken( "Nth-child", ":nth-child" ); + // Sigh again. IE 9 thinks this is also a real selector + // not super critical that we fix this case + broken( "Nth-child", ":nth-child(-)" ); + // Sigh. WebKit thinks this is a real selector in qSA + // They've already fixed this and it'll be coming into + // current browsers soon. Currently, Safari 5.0 still has this problem + broken( "Nth-child", ":nth-child(asdf)", [] ); + broken( "Nth-child", ":nth-child(2n+-0)" ); + broken( "Nth-child", ":nth-child(2+0)" ); + broken( "Nth-child", ":nth-child(- 1n)" ); + broken( "Nth-child", ":nth-child(-1 n)" ); + broken( "First-child", ":first-child(n)" ); + broken( "Last-child", ":last-child(n)" ); + broken( "Only-child", ":only-child(n)" ); + broken( "Nth-last-last-child", ":nth-last-last-child(1)" ); + broken( "First-last-child", ":first-last-child" ); + broken( "Last-last-child", ":last-last-child" ); + broken( "Only-last-child", ":only-last-child" ); + + // Make sure attribute value quoting works correctly. See: #6093 + attrbad = jQuery("").appendTo("#qunit-fixture"); + + // broken( "Attribute not escaped", "input[name=foo.baz]", [] ); + // Shouldn't be matching those inner brackets + // broken( "Attribute not escaped", "input[name=foo[baz]]", [] ); +}); + +test("id", function() { + expect( 34 ); + + var fiddle, a; + + t( "ID Selector", "#body", ["body"] ); + t( "ID Selector w/ Element", "body#body", ["body"] ); + t( "ID Selector w/ Element", "ul#first", [] ); + t( "ID selector with existing ID descendant", "#firstp #simon1", ["simon1"] ); + t( "ID selector with non-existant descendant", "#firstp #foobar", [] ); + t( "ID selector using UTF8", "#台北Táiběi", ["台北Táiběi"] ); + t( "Multiple ID selectors using UTF8", "#台北Táiběi, #台北", ["台北Táiběi","台北"] ); + t( "Descendant ID selector using UTF8", "div #台北", ["台北"] ); + t( "Child ID selector using UTF8", "form > #台北", ["台北"] ); + + t( "Escaped ID", "#foo\\:bar", ["foo:bar"] ); + t( "Escaped ID with descendent", "#foo\\:bar span:not(:input)", ["foo_descendent"] ); + t( "Escaped ID", "#test\\.foo\\[5\\]bar", ["test.foo[5]bar"] ); + t( "Descendant escaped ID", "div #foo\\:bar", ["foo:bar"] ); + t( "Descendant escaped ID", "div #test\\.foo\\[5\\]bar", ["test.foo[5]bar"] ); + t( "Child escaped ID", "form > #foo\\:bar", ["foo:bar"] ); + t( "Child escaped ID", "form > #test\\.foo\\[5\\]bar", ["test.foo[5]bar"] ); + + fiddle = jQuery("
      ").appendTo("#qunit-fixture"); + // deepEqual( Sizzle( "> span", Sizzle("#fiddle\\\\Foo")[0] ), q([ "fiddleSpan" ]), "Escaped ID as context" ); + fiddle.remove(); + + t( "ID Selector, child ID present", "#form > #radio1", ["radio1"] ); // bug #267 + t( "ID Selector, not an ancestor ID", "#form #first", [] ); + t( "ID Selector, not a child ID", "#form > #option1a", [] ); + + t( "All Children of ID", "#foo > *", ["sndp", "en", "sap"] ); + t( "All Children of ID with no children", "#firstUL > *", [] ); + + equal( Sizzle("#tName1")[0].attribs.id, "tName1", "ID selector with same value for a name attribute" ); + t( "ID selector non-existing but name attribute on an A tag", "#tName2", [] ); + t( "Leading ID selector non-existing but name attribute on an A tag", "#tName2 span", [] ); + t( "Leading ID selector existing, retrieving the child", "#tName1 span", ["tName1-span"] ); + equal( Sizzle("div > div #tName1")[0].attribs.id, Sizzle("#tName1-span")[0].parent.attribs.id, "Ending with ID" ); + + a = jQuery("").appendTo("#qunit-fixture"); + t( "ID Selector contains backslash", "#backslash\\\\foo", ["backslash\\foo"] ); + + t( "ID Selector on Form with an input that has a name of 'id'", "#lengthtest", ["lengthtest"] ); + + t( "ID selector with non-existant ancestor", "#asdfasdf #foobar", [] ); // bug #986 + + deepEqual( Sizzle("div#form", document.body), [], "ID selector within the context of another element" ); + + t( "Underscore ID", "#types_all", ["types_all"] ); + t( "Dash ID", "#qunit-fixture", ["qunit-fixture"] ); + + t( "ID with weird characters in it", "#name\\+value", ["name+value"] ); +}); + +test("class", function() { + expect( 26 ); + + t( "Class Selector", ".blog", ["mark","simon"] ); + t( "Class Selector", ".GROUPS", ["groups"] ); + t( "Class Selector", ".blog.link", ["simon"] ); + t( "Class Selector w/ Element", "a.blog", ["mark","simon"] ); + t( "Parent Class Selector", "p .blog", ["mark","simon"] ); + + t( "Class selector using UTF8", ".台北Táiběi", ["utf8class1"] ); + t( "Class selector using UTF8", ".台北", ["utf8class1","utf8class2"] ); + t( "Class selector using UTF8", ".台北Táiběi.台北", ["utf8class1"] ); + t( "Class selector using UTF8", ".台北Táiběi, .台北", ["utf8class1","utf8class2"] ); + t( "Descendant class selector using UTF8", "div .台北Táiběi", ["utf8class1"] ); + t( "Child class selector using UTF8", "form > .台北Táiběi", ["utf8class1"] ); + + t( "Escaped Class", ".foo\\:bar", ["foo:bar"] ); + t( "Escaped Class", ".test\\.foo\\[5\\]bar", ["test.foo[5]bar"] ); + t( "Descendant escaped Class", "div .foo\\:bar", ["foo:bar"] ); + t( "Descendant escaped Class", "div .test\\.foo\\[5\\]bar", ["test.foo[5]bar"] ); + t( "Child escaped Class", "form > .foo\\:bar", ["foo:bar"] ); + t( "Child escaped Class", "form > .test\\.foo\\[5\\]bar", ["test.foo[5]bar"] ); + + var div = document.createElement("div"); + div.children = helper.getDOM("
      "); + div.children.forEach(function(e){ + e.parent = div; + }); + deepEqual( Sizzle(".e", div), [ div.children[0] ], "Finding a second class." ); + + var lastChild = div.children[div.children.length - 1]; + lastChild.attribs.class = "e"; + + deepEqual( Sizzle(".e", div), [ div.children[0], lastChild ], "Finding a modified class." ); + + ok( !Sizzle.matchesSelector( div, ".null"), ".null does not match an element with no class" ); + ok( !Sizzle.matchesSelector( div.children[0], ".null div"), ".null does not match an element with no class" ); + div.attribs.class = "null"; + ok( Sizzle.matchesSelector( div, ".null"), ".null matches element with class 'null'" ); + ok( Sizzle.matchesSelector( div.children[0], ".null div"), "caching system respects DOM changes" ); + ok( !Sizzle.matchesSelector( document, ".foo" ), "testing class on document doesn't error" ); + //ok( !Sizzle.matchesSelector( window, ".foo" ), "testing class on window doesn't error" ); + + lastChild.attribs.class += " hasOwnProperty toString"; + deepEqual( Sizzle(".e.hasOwnProperty.toString", div), [ lastChild ], "Classes match Object.prototype properties" ); + + div = jQuery("
      ")[0]; + equal( Sizzle(".foo", div).length, 1, "Class selector against SVG" ); +}); + +test("name", function() { + expect( 13 ); + + var form; + + t( "Name selector", "input[name=action]", ["text1"] ); + t( "Name selector with single quotes", "input[name='action']", ["text1"] ); + t( "Name selector with double quotes", "input[name=\"action\"]", ["text1"] ); + + t( "Name selector non-input", "[name=example]", ["name-is-example"] ); + t( "Name selector non-input", "[name=div]", ["name-is-div"] ); + t( "Name selector non-input", "*[name=iframe]", ["iframe"] ); + + t( "Name selector for grouped input", "input[name='types[]']", ["types_all", "types_anime", "types_movie"] ); + + form = document.getElementById("form"); + deepEqual( Sizzle("input[name=action]", form), q("text1"), "Name selector within the context of another element" ); + deepEqual( Sizzle("input[name='foo[bar]']", form), q("hidden2"), "Name selector for grouped form element within the context of another element" ); + + form = jQuery("
      ").appendTo("body"); + equal( Sizzle("input", form[0]).length, 1, "Make sure that rooted queries on forms (with possible expandos) work." ); + + form.remove(); + + t( "Find elements that have similar IDs", "[name=tName1]", ["tName1ID"] ); + t( "Find elements that have similar IDs", "[name=tName2]", ["tName2ID"] ); + t( "Find elements that have similar IDs", "#tName2ID", ["tName2ID"] ); +}); + +test("multiple", function() { + expect(6); + + t( "Comma Support", "h2, #qunit-fixture p", ["qunit-banner","qunit-userAgent","firstp","ap","sndp","en","sap","first"] ); + t( "Comma Support", "h2 , #qunit-fixture p", ["qunit-banner","qunit-userAgent","firstp","ap","sndp","en","sap","first"] ); + t( "Comma Support", "h2 , #qunit-fixture p", ["qunit-banner","qunit-userAgent","firstp","ap","sndp","en","sap","first"] ); + t( "Comma Support", "h2,#qunit-fixture p", ["qunit-banner","qunit-userAgent","firstp","ap","sndp","en","sap","first"] ); + t( "Comma Support", "h2,#qunit-fixture p ", ["qunit-banner","qunit-userAgent","firstp","ap","sndp","en","sap","first"] ); + t( "Comma Support", "h2\t,\r#qunit-fixture p\n", ["qunit-banner","qunit-userAgent","firstp","ap","sndp","en","sap","first"] ); +}); + +test("child and adjacent", function() { + expect( 42 ); + + var siblingFirst, en, nothiddendiv; + + t( "Child", "p > a", ["simon1","google","groups","mark","yahoo","simon"] ); + t( "Child", "p> a", ["simon1","google","groups","mark","yahoo","simon"] ); + t( "Child", "p >a", ["simon1","google","groups","mark","yahoo","simon"] ); + t( "Child", "p>a", ["simon1","google","groups","mark","yahoo","simon"] ); + t( "Child w/ Class", "p > a.blog", ["mark","simon"] ); + t( "All Children", "code > *", ["anchor1","anchor2"] ); + t( "All Grandchildren", "p > * > *", ["anchor1","anchor2"] ); + t( "Adjacent", "#qunit-fixture a + a", ["groups", "tName2ID"] ); + t( "Adjacent", "#qunit-fixture a +a", ["groups", "tName2ID"] ); + t( "Adjacent", "#qunit-fixture a+ a", ["groups", "tName2ID"] ); + t( "Adjacent", "#qunit-fixture a+a", ["groups", "tName2ID"] ); + t( "Adjacent", "p + p", ["ap","en","sap"] ); + t( "Adjacent", "p#firstp + p", ["ap"] ); + t( "Adjacent", "p[lang=en] + p", ["sap"] ); + t( "Adjacent", "a.GROUPS + code + a", ["mark"] ); + t( "Comma, Child, and Adjacent", "#qunit-fixture a + a, code > a", ["groups","anchor1","anchor2","tName2ID"] ); + t( "Element Preceded By", "#qunit-fixture p ~ div", ["foo", "nothiddendiv", "moretests","tabindex-tests", "liveHandlerOrder", "siblingTest"] ); + t( "Element Preceded By", "#first ~ div", ["moretests","tabindex-tests", "liveHandlerOrder", "siblingTest"] ); + t( "Element Preceded By", "#groups ~ a", ["mark"] ); + t( "Element Preceded By", "#length ~ input", ["idTest"] ); + t( "Element Preceded By", "#siblingfirst ~ em", ["siblingnext", "siblingthird"] ); + t( "Element Preceded By (multiple)", "#siblingTest em ~ em ~ em ~ span", ["siblingspan"] ); + t( "Element Preceded By, Containing", "#liveHandlerOrder ~ div em:contains('1')", ["siblingfirst"] ); + + siblingFirst = document.getElementById("siblingfirst"); + + //deepEqual( Sizzle("~ em", siblingFirst), q("siblingnext", "siblingthird"), "Element Preceded By with a context." ); + //deepEqual( Sizzle("+ em", siblingFirst), q("siblingnext"), "Element Directly Preceded By with a context." ); + //deepEqual( Sizzle("~ em:first", siblingFirst), q("siblingnext"), "Element Preceded By positional with a context." ); + + en = document.getElementById("en"); + //deepEqual( Sizzle("+ p, a", en), q("yahoo", "sap"), "Compound selector with context, beginning with sibling test." ); + //deepEqual( Sizzle("a, + p", en), q("yahoo", "sap"), "Compound selector with context, containing sibling test." ); + + t( "Multiple combinators selects all levels", "#siblingTest em *", ["siblingchild", "siblinggrandchild", "siblinggreatgrandchild"] ); + t( "Multiple combinators selects all levels", "#siblingTest > em *", ["siblingchild", "siblinggrandchild", "siblinggreatgrandchild"] ); + t( "Multiple sibling combinators doesn't miss general siblings", "#siblingTest > em:first-child + em ~ span", ["siblingspan"] ); + t( "Combinators are not skipped when mixing general and specific", "#siblingTest > em:contains('x') + em ~ span", [] ); + + equal( Sizzle("#listWithTabIndex").length, 1, "Parent div for next test is found via ID (#8310)" ); + //equal( Sizzle("#listWithTabIndex li:eq(2) ~ li").length, 1, "Find by general sibling combinator (#8310)" ); + equal( Sizzle("#__sizzle__").length, 0, "Make sure the temporary id assigned by sizzle is cleared out (#8310)" ); + equal( Sizzle("#listWithTabIndex").length, 1, "Parent div for previous test is still found via ID (#8310)" ); + + t( "Verify deep class selector", "div.blah > p > a", [] ); + + t( "No element deep selector", "div.foo > span > a", [] ); + + nothiddendiv = document.getElementById("nothiddendiv"); + //deepEqual( Sizzle("> :first", nothiddendiv), q("nothiddendivchild"), "Verify child context positional selector" ); + //deepEqual( Sizzle("> :eq(0)", nothiddendiv), q("nothiddendivchild"), "Verify child context positional selector" ); + //deepEqual( Sizzle("> *:first", nothiddendiv), q("nothiddendivchild"), "Verify child context positional selector" ); + + t( "Non-existant ancestors", ".fototab > .thumbnails > a", [] ); +}); + +test("attributes", function() { + expect( 76 ); + + var opt, input, attrbad, div; + + t( "Attribute Exists", "#qunit-fixture a[title]", ["google"] ); + t( "Attribute Exists (case-insensitive)", "#qunit-fixture a[TITLE]", ["google"] ); + t( "Attribute Exists", "#qunit-fixture *[title]", ["google"] ); + t( "Attribute Exists", "#qunit-fixture [title]", ["google"] ); + t( "Attribute Exists", "#qunit-fixture a[ title ]", ["google"] ); + + t( "Boolean attribute exists", "#select2 option[selected]", ["option2d"]); + t( "Boolean attribute equals", "#select2 option[selected='selected']", ["option2d"]); + + t( "Attribute Equals", "#qunit-fixture a[rel='bookmark']", ["simon1"] ); + t( "Attribute Equals", "#qunit-fixture a[rel='bookmark']", ["simon1"] ); + t( "Attribute Equals", "#qunit-fixture a[rel=bookmark]", ["simon1"] ); + t( "Attribute Equals", "#qunit-fixture a[href='http://www.google.com/']", ["google"] ); + t( "Attribute Equals", "#qunit-fixture a[ rel = 'bookmark' ]", ["simon1"] ); + t( "Attribute Equals Number", "#qunit-fixture option[value=1]", ["option1b","option2b","option3b","option4b","option5c"] ); + t( "Attribute Equals Number", "#qunit-fixture li[tabIndex=-1]", ["foodWithNegativeTabIndex"] ); + + document.getElementById("anchor2").href = "#2"; + t( "href Attribute", "p a[href^=#]", ["anchor2"] ); + t( "href Attribute", "p a[href*=#]", ["simon1", "anchor2"] ); + + t( "for Attribute", "form label[for]", ["label-for"] ); + t( "for Attribute in form", "#form [for=action]", ["label-for"] ); + + t( "Attribute containing []", "input[name^='foo[']", ["hidden2"] ); + t( "Attribute containing []", "input[name^='foo[bar]']", ["hidden2"] ); + t( "Attribute containing []", "input[name*='[bar]']", ["hidden2"] ); + t( "Attribute containing []", "input[name$='bar]']", ["hidden2"] ); + t( "Attribute containing []", "input[name$='[bar]']", ["hidden2"] ); + t( "Attribute containing []", "input[name$='foo[bar]']", ["hidden2"] ); + t( "Attribute containing []", "input[name*='foo[bar]']", ["hidden2"] ); + + deepEqual( Sizzle( "input[data-comma='0,1']" ), [ document.getElementById("el12087") ], "Without context, single-quoted attribute containing ','" ); + deepEqual( Sizzle( "input[data-comma=\"0,1\"]" ), [ document.getElementById("el12087") ], "Without context, double-quoted attribute containing ','" ); + deepEqual( Sizzle( "input[data-comma='0,1']", document.getElementById("t12087") ), [ document.getElementById("el12087") ], "With context, single-quoted attribute containing ','" ); + deepEqual( Sizzle( "input[data-comma=\"0,1\"]", document.getElementById("t12087") ), [ document.getElementById("el12087") ], "With context, double-quoted attribute containing ','" ); + + t( "Multiple Attribute Equals", "#form input[type='radio'], #form input[type='hidden']", ["radio1", "radio2", "hidden1"] ); + t( "Multiple Attribute Equals", "#form input[type='radio'], #form input[type=\"hidden\"]", ["radio1", "radio2", "hidden1"] ); + t( "Multiple Attribute Equals", "#form input[type='radio'], #form input[type=hidden]", ["radio1", "radio2", "hidden1"] ); + + t( "Attribute selector using UTF8", "span[lang=中文]", ["台北"] ); + + t( "Attribute Begins With", "a[href ^= 'http://www']", ["google","yahoo"] ); + t( "Attribute Ends With", "a[href $= 'org/']", ["mark"] ); + t( "Attribute Contains", "a[href *= 'google']", ["google","groups"] ); + t( "Attribute Is Not Equal", "#ap a[hreflang!='en']", ["google","groups","anchor1"] ); + + opt = document.getElementById("option1a"); + opt.attribs.test = ""; + + ok( Sizzle.matchesSelector( opt, "[id*=option1][type!=checkbox]" ), "Attribute Is Not Equal Matches" ); + ok( Sizzle.matchesSelector( opt, "[id*=option1]" ), "Attribute With No Quotes Contains Matches" ); + ok( Sizzle.matchesSelector( opt, "[test=]" ), "Attribute With No Quotes No Content Matches" ); + ok( !Sizzle.matchesSelector( opt, "[test^='']" ), "Attribute with empty string value does not match startsWith selector (^=)" ); + ok( Sizzle.matchesSelector( opt, "[id=option1a]" ), "Attribute With No Quotes Equals Matches" ); + ok( Sizzle.matchesSelector( document.getElementById("simon1"), "a[href*=#]" ), "Attribute With No Quotes Href Contains Matches" ); + + t( "Empty values", "#select1 option[value='']", ["option1a"] ); + t( "Empty values", "#select1 option[value!='']", ["option1b","option1c","option1d"] ); + + t( "Select options via :selected", "#select1 option:selected", ["option1a"] ); + t( "Select options via :selected", "#select2 option:selected", ["option2d"] ); + t( "Select options via :selected", "#select3 option:selected", ["option3b", "option3c"] ); + t( "Select options via :selected", "select[name='select2'] option:selected", ["option2d"] ); + + t( "Grouped Form Elements", "input[name='foo[bar]']", ["hidden2"] ); + + input = document.getElementById("text1"); + input.attribs.title = "Don't click me"; + + ok( Sizzle.matchesSelector( input, "input[title=\"Don't click me\"]" ), "Quote within attribute value does not mess up tokenizer" ); + + // Uncomment if the boolHook is removed + // var check2 = document.getElementById("check2"); + // check2.checked = true; + // ok( !Sizzle.matches("[checked]", [ check2 ] ), "Dynamic boolean attributes match when they should with Sizzle.matches (#11115)" ); + + // jQuery #12303 + input.attribs["data-pos"] = ":first"; + ok( Sizzle.matchesSelector( input, "input[data-pos=\\:first]"), "POS within attribute value is treated as an attribute value" ); + ok( Sizzle.matchesSelector( input, "input[data-pos=':first']"), "POS within attribute value is treated as an attribute value" ); + ok( Sizzle.matchesSelector( input, ":input[data-pos=':first']"), "POS within attribute value after pseudo is treated as an attribute value" ); + delete input.attribs["data-pos"]; + + // Make sure attribute value quoting works correctly. See jQuery #6093; #6428; #13894 + // Use seeded results to bypass querySelectorAll optimizations + attrbad = jQuery( + "" + + "" + + "" + + "" + + "" + + "" + + "" + + "" + + "" + ).appendTo("#qunit-fixture"); + + t( "Underscores don't need escaping", "input[id=types_all]", ["types_all"] ); + + deepEqual( Sizzle( "input[name=foo\\ bar]", null, null, attrbad ), q("attrbad_space"), + "Escaped space" ); + deepEqual( Sizzle( "input[name=foo\\.baz]", null, null, attrbad ), q("attrbad_dot"), + "Escaped dot" ); + deepEqual( Sizzle( "input[name=foo\\[baz\\]]", null, null, attrbad ), q("attrbad_brackets"), + "Escaped brackets" ); + // deepEqual( Sizzle( "input[data-attr='foo_baz\\']']", null, null, attrbad ), q("attrbad_injection"), + // "Escaped quote + right bracket" ); + + // deepEqual( Sizzle( "input[data-attr='\\'']", null, null, attrbad ), q("attrbad_quote"), + // "Quoted quote" ); + // deepEqual( Sizzle( "input[data-attr='\\\\']", null, null, attrbad ), q("attrbad_backslash"), + // "Quoted backslash" ); + // deepEqual( Sizzle( "input[data-attr='\\\\\\'']", null, null, attrbad ), q("attrbad_backslash_quote"), + // "Quoted backslash quote" ); + // deepEqual( Sizzle( "input[data-attr='\\\\\\\\']", null, null, attrbad ), q("attrbad_backslash_backslash"), + // "Quoted backslash backslash" ); + + // deepEqual( Sizzle( "input[data-attr='\\5C\\\\']", null, null, attrbad ), q("attrbad_backslash_backslash"), + // "Quoted backslash backslash (numeric escape)" ); + // deepEqual( Sizzle( "input[data-attr='\\5C \\\\']", null, null, attrbad ), q("attrbad_backslash_backslash"), + // "Quoted backslash backslash (numeric escape with trailing space)" ); + // deepEqual( Sizzle( "input[data-attr='\\5C\t\\\\']", null, null, attrbad ), q("attrbad_backslash_backslash"), + // "Quoted backslash backslash (numeric escape with trailing tab)" ); + // deepEqual( Sizzle( "input[data-attr='\\04e00']", null, null, attrbad ), q("attrbad_unicode"), + // "Long numeric escape (BMP)" );*/ + document.getElementById("attrbad_unicode").attribs["data-attr"] = "\uD834\uDF06A"; + // It was too much code to fix Safari 5.x Supplemental Plane crashes (see ba5f09fa404379a87370ec905ffa47f8ac40aaa3) + deepEqual( Sizzle( "input[data-attr='\\01D306A']", null, null, attrbad ), q("attrbad_unicode"), + "Long numeric escape (non-BMP)" ); + + attrbad.remove(); + + t( "input[type=text]", "#form input[type=text]", ["text1", "text2", "hidden2", "name"] ); + t( "input[type=search]", "#form input[type=search]", ["search"] ); + t( "script[src] (jQuery #13777)", "#moretests script[src]", ["script-src"] ); + + // #3279 + div = document.createElement("div"); + div.children = helper.getDOM("
      "); + + deepEqual( Sizzle( "[xml\\:test]", div ), [ div.children[0] ], "Finding by attribute with escaped characters." ); + + div = document.getElementById("foo"); + t( "Object.prototype property \"constructor\" (negative)", "[constructor]", [] ); + t( "Gecko Object.prototype property \"watch\" (negative)", "[watch]", [] ); + div.attribs.constructor = "foo"; + div.attribs.watch = "bar"; + t( "Object.prototype property \"constructor\"", "[constructor='foo']", ["foo"] ); + t( "Gecko Object.prototype property \"watch\"", "[watch='bar']", ["foo"] ); + + t( "Value attribute is retrieved correctly", "input[value=Test]", ["text1", "text2"] ); +}); + +test("pseudo - (parent|empty)", function() { + expect( 3 ); + t( "Empty", "ul:empty", ["firstUL"] ); + t( "Empty with comment node", "ol:empty", ["empty"] ); + t( "Is A Parent", "#qunit-fixture p:parent", ["firstp","ap","sndp","en","sap","first"] ); +}); + +test("pseudo - (first|last|only)-(child|of-type)", function() { + expect( 12 ); + + t( "First Child", "p:first-child", ["firstp","sndp"] ); + t( "First Child (leading id)", "#qunit-fixture p:first-child", ["firstp","sndp"] ); + t( "First Child (leading class)", ".nothiddendiv div:first-child", ["nothiddendivchild"] ); + t( "First Child (case-insensitive)", "#qunit-fixture p:FIRST-CHILD", ["firstp","sndp"] ); + + t( "Last Child", "p:last-child", ["sap"] ); + t( "Last Child (leading id)", "#qunit-fixture a:last-child", ["simon1","anchor1","mark","yahoo","anchor2","simon","liveLink1","liveLink2"] ); + + t( "Only Child", "#qunit-fixture a:only-child", ["simon1","anchor1","yahoo","anchor2","liveLink1","liveLink2"] ); + + t( "First-of-type", "#qunit-fixture > p:first-of-type", ["firstp"] ); + t( "Last-of-type", "#qunit-fixture > p:last-of-type", ["first"] ); + t( "Only-of-type", "#qunit-fixture > :only-of-type", ["name+value", "firstUL", "empty", "floatTest", "iframe", "table"] ); + + // Verify that the child position isn't being cached improperly + var secondChildren = jQuery(Sizzle("p:nth-child(2)")).before("
      "); + + t( "No longer second child", "p:nth-child(2)", [] ); + secondChildren.prev().remove(); + // t( "Restored second child", "p:nth-child(2)", ["ap","en"] ); +}); + +test("pseudo - nth-child", function() { + expect( 30 ); + + t( "Nth-child", "p:nth-child(1)", ["firstp","sndp"] ); + t( "Nth-child (with whitespace)", "p:nth-child( 1 )", ["firstp","sndp"] ); + t( "Nth-child (case-insensitive)", "#select1 option:NTH-child(3)", ["option1c"] ); + t( "Not nth-child", "#qunit-fixture p:not(:nth-child(1))", ["ap","en","sap","first"] ); + + t( "Nth-child(2)", "#qunit-fixture form#form > *:nth-child(2)", ["text1"] ); + t( "Nth-child(2)", "#qunit-fixture form#form > :nth-child(2)", ["text1"] ); + + t( "Nth-child(-1)", "#select1 option:nth-child(-1)", [] ); + t( "Nth-child(3)", "#select1 option:nth-child(3)", ["option1c"] ); + // t( "Nth-child(0n+3)", "#select1 option:nth-child(0n+3)", ["option1c"] ); + t( "Nth-child(1n+0)", "#select1 option:nth-child(1n+0)", ["option1a", "option1b", "option1c", "option1d"] ); + t( "Nth-child(1n)", "#select1 option:nth-child(1n)", ["option1a", "option1b", "option1c", "option1d"] ); + t( "Nth-child(n)", "#select1 option:nth-child(n)", ["option1a", "option1b", "option1c", "option1d"] ); + t( "Nth-child(even)", "#select1 option:nth-child(even)", ["option1b", "option1d"] ); + t( "Nth-child(odd)", "#select1 option:nth-child(odd)", ["option1a", "option1c"] ); + t( "Nth-child(2n)", "#select1 option:nth-child(2n)", ["option1b", "option1d"] ); + t( "Nth-child(2n+1)", "#select1 option:nth-child(2n+1)", ["option1a", "option1c"] ); + t( "Nth-child(2n + 1)", "#select1 option:nth-child(2n + 1)", ["option1a", "option1c"] ); + t( "Nth-child(+2n + 1)", "#select1 option:nth-child(+2n + 1)", ["option1a", "option1c"] ); + t( "Nth-child(3n)", "#select1 option:nth-child(3n)", ["option1c"] ); + t( "Nth-child(3n+1)", "#select1 option:nth-child(3n+1)", ["option1a", "option1d"] ); + t( "Nth-child(3n+2)", "#select1 option:nth-child(3n+2)", ["option1b"] ); + t( "Nth-child(3n+3)", "#select1 option:nth-child(3n+3)", ["option1c"] ); + t( "Nth-child(3n-1)", "#select1 option:nth-child(3n-1)", ["option1b"] ); + t( "Nth-child(3n-2)", "#select1 option:nth-child(3n-2)", ["option1a", "option1d"] ); + t( "Nth-child(3n-3)", "#select1 option:nth-child(3n-3)", ["option1c"] ); + t( "Nth-child(3n+0)", "#select1 option:nth-child(3n+0)", ["option1c"] ); + t( "Nth-child(-1n+3)", "#select1 option:nth-child(-1n+3)", ["option1a", "option1b", "option1c"] ); + t( "Nth-child(-n+3)", "#select1 option:nth-child(-n+3)", ["option1a", "option1b", "option1c"] ); + t( "Nth-child(-1n + 3)", "#select1 option:nth-child(-1n + 3)", ["option1a", "option1b", "option1c"] ); + + // deepEqual( Sizzle( ":nth-child(n)", null, null, [ document.createElement("a") ].concat( q("ap") ) ), q("ap"), "Seeded nth-child" ); +}); + +test("pseudo - nth-last-child", function() { + expect( 30 ); + + t( "Nth-last-child", "form:nth-last-child(5)", ["testForm"] ); + t( "Nth-last-child (with whitespace)", "form:nth-last-child( 5 )", ["testForm"] ); + t( "Nth-last-child (case-insensitive)", "#select1 option:NTH-last-child(3)", ["option1b"] ); + t( "Not nth-last-child", "#qunit-fixture p:not(:nth-last-child(1))", ["firstp", "ap", "sndp", "en", "first"] ); + + t( "Nth-last-child(-1)", "#select1 option:nth-last-child(-1)", [] ); + t( "Nth-last-child(3)", "#select1 :nth-last-child(3)", ["option1b"] ); + t( "Nth-last-child(3)", "#select1 *:nth-last-child(3)", ["option1b"] ); + t( "Nth-last-child(3)", "#select1 option:nth-last-child(3)", ["option1b"] ); + // t( "Nth-last-child(0n+3)", "#select1 option:nth-last-child(0n+3)", ["option1b"] ); + t( "Nth-last-child(1n+0)", "#select1 option:nth-last-child(1n+0)", ["option1a", "option1b", "option1c", "option1d"] ); + t( "Nth-last-child(1n)", "#select1 option:nth-last-child(1n)", ["option1a", "option1b", "option1c", "option1d"] ); + t( "Nth-last-child(n)", "#select1 option:nth-last-child(n)", ["option1a", "option1b", "option1c", "option1d"] ); + t( "Nth-last-child(even)", "#select1 option:nth-last-child(even)", ["option1a", "option1c"] ); + t( "Nth-last-child(odd)", "#select1 option:nth-last-child(odd)", ["option1b", "option1d"] ); + t( "Nth-last-child(2n)", "#select1 option:nth-last-child(2n)", ["option1a", "option1c"] ); + t( "Nth-last-child(2n+1)", "#select1 option:nth-last-child(2n+1)", ["option1b", "option1d"] ); + t( "Nth-last-child(2n + 1)", "#select1 option:nth-last-child(2n + 1)", ["option1b", "option1d"] ); + t( "Nth-last-child(+2n + 1)", "#select1 option:nth-last-child(+2n + 1)", ["option1b", "option1d"] ); + t( "Nth-last-child(3n)", "#select1 option:nth-last-child(3n)", ["option1b"] ); + t( "Nth-last-child(3n+1)", "#select1 option:nth-last-child(3n+1)", ["option1a", "option1d"] ); + t( "Nth-last-child(3n+2)", "#select1 option:nth-last-child(3n+2)", ["option1c"] ); + t( "Nth-last-child(3n+3)", "#select1 option:nth-last-child(3n+3)", ["option1b"] ); + t( "Nth-last-child(3n-1)", "#select1 option:nth-last-child(3n-1)", ["option1c"] ); + t( "Nth-last-child(3n-2)", "#select1 option:nth-last-child(3n-2)", ["option1a", "option1d"] ); + t( "Nth-last-child(3n-3)", "#select1 option:nth-last-child(3n-3)", ["option1b"] ); + t( "Nth-last-child(3n+0)", "#select1 option:nth-last-child(3n+0)", ["option1b"] ); + t( "Nth-last-child(-1n+3)", "#select1 option:nth-last-child(-1n+3)", ["option1b", "option1c", "option1d"] ); + t( "Nth-last-child(-n+3)", "#select1 option:nth-last-child(-n+3)", ["option1b", "option1c", "option1d"] ); + t( "Nth-last-child(-1n + 3)", "#select1 option:nth-last-child(-1n + 3)", ["option1b", "option1c", "option1d"] ); + + // deepEqual( Sizzle( ":nth-last-child(n)", null, null, [ document.createElement("a") ].concat( q("ap") ) ), q("ap"), "Seeded nth-last-child" ); +}); + +test("pseudo - nth-of-type", function() { + expect( 9 ); + t( "Nth-of-type(-1)", ":nth-of-type(-1)", [] ); + t( "Nth-of-type(3)", "#ap :nth-of-type(3)", ["mark"] ); + t( "Nth-of-type(n)", "#ap :nth-of-type(n)", ["google", "groups", "code1", "anchor1", "mark"] ); + t( "Nth-of-type(0n+3)", "#ap :nth-of-type(0n+3)", ["mark"] ); + t( "Nth-of-type(2n)", "#ap :nth-of-type(2n)", ["groups"] ); + t( "Nth-of-type(even)", "#ap :nth-of-type(even)", ["groups"] ); + t( "Nth-of-type(2n+1)", "#ap :nth-of-type(2n+1)", ["google", "code1", "anchor1", "mark"] ); + t( "Nth-of-type(odd)", "#ap :nth-of-type(odd)", ["google", "code1", "anchor1", "mark"] ); + t( "Nth-of-type(-n+2)", "#qunit-fixture > :nth-of-type(-n+2)", ["firstp", "ap", "foo", "nothiddendiv", "name+value", "firstUL", "empty", "form", "floatTest", "iframe", "lengthtest", "table"] ); +}); + +test("pseudo - nth-last-of-type", function() { + expect( 9 ); + t( "Nth-last-of-type(-1)", ":nth-last-of-type(-1)", [] ); + t( "Nth-last-of-type(3)", "#ap :nth-last-of-type(3)", ["google"] ); + t( "Nth-last-of-type(n)", "#ap :nth-last-of-type(n)", ["google", "groups", "code1", "anchor1", "mark"] ); + t( "Nth-last-of-type(0n+3)", "#ap :nth-last-of-type(0n+3)", ["google"] ); + t( "Nth-last-of-type(2n)", "#ap :nth-last-of-type(2n)", ["groups"] ); + t( "Nth-last-of-type(even)", "#ap :nth-last-of-type(even)", ["groups"] ); + t( "Nth-last-of-type(2n+1)", "#ap :nth-last-of-type(2n+1)", ["google", "code1", "anchor1", "mark"] ); + t( "Nth-last-of-type(odd)", "#ap :nth-last-of-type(odd)", ["google", "code1", "anchor1", "mark"] ); + t( "Nth-last-of-type(-n+2)", "#qunit-fixture > :nth-last-of-type(-n+2)", ["ap", "name+value", "first", "firstUL", "empty", "floatTest", "iframe", "table", "name-tests", "testForm", "liveHandlerOrder", "siblingTest"] ); +}); + +test("pseudo - has", function() { + expect( 3 ); + + t( "Basic test", "p:has(a)", ["firstp","ap","en","sap"] ); + t( "Basic test (irrelevant whitespace)", "p:has( a )", ["firstp","ap","en","sap"] ); + t( "Nested with overlapping candidates", "#qunit-fixture div:has(div:has(div:not([id])))", [ "moretests", "t2037" ] ); +}); + +test("pseudo - misc", function() { + expect( 39 ); + + var select, tmp, input; + + t( "Headers", ":header", ["qunit-header", "qunit-banner", "qunit-userAgent"] ); + t( "Headers(case-insensitive)", ":Header", ["qunit-header", "qunit-banner", "qunit-userAgent"] ); + 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" ); + + select = document.getElementById("select1"); + ok( Sizzle.matchesSelector( select, ":has(option)" ), "Has Option Matches" ); + + ok( Sizzle("a:contains('')").length, "Empty string contains" ); + t( "Text Contains", "a:contains(Google)", ["google","groups"] ); + t( "Text Contains", "a:contains(Google Groups)", ["groups"] ); + + t( "Text Contains", "a:contains('Google Groups (Link)')", ["groups"] ); + t( "Text Contains", "a:contains(\"(Link)\")", ["groups"] ); + t( "Text Contains", "a:contains(Google Groups (Link))", ["groups"] ); + t( "Text Contains", "a:contains((Link))", ["groups"] ); + + + tmp = document.createElement("div"); + tmp.attribs.id = "tmp_input"; + document.body.children.push( tmp ); + + [ "button", "submit", "reset" ].forEach(function( type ) { + var els = jQuery( + "" + .replace( /%/g, type ) + ).appendTo( tmp ); + + t( "Input Buttons :" + type, "#tmp_input :" + type, [ "input_" + type, "button_" + type ] ); + + ok( Sizzle.matchesSelector( els[0], ":" + type ), "Input Matches :" + type ); + ok( Sizzle.matchesSelector( els[1], ":" + type ), "Button Matches :" + type ); + }); + + document.body.children.pop(); + + // Recreate tmp + tmp = document.createElement("div"); + tmp.attribs.id = "tmp_input"; + tmp.children = helper.getDOM("Hello I am focusable."); + // Setting tabIndex should make the element focusable + // http://dev.w3.org/html5/spec/single-page.html#focus-management + document.body.children.push( tmp ); + tmp.tabIndex = 0; + //tmp.focus(); + if ( document.activeElement !== tmp || (document.hasFocus && !document.hasFocus()) || + (document.querySelectorAll && !document.querySelectorAll("div:focus").length) ) { + ok( true, "The div was not focused. Skip checking the :focus match." ); + ok( true, "The div was not focused. Skip checking the :focus match." ); + } else { + t( "tabIndex element focused", ":focus", [ "tmp_input" ] ); + ok( Sizzle.matchesSelector( tmp, ":focus" ), ":focus matches tabIndex div" ); + } + + // Blur tmp + //tmp.blur(); + //document.body.focus(); + //ok( !Sizzle.matchesSelector( tmp, ":focus" ), ":focus doesn't match tabIndex div" ); + document.body.children.pop(); + + // Input focus/active + input = document.createElement("input"); + input.attribs.type = "text"; + input.attribs.id = "focus-input"; + + document.body.children.push( input ); + //input.focus(); + + // Inputs can't be focused unless the document has focus + if ( document.activeElement !== input || (document.hasFocus && !document.hasFocus()) || + (document.querySelectorAll && !document.querySelectorAll("input:focus").length) ) { + ok( true, "The input was not focused. Skip checking the :focus match." ); + ok( true, "The input was not focused. Skip checking the :focus match." ); + } else { + t( "Element focused", "input:focus", [ "focus-input" ] ); + ok( Sizzle.matchesSelector( input, ":focus" ), ":focus matches" ); + } + + //input.blur(); + + // When IE is out of focus, blur does not work. Force it here. + if ( document.activeElement === input ) { + document.body.focus(); + } + + //ok( !Sizzle.matchesSelector( input, ":focus" ), ":focus doesn't match" ); + document.body.children.pop(); + + + + deepEqual( + Sizzle( "[id='select1'] *:not(:last-child), [id='select2'] *:not(:last-child)", q("qunit-fixture")[0] ), + q( "option1a", "option1b", "option1c", "option2a", "option2b", "option2c" ), + "caching system tolerates recursive selection" + ); + + // Tokenization edge cases + t( "Sequential pseudos", "#qunit-fixture p:has(:contains(mark)):has(code)", ["ap"] ); + t( "Sequential pseudos", "#qunit-fixture p:has(:contains(mark)):has(code):contains(This link)", ["ap"] ); + + // t( "Pseudo argument containing ')'", "p:has(>a.GROUPS[src!=')'])", ["ap"] ); + // t( "Pseudo argument containing ')'", "p:has(>a.GROUPS[src!=')'])", ["ap"] ); + t( "Pseudo followed by token containing ')'", "p:contains(id=\"foo\")[id!=\\)]", ["sndp"] ); + t( "Pseudo followed by token containing ')'", "p:contains(id=\"foo\")[id!=')']", ["sndp"] ); + + t( "Multi-pseudo", "#ap:has(*), #ap:has(*)", ["ap"] ); + //t( "Multi-positional", "#ap:gt(0), #ap:lt(1)", ["ap"] ); + t( "Multi-pseudo with leading nonexistent id", "#nonexistent:has(*), #ap:has(*)", ["ap"] ); + //t( "Multi-positional with leading nonexistent id", "#nonexistent:gt(0), #ap:lt(1)", ["ap"] ); + + t( "Tokenization stressor", "a[class*=blog]:not(:has(*, :contains(!)), :contains(!)), br:contains(]), p:contains(]), :not(:empty):not(:parent)", ["ap", "mark","yahoo","simon"] ); +}); + + +test("pseudo - :not", function() { + expect( 43 ); + + t( "Not", "a.blog:not(.link)", ["mark"] ); + //t( ":not() with :first", "#foo p:not(:first) .link", ["simon"] ); + + t( "Not - multiple", "#form option:not(:contains(Nothing),#option1b,:selected)", ["option1c", "option1d", "option2b", "option2c", "option3d", "option3e", "option4e", "option5b", "option5c"] ); + t( "Not - recursive", "#form option:not(:not(:selected))[id^='option3']", [ "option3b", "option3c"] ); + + t( ":not() failing interior", "#qunit-fixture p:not(.foo)", ["firstp","ap","sndp","en","sap","first"] ); + t( ":not() failing interior", "#qunit-fixture p:not(div.foo)", ["firstp","ap","sndp","en","sap","first"] ); + t( ":not() failing interior", "#qunit-fixture p:not(p.foo)", ["firstp","ap","sndp","en","sap","first"] ); + t( ":not() failing interior", "#qunit-fixture p:not(#blargh)", ["firstp","ap","sndp","en","sap","first"] ); + t( ":not() failing interior", "#qunit-fixture p:not(div#blargh)", ["firstp","ap","sndp","en","sap","first"] ); + t( ":not() failing interior", "#qunit-fixture p:not(p#blargh)", ["firstp","ap","sndp","en","sap","first"] ); + + t( ":not Multiple", "#qunit-fixture p:not(a)", ["firstp","ap","sndp","en","sap","first"] ); + t( ":not Multiple", "#qunit-fixture p:not( a )", ["firstp","ap","sndp","en","sap","first"] ); + t( ":not Multiple", "#qunit-fixture p:not( p )", [] ); + t( ":not Multiple", "#qunit-fixture p:not(a, b)", ["firstp","ap","sndp","en","sap","first"] ); + t( ":not Multiple", "#qunit-fixture p:not(a, b, div)", ["firstp","ap","sndp","en","sap","first"] ); + t( ":not Multiple", "p:not(p)", [] ); + t( ":not Multiple", "p:not(a,p)", [] ); + t( ":not Multiple", "p:not(p,a)", [] ); + t( ":not Multiple", "p:not(a,p,b)", [] ); + t( ":not Multiple", ":input:not(:image,:input,:submit)", [] ); + t( ":not Multiple", "#qunit-fixture p:not(:has(a), :nth-child(1))", ["first"] ); + + t( "No element not selector", ".container div:not(.excluded) div", [] ); + + t( ":not() Existing attribute", "#form select:not([multiple])", ["select1", "select2", "select5"]); + t( ":not() Equals attribute", "#form select:not([name=select1])", ["select2", "select3", "select4","select5"]); + t( ":not() Equals quoted attribute", "#form select:not([name='select1'])", ["select2", "select3", "select4", "select5"]); + + t( ":not() Multiple Class", "#foo a:not(.blog)", ["yahoo", "anchor2"] ); + t( ":not() Multiple Class", "#foo a:not(.link)", ["yahoo", "anchor2"] ); + t( ":not() Multiple Class", "#foo a:not(.blog.link)", ["yahoo", "anchor2"] ); + + t( ":not chaining (compound)", "#qunit-fixture div[id]:not(:has(div, span)):not(:has(*))", ["nothiddendivchild", "divWithNoTabIndex"] ); + t( ":not chaining (with attribute)", "#qunit-fixture form[id]:not([action$='formaction']):not(:button)", ["lengthtest", "name-tests", "testForm"] ); + 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( ":not chaining", "#form select:not(.select1):contains(Nothing) > option:not(option)", [] ); + + /* + t( "positional :not()", "#foo p:not(:last)", ["sndp", "en"] ); + t( "positional :not() prefix", "#foo p:not(:last) a", ["yahoo"] ); + t( "compound positional :not()", "#foo p:not(:first, :last)", ["en"] ); + t( "compound positional :not()", "#foo p:not(:first, :even)", ["en"] ); + t( "compound positional :not()", "#foo p:not(:first, :odd)", ["sap"] ); + t( "reordered compound positional :not()", "#foo p:not(:odd, :first)", ["sap"] ); + + t( "positional :not() with pre-filter", "#foo p:not([id]:first)", ["en", "sap"] ); + t( "positional :not() with post-filter", "#foo p:not(:first[id])", ["en", "sap"] ); + t( "positional :not() with pre-filter", "#foo p:not([lang]:first)", ["sndp", "sap"] ); + t( "positional :not() with post-filter", "#foo p:not(:first[lang])", ["sndp", "en", "sap"] ); + */ +}); + +/* +test("pseudo - position", function() { + expect( 33 ); + + t( "First element", "div:first", ["qunit"] ); + t( "First element(case-insensitive)", "div:fiRst", ["qunit"] ); + t( "nth Element", "#qunit-fixture p:nth(1)", ["ap"] ); + t( "First Element", "#qunit-fixture p:first", ["firstp"] ); + t( "Last Element", "p:last", ["first"] ); + t( "Even Elements", "#qunit-fixture p:even", ["firstp","sndp","sap"] ); + t( "Odd Elements", "#qunit-fixture p:odd", ["ap","en","first"] ); + t( "Position Equals", "#qunit-fixture p:eq(1)", ["ap"] ); + t( "Position Equals (negative)", "#qunit-fixture p:eq(-1)", ["first"] ); + t( "Position Greater Than", "#qunit-fixture p:gt(0)", ["ap","sndp","en","sap","first"] ); + 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" ); + + // jQuery #12526 + var context = jQuery("#qunit-fixture").append("
      ")[0]; + deepEqual( Sizzle( ":last", context ), q("jquery12526"), "Post-manipulation positional" ); +}); +*/ + +test("pseudo - form", function() { + expect( 10 ); + + var extraTexts = jQuery("").appendTo("#form"); + + 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", "#form option:selected", ["option1a","option2d","option3b","option3c","option4b","option4c","option4d","option5a"] ); + 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"] ); + + extraTexts.remove(); +}); + +test("pseudo - :target and :root", function() { + expect( 2 ); + /* // TODO add shim from qwery tests + // Target + var oldHash, + $link = jQuery("").attr({ + href: "#", + id: "new-link" + }).appendTo("#qunit-fixture"); + + oldHash = window.location.hash; + window.location.hash = "new-link"; + + t( ":target", ":target", ["new-link"] ); + + $link.remove(); + window.location.hash = oldHash;*/ + + // Root + equal( Sizzle(":root")[0], document.documentElement, ":root selector" ); +}); + +/* +// TODO +test("pseudo - :lang", function() { + expect( 105 ); + + var docElem = document.documentElement, + docXmlLang = docElem.getAttribute("xml:lang"), + docLang = docElem.lang, + foo = document.getElementById("foo"), + anchor = document.getElementById("anchor2"), + xml = createWithFriesXML(), + testLang = function( text, elem, container, lang, extra ) { + var message, + full = lang + "-" + extra; + + message = "lang=" + lang + " " + text; + container.setAttribute( container.ownerDocument.documentElement.nodeName === "HTML" ? "lang" : "xml:lang", lang ); + assertMatch( message, elem, ":lang(" + lang + ")" ); + assertMatch( message, elem, ":lang(" + mixCase(lang) + ")" ); + assertNoMatch( message, elem, ":lang(" + full + ")" ); + assertNoMatch( message, elem, ":lang(" + mixCase(full) + ")" ); + assertNoMatch( message, elem, ":lang(" + lang + "-)" ); + assertNoMatch( message, elem, ":lang(" + full + "-)" ); + assertNoMatch( message, elem, ":lang(" + lang + "glish)" ); + assertNoMatch( message, elem, ":lang(" + full + "glish)" ); + + message = "lang=" + full + " " + text; + container.setAttribute( container.ownerDocument.documentElement.nodeName === "HTML" ? "lang" : "xml:lang", full ); + assertMatch( message, elem, ":lang(" + lang + ")" ); + assertMatch( message, elem, ":lang(" + mixCase(lang) + ")" ); + assertMatch( message, elem, ":lang(" + full + ")" ); + assertMatch( message, elem, ":lang(" + mixCase(full) + ")" ); + assertNoMatch( message, elem, ":lang(" + lang + "-)" ); + assertNoMatch( message, elem, ":lang(" + full + "-)" ); + assertNoMatch( message, elem, ":lang(" + lang + "glish)" ); + assertNoMatch( message, elem, ":lang(" + full + "glish)" ); + }, + mixCase = function( str ) { + var ret = str.split(""), + i = ret.length; + while ( i-- ) { + if ( i & 1 ) { + ret[i] = ret[i].toUpperCase(); + } + } + return ret.join(""); + }, + assertMatch = function( text, elem, selector ) { + ok( Sizzle.matchesSelector( elem, selector ), text + " match " + selector ); + }, + assertNoMatch = function( text, elem, selector ) { + ok( !Sizzle.matchesSelector( elem, selector ), text + " fail " + selector ); + }; + + // Prefixing and inheritance + ok( Sizzle.matchesSelector( docElem, ":lang(" + docElem.lang + ")" ), "starting :lang" ); + testLang( "document", anchor, docElem, "en", "us" ); + testLang( "grandparent", anchor, anchor.parentNode.parentNode, "yue", "hk" ); + ok( !Sizzle.matchesSelector( anchor, ":lang(en), :lang(en-us)" ), + ":lang does not look above an ancestor with specified lang" ); + testLang( "self", anchor, anchor, "es", "419" ); + ok( !Sizzle.matchesSelector( anchor, ":lang(en), :lang(en-us), :lang(yue), :lang(yue-hk)" ), + ":lang does not look above self with specified lang" ); + + // Searching by language tag + anchor.parentNode.parentNode.lang = "arab"; + anchor.parentNode.lang = anchor.parentNode.id = "ara-sa"; + anchor.lang = "ara"; + deepEqual( Sizzle( ":lang(ara)", foo ), [ anchor.parentNode, anchor ], "Find by :lang" ); + + // Selector validity + anchor.parentNode.lang = "ara"; + anchor.lang = "ara\\b"; + deepEqual( Sizzle( ":lang(ara\\b)", foo ), [], ":lang respects backslashes" ); + deepEqual( Sizzle( ":lang(ara\\\\b)", foo ), [ anchor ], ":lang respects escaped backslashes" ); + raises(function() { + Sizzle.call( null, "dl:lang(c++)" ); + }, function( e ) { + return e.message.indexOf("Syntax error") >= 0; + }, ":lang value must be a valid identifier" ); + + // XML + foo = jQuery( "response", xml )[0]; + anchor = jQuery( "#seite1", xml )[0]; + testLang( "XML document", anchor, xml.documentElement, "en", "us" ); + testLang( "XML grandparent", anchor, foo, "yue", "hk" ); + ok( !Sizzle.matchesSelector( anchor, ":lang(en), :lang(en-us)" ), + "XML :lang does not look above an ancestor with specified lang" ); + testLang( "XML self", anchor, anchor, "es", "419" ); + ok( !Sizzle.matchesSelector( anchor, ":lang(en), :lang(en-us), :lang(yue), :lang(yue-hk)" ), + "XML :lang does not look above self with specified lang" ); + + // Cleanup + if ( docXmlLang == null ) { + docElem.removeAttribute("xml:lang"); + } else { + docElem.setAttribute( "xml:lang", docXmlLang ); + } + docElem.lang = docLang; +}); +*/ + +test("caching", function() { + expect( 1 ); + Sizzle( ":not(code)", document.getElementById("ap") ); + deepEqual( Sizzle( ":not(code)", document.getElementById("foo") ), q("sndp", "en", "yahoo", "sap", "anchor2", "simon"), "Reusing selector with new context" ); +}); +/* +asyncTest( "Iframe dispatch should not affect Sizzle, see jQuery #13936", 1, function() { + var i = 0, + thrown = false, + iframe = document.getElementById("iframe"), + iframeDoc = iframe.contentDocument || iframe.contentWindow.document; + + jQuery( iframe ).on( "load", function() { + var doc; + + try { + i++; + doc = this.contentDocument || this.contentWindow.document; + Sizzle( "form", doc ).pop().submit(); + + } catch ( e ) { + thrown = true; + } + + if ( i === 2 ) { + jQuery( this ).off("load"); + ok( !thrown, "Iframe reload should not affect Sizzle, see jQuery #13936" ); + start(); + } + }); + + iframeDoc.open(); + iframeDoc.write("
      "); + iframeDoc.close(); +}); +*/ \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/test.js b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/test.js new file mode 100644 index 0000000..99a486d --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/test.js @@ -0,0 +1,22 @@ +describe("nwmatcher", function(){ + require("./nwmatcher/"); +}); + +describe("sizzle", function(){ + describe("selector", function(){ + require("./sizzle/selector"); + }); +}); + +describe("qwery", function(){ + exportsRun(require("./qwery/")); +}); + +function exportsRun(mod){ + Object.keys(mod).forEach(function(name){ + if(typeof mod[name] === "object") describe(name, function(){ + exportsRun(mod[name]); + }); + else it(name, mod[name]); + }); +} \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/tools/bench.js b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/tools/bench.js new file mode 100644 index 0000000..ef251b1 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/tools/bench.js @@ -0,0 +1,10 @@ +var ben = require("ben"), + testString = "doo, *#foo > elem.bar[class$=bAz i]:not([ id *= \"2\" ]):nth-child(2n)", + helper = require("./helper.js"), + CSSselect = helper.CSSselect, + compile = CSSselect.compile, + dom = helper.getDefaultDom(); + +//console.log("Parsing took:", ben(1e5, function(){compile(testString);})); +var compiled = compile(testString); +console.log("Executing took:", ben(1e6, function(){CSSselect(compiled, dom);})*1e3); \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/tools/docs/W3C_Selectors.html b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/tools/docs/W3C_Selectors.html new file mode 100644 index 0000000..09c67f3 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/tools/docs/W3C_Selectors.html @@ -0,0 +1,2034 @@ + +Selectors + + + + + + + + +

      W3C +

      Selectors

      +

      W3C Candidate Recommendation 13 November 2001

      +
      +
      This version: +
      + http://www.w3.org/TR/2001/CR-css3-selectors-20011113 +
      Latest version: +
      + http://www.w3.org/TR/css3-selectors +
      Previous version: +
      + http://www.w3.org/TR/2001/WD-css3-selectors-20010126 +
      Editors: +
      Daniel Glazman (Netscape/AOL) +
      Tantek Çelik (Microsoft Corporation) +
      Ian Hickson +
      Peter Linss (former editor, formerly of Netscape/AOL) +
      John Williams (former editor, Quark, Inc.) +
      +
      +
      + +

      Abstract

      +

      CSS (Cascading Style Sheets) is a language for describing the rendering of + HTML and XML + documents on screen, on paper, in speech, etc. To bind style properties + to elements in the document, CSS uses selectors, which are patterns + that match one or more elements. This document describes the selectors that are proposed + for CSS level 3. It includes and extends the selectors of CSS level 2. +

      Status of this document

      +

      This document is one of the "modules" of the upcoming CSS3 specification. It + not only describes the selectors that already exist in CSS1 and CSS2, + but also proposes new selectors for CSS3 as well as for + other languages that may need them. The CSS Working Group doesn't expect that all + implementations of CSS3 will have to implement all selectors. Instead, + there will probably be a small number of variants of CSS3, so-called "profiles". + For example, it may be that only a profile for non-interactive user agents + will include all of the proposed selectors. +

      This specification is being put forth as a Candidate + Recommendation by the CSS Working + Group. This document is a revision of the Working + Draft dated 2001 January 26, and has incorporated suggestions received + during last call review, comments, and further deliberations of the W3C CSS + Working Group. +

      The duration of Candidate Recommendation is expected to last approximately + six months (ending May, 2002). All persons are encouraged + to review and implement this specification and return comments to the (archived) public mailing + list www-style (see instructions). + W3C Members can also send comments directly to the CSS Working Group. +

      Should this specification prove impossible to implement, the Working Group + will return the document to Working Draft status and make necessary changes. + Otherwise, the Working Group anticipates asking the W3C Director to advance + this document to Proposed Recommendation. +

      This is still a draft document and may be updated, replaced, or obsoleted by + other documents at any time. It is inappropriate to cite a W3C Candidate Recommendation + as other than "work in progress." A list of current W3C working drafts + can be found at http://www.w3.org/TR.
      +
      + This document may be available in translation. + The English version of this specification is the only normative version. +

      Dependencies with other CSS3 Modules

      +
        +
      • General Syntax +
      • Value Assignment, Cascade and Inheritance +
      • Generated Content / Markers +
      • User Interface +
      +
      +

      Table of contents

      +
      +

      1. Context

      +

      Members of the CSS+FP Working Group proposed during the Clamart meeting to +modularize the CSS specification. +

      This modularization, and the externalization of the general syntax of CSS +will reduce the size of the specification and allow new specifications +to use selectors and/or CSS general syntax. For instance, behaviors or tree +transformations. +

      This specification contains its own test cases, one test per concept introduced in this document. + These tests are not full conformance tests but are intended to provide users + with a way to check if a part of this specification is implemented ad minima + or is not implemented at all. +

      1.1 Changes from CSS2

      +

      The main differences between the selectors in CSS2 and those in + Selectors are: +

        +
      • the list of basic definitions (selector, group of selectors, simple + selector, etc.) has been clarified +
      • an optional namespace component is now allowed in type element selectors, + the universal selector and attribute selectors +
      • a new combinator +
      • new simple selectors including substring matching attribute selectors, and new + pseudo-classes +
      • new pseudo-elements, and introduction of the "::" convention for pseudo-elements +
      • a rewriting of the selectors grammar +
      • profiles to be added to specifications integrating Selectors and + defining the set of selectors which is actually supported by each + specification +
      • Selectors are now a CSS3 Module and an independent specification. + Other specifications can now refer to this document independently of CSS +
      • the specification now contains its own test suite.
      • +
      +

      2. Selectors

      +

      A Selector represents a structure. This structure can be used +as a condition (e.g. in a CSS rule) that determines which elements +a selector matches in the document tree, or as a flat description of the +HTML or XML fragment corresponding to that structure. +

      Selectors may range from simple element names to rich contextual +representations. +

      The following table summarizes Selector syntax: +

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      PatternMeaningDescribed in sectionFirst defined in CSS level
      *any elementUniversal + selector2
      Ean element of type EType selector1
      E[foo]an E element with a "foo" attributeAttribute + selectors2
      E[foo="bar"]an E element whose "foo" attribute value is exactly + equal to "bar"Attribute + selectors2
      E[foo~="bar"]an E element whose "foo" attribute value is a list of + space-separated values, one of which is exactly equal to "bar"Attribute + selectors2
      E[foo^="bar"]an E element whose "foo" attribute value begins exactly + with the string "bar"Attribute + selectors3
      E[foo$="bar"]an E element whose "foo" attribute value ends exactly + with the string "bar"Attribute + selectors3
      E[foo*="bar"]an E element whose "foo" attribute value contains the + substring "bar"Attribute + selectors3
      E[hreflang|="en"]an E element whose "hreflang" attribute has a hyphen-separated + list of values beginning (from the left) with "en"Attribute + selectors2
      E:rootan E element, root of the documentStructural + pseudo-classes3
      E:nth-child(n)an E element, the n-th child of its parentStructural + pseudo-classes3
      E:nth-last-child(n)an E element, the n-th child of its parent, counting + from the last oneStructural + pseudo-classes3
      E:nth-of-type(n)an E element, the n-th sibling of its typeStructural + pseudo-classes3
      E:nth-last-of-type(n)an E element, the n-th sibling of its type, counting + from the last oneStructural + pseudo-classes3
      E:first-childan E element, first child of its parentStructural + pseudo-classes2
      E:last-childan E element, last child of its parentStructural + pseudo-classes3
      E:first-of-typean E element, first sibling of its typeStructural + pseudo-classes3
      E:last-of-typean E element, last sibling of its typeStructural + pseudo-classes3
      E:only-childan E element, only child of its parentStructural + pseudo-classes3
      E:only-of-typean E element, only sibling of its typeStructural + pseudo-classes3
      E:emptyan E element that has no children (including text + nodes)Structural + pseudo-classes3
      E:link
      E:visited
      an E element being the source anchor of a hyperlink of + which the target is not yet visited (:link) or already visited + (:visited)The link + pseudo-classes1
      E:active
      E:hover
      E:focus
      an E element during certain user actionsThe user + action pseudo-classes1 and 2
      E:targetan E element being the target of the referring URIThe target + pseudo-class3
      E:lang(fr)an element of type E in language "fr" (the document + language specifies how language is determined)The :lang() + pseudo-class 2
      E:enabled
      E:disabled 
      a user interface element E which is enabled or + disabledThe UI element states + pseudo-classes3
      E:checked
      E:indeterminate 
      a user interface element E which is checked or in an + indeterminate state (for instance a radio-button or checkbox)The UI element states + pseudo-classes3
      E:contains("foo")an E element containing the substring "foo" in its textual + contentsContent + pseudo-class3
      E::first-linethe first formatted line of an E elementThe :first-line + pseudo-element1
      E::first-letterthe first formatted letter of an E elementThe :first-letter + pseudo-element1
      E::selectionthe portion of an E element that is currently + selected/highlighted by the userThe UI element + fragments pseudo-elements3
      E::beforegenerated content before an E elementThe :before + pseudo-element2
      E::aftergenerated content after an E elementThe :after + pseudo-element2
      E.warningan E element whose class is +"warning" (the document language specifies how class is determined).Class + selectors1
      E#myidan E element with ID equal to "myid".ID + selectors1
      E:not(s)an E element that does not match simple selector sNegation + pseudo-class3
      E Fan F element descendant of an E elementDescendant + combinator1
      E > Fan F element child of an E elementChild + combinator2
      E + Fan F element immediately preceded by an E elementDirect + adjacent combinator2
      E ~ Fan F element preceded by an E elementIndirect + adjacent combinator3
      +

      The meaning of each selector is derived from the table above by + prepending "matches" to the contents of each cell of the "Meaning" column. +

      3. Case sensitivity

      +

      The case-sensitivity of document language element names in selectors depends +on the document language. For example, in HTML, element names are +case-insensitive, but in XML they are case-sensitive. +

      The case-sensitivity of attribute names and attribute values in attribute +selectors also depends on the document language. +

      4. Selector syntax

      +

      selector is a chain of one or more sequences of simple +selectors separated by combinators. +

      sequence of simple selectors is a chain + of simple selectors that are not separated by a + combinator. It always begins with a type selector or a universal + selector. No other type selector or universal selector is allowed in the + sequence. +

      simple selector is either a type selector, universal selector, attribute selector, ID + selector, content selector, or pseudo-class. One pseudo-element may be appended to the last sequence + of simple selectors. +

      Combinators are: white space, "greater-than sign" (>), + "plus sign" (+) and "tilde" (~). + White space may appear between a combinator and the simple selectors around + it. Only the characters "space" (Unicode code 32), "tab" + (9), "line feed" (10), "carriage return" (13), and "form feed" (12) can occur + in white space. Other space-like characters, such as "em-space" (8195) and "ideographic + space" (12288), are never part of white space. +

      The elements of the document tree represented by a selector are called subjects + of the selector. A selector consisting of a single sequence of simple + selectors represents any element satisfying its requirements. Prepending another + sequence of simple selectors and a combinator to a sequence imposes additional + matching constraints, so the subjects of a selector are always a subset of the + elements represented by the rightmost sequence of simple selectors. +

      Note: an empty selector, containing no sequence + of simple selectors and no combinator, is an invalid + selector. +

      5. Groups of selectors

      +

      When several selectors share the same declarations, they may be grouped into +a comma-separated list. +

      CSS example(s): +

      In this example, we condense three rules with identical declarations into +one. Thus,

      h1 { font-family: sans-serif }
      +h2 { font-family: sans-serif }
      +h3 { font-family: sans-serif }
      is equivalent to:
      h1, h2, h3 { font-family: sans-serif }
      +

      Warning: the equivalence is true in this example because all selectors + are valid selectors. If just one of these selectors is invalid, the entire group + of selectors is invalid thus invalidating the rule for all three heading elements, + whereas only one of the three individual heading rules would be invalid. + +

      6. Simple selectors

      +

      6.1 Type selector

      +

      type selector is the name of a document language element +type. A type selector represents an instance of the element type in the document +tree. +

      Example: +

      The following selector represents an h1 element in the document +tree:

      h1
      +

      6.1.1 Type selectors and Namespaces

      +

      Type selectors allow an optional namespace ([XML-NAMES]) component. + A namespace prefix that has been previously declared + may be prepended to the element name separated by the namespace separator + "vertical bar" (|). The namespace component may be left + empty to indicate that the selector is only to represent elements with no declared + namespace. Furthermore, an asterisk may be used for the namespace prefix, indicating + that the selector represents elements in any namespace (including elements + with no namespace). Element type selectors that have no namespace component + (no namespace separator), represent elements without regard + to the element's namespace (equivalent to "*|") unless a default + namespace has been declared. In that case, the selector will represent only + elements in the default namespace. +

      Note : a type selector containing a namespace prefix that has not been previously + declared is an invalid selector. + The mechanism for declaring a namespace prefix is left up to the language + implementing Selectors. + In CSS, such a mechanism is defined in the General Syntax module. + + +

      It should be noted that if a namespace prefix used in a selector has not been + previously declared, then the selector must be considered invalid and the entire + style rule will be ignored in accordance with the standard + error handling rules. +

      It should further be noted that in a namespace aware client, element type +selectors will only match against the local part of the +element's qualified +name. See below +for notes about matching behaviors in down-level clients. +

      In summary: +

      +
      ns|E +
      elements with name E in namespace ns +
      *|E +
      elements with name E in any namespace, including those without any + declared namespace +
      |E +
      elements with name E without any declared namespace +
      E +
      if no default namespace has been specified, this is equivalent to *|E. + Otherwise it is equivalent to ns|E where ns is the default namespace.
      +
      +

      CSS examples: +

      @namespace foo url(http://www.example.com);
      +
      +foo|h1 { color: blue }
      +
      +foo|* { color: yellow }
      +
      +|h1 { color: red }
      +
      +*|h1 { color: green }
      +
      +h1 { color: green }
      +

      The first rule will match only h1 elements in the "http://www.example.com" + namespace. +

      The second rule will match all elements in the "http://www.example.com" namespace. + +

      The third rule will match only h1 elements without any declared +namespace. +

      The fourth rule will match h1 elements in any namespace (including +those without any declared namespace). +

      The last rule is equivalent to the fourth rule because no default namespace +has been defined.

      +

      6.2 Universal selector

      +

      The universal selector, written "asterisk" (*), + represents the qualified name of any element type. It represents then any single + element in the document tree in any namespace (including those without any declared + namespace) if no default namespace has been specified. If a default namespace + has been specified, see Universal selector and Namespaces below. +

      If the universal selector is not the only component of a sequence of simple +selectors, the * may be omitted. For example: +

      +
        +
      • *[hreflang|=en] and [hreflang|=en] are equivalent, +
      • *.warning and .warning are equivalent, +
      • *#myid and #myid are equivalent.
      +

      Note: it is recommended that the *, representing the +universal selector, not be omitted. +

      6.2.1 Universal selector and Namespaces

      +

      The universal selector allows an optional namespace component. +

      +
      ns|* +
      all elements in namespace ns +
      *|* +
      all elements +
      |* +
      all elements without any declared namespace +
      * +
      if no default namespace has been specified, this is equivalent to *|*. + Otherwise it is equivalent to ns|* where ns is the default namespace.
      +

      Note: a universal selector containing a namespace prefix that has not been + previously declared is an invalid selector. + The mechanism for declaring a namespace prefix is left up to the language + implementing Selectors. + In CSS, such a mechanism is defined in the General Syntax module. + +

      6.3 Attribute selectors

      +

      Selectors allow the representation of an element's attributes. + +

      6.3.1 Attribute presence and values +selectors

      +

      CSS2 introduced four attribute selectors: +

      +
      [att] +
      Represents the att attribute, whatever the value of the + attribute. +
      [att=val] +
      Represents the att attribute with value exactly "val". +
      [att~=val] +
      Represents the att attribute whose value is a space-separated list of words, + one of which is exactly "val". If this selector is used, the + words in the value must not contain spaces (since they are separated by + spaces). +
      [att|=val] +
      Represents the att attribute, its value either being exactly "val" or + beginning with "val" immediately followed by "-". + This is primarily intended to allow language subcode matches + (e.g., the hreflang attribute on the link element in HTML) + as described in RFC 3066 ([RFC3066]). + Note: for lang (or xml:lang) language subcode matching, + please see the :lang pseudo-class. + +
      +

      Attribute values must be identifiers or strings. The case-sensitivity of +attribute names and values in selectors depends on the document language. +

      Examples: +

      For example, the following attribute selector represents an h1 +element that carries the title attribute, whatever its value:

      h1[title]
      +

      In the following example, the selector represents a span element +whose class attribute has exactly the value "example":

      span[class=example]
      + Multiple attribute selectors can be used to represent several attributes of + an element, or several conditions on the same attribute. +

      Here, the selector represents a span element whose hello +attribute has exactly the value "Cleveland" and whose goodbye attribute +has exactly the value "Columbus":

      span[hello="Cleveland"][goodbye="Columbus"]
      +

      The following selectors illustrate the differences between "=" and "~=". + The first selector will represent, for example, the value "copyright copyleft + copyeditor" on a rel attribute. The second selector will only + represent an a element with an href attribute having + the exact value "http://www.w3.org/". +

      a[rel~="copyright"]
      +a[href="http://www.w3.org/"]
      +

      The following selector represents a link element whose + hreflang attribute is exactly "fr". +

      link[hreflang=fr]
      +

      The following selector represents a link element for which the + values of the hreflang attribute begins with "en", including + "en", "en-US", and "en-cockney": +

      link[hreflang|="en"]
      +

      Similarly, the following selectors represents a DIALOGUE element +whenever it has one of two different values for an attribute character: +

      DIALOGUE[character=romeo] 
      +
      +DIALOGUE[character=juliet]
      +

      6.3.2 Substring matching attribute +selectors

      +

      Three additional attribute selectors are provided + for matching substrings in the value of an attribute: +

      +
      [att^=val] +
      Represents the att attribute whose value begins with + the prefix "val" +
      [att$=val] +
      Represents the att attribute whose value ends with the + suffix "val" +
      [att*=val] +
      Represents the att attribute whose value contains at least + one instance of the substring "val"
      +

      Attribute values must be identifiers or strings. The case-sensitivity of +attribute names in selectors depends on the document language. +

      Example: +

      The following selector represents an HTML object, referencing an +image:

      object[type^="image/"]
      +
      +

      The following selector represents an HTML anchor a with an + href attribute whose value ends with ".html". +

      a[href$=".html"]
      +

      The following selector represents a HTML paragraph with a title +attribute whose value contains the substring "hello"

      p[title*="hello"] 
      +

      6.3.3 Attribute selectors and Namespaces

      +

      Attribute selectors allow an optional namespace component to the attribute + name. A namespace prefix that has been previously declared may be prepended + to the attribute name separated by the namespace separator + "vertical bar" (|). In keeping with the Namespaces in + the XML recommendation, default namespaces do not apply to attributes, therefore + attribute selectors without a namespace component apply only to attributes that + have no declared namespace (equivalent to "|attr"). An asterisk + may be used for the namespace prefix indicating that the selector is to match + all attribute names without regard to the attribute's namespace. +

      Note : an attribute + selector with an attribute name containing a namespace prefix that has + not been previously declared is an invalid selector. + The mechanism for declaring a namespace prefix is left up to the language + implementing Selectors. + In CSS, such a mechanism is defined in the General Syntax module. + +

      CSS examples: +

      +
      @namespace foo "http://www.example.com";
      +
      +[foo|att=val] { color: blue }
      +
      +[*|att] { color: yellow }
      +
      +[|att] { color: green }
      +
      +[att] { color: green }
      + The first rule will match only elements with the attribute att + in the "http://www.example.com" namespace with the value "val". +

      The second rule will match only elements with the attribute att +regardless of the namespace of the attribute (including no declared namespace). +

      The last two rules are equivalent and will match only elements with the +attribute att where the attribute is not declared to be in a +namespace.

      +

      6.3.4 Default attribute values in DTDs

      +

      Attribute selectors represent explicitly set attribute values in the document + tree. Default attribute values may be defined in a DTD or elsewhere. + Selectors should be designed so that they work + even if the default values are not included in the document tree. +

      Examples: +

      For example, consider an element EXAMPLE with an attribute +notation that has a default value of "decimal". The DTD fragment +might be

      <!ATTLIST EXAMPLE notation (decimal,octal) "decimal">
      + If the selectors represent an EXAMPLE element when the value of + the attribute is explicitly set: +
      EXAMPLE[notation=decimal]
      +EXAMPLE[notation=octal]
      + then to represent only the case where this attribute is set by default, and + not explicitly, the following selector might be used: +
      EXAMPLE:not([notation])
      +
      +

      6.4 Class selectors

      +

      Working with HTML, authors may use the period (.) notation as + an alternative to the ~= notation when representing the class + attribute. Thus, for HTML, div.value and div[class~=value] + have the same meaning. The attribute value must immediately follow the "period" + (.). Note: UAs may apply selectors using the period (.) notation + in XML documents if the UA has namespace specific knowledge that allows it to + determine which attribute is the "class" attribute for the respective + namespace. One such example of namespace specific knowledge is the prose in + the specification for a particular namespace (e.g. SVG 1.0 [SVG] + describes the SVG + "class" attribute and how a UA should interpret it, and similarly + MathML 1.01 [MATH] describes the MathML + "class" attribute.) +

      +

      Examples: +

      For example, we can represent an arbitrary element with +class~="pastoral" as follows:

      *.pastoral
      or just
      .pastoral
      + The following selector represents an h1 element with class~="pastoral": +
      h1.pastoral
      +

      For example, the following selector represents a p element whose +class attribute has been assigned a list of space-separated values that +includes "pastoral" and "marine":

      p.pastoral.marine
      +

      It is fully identical to:

      p.marine.pastoral
      +

      This selector represents for example a p with class="pastoral + blue aqua marine" or class="marine blue pastoral aqua" but + not class="pastoral blue". +

      +

      6.5 ID selectors

      +

      Document languages may contain attributes that are declared to be of type ID. + What makes attributes of type ID special is that no two such attributes can + have the same value in a document, regardless of the type of the elements that + carry them; whatever the document language, an ID typed attribute can be used + to uniquely identify its element. In HTML all ID attributes are named "id"; + XML applications may name ID attributes differently, but the same restriction + applies. +

      An ID typed attribute of a document language allows authors to assign an identifier + to one element instance in the document tree. W3C ID selectors represent an + element instance based on its identifier. An ID selector contains a "number + sign" (#) immediately followed by the ID value. +

      Examples: +

      The following ID selector represents an h1 element whose ID typed + attribute has the value "chapter1": +

      h1#chapter1
      +

      The following ID selector represents any element whose ID typed attribute + has the value "chapter1": +

      #chapter1
      + The following selector represents any element whose ID typed attribute has the + value "z98y". +
      *#z98y
      +
      Note. In XML 1.0 [XML10], the information about which attribute contains an + element's IDs is contained in a DTD or a schema. When parsing XML, UAs do not + always read the DTD, and thus may not know what the ID of an element is + (though a UA may have namespace specific knowledge that allows it to determine + which attribute is the ID attribute for that namespace). If + a style sheet designer knows or suspects that a UA may not know what the ID of an + element is, he should use normal attribute selectors instead: + [name=p371] instead of #p371. + Elements in XML 1.0 documents without a DTD do not have IDs at all.
      +

      6.6 Pseudo-classes

      +

      The pseudo-class concept is introduced to permit selection based on information + that lies outside of the document tree or that cannot be expressed using the + other simple selectors. +

      A pseudo-class always contains a "colon" (:) followed + by the name of the pseudo-class and optionally by a value between parentheses. + +

      Pseudo-classes are allowed in all sequences of simple selectors contained in + a selector. Pseudo-classes are allowed anywhere in sequences of simple selectors, + after the leading type selector or universal selector (possibly omitted). Pseudo-class + names are case-insensitive. Some pseudo-classes are mutually exclusive, while + others can be applied simultaneously to the same element. Pseudo-classes may + be dynamic, in the sense that an element may acquire or lose a pseudo-class + while a user interacts with the document. +

      6.6.1 Dynamic pseudo-classes

      +

      Dynamic pseudo-classes classify elements on characteristics other than their + name, attributes or content, in principle characteristics that cannot be deduced + from the document tree. +

      Dynamic pseudo-classes do not appear in the document source or document tree. + +

      The link pseudo-classes: :link and :visited
      +

      User agents commonly display unvisited links differently from previously +visited ones. Selectors provides the pseudo-classes :link and +:visited to distinguish them: +

        +
      • The :link pseudo-class applies for links that have not yet been + visited. +
      • The :visited pseudo-class applies once the link has been visited + by the user.
      +
      Note. After some amount of time, user agents may +choose to return a visited link to the (unvisited) ':link' state.
      +

      The two states are mutually exclusive. +

      Example: +

      The following selector represents links carrying class external and +already visited:

      a.external:visited
      +
      The user action pseudo-classes :hover, +:active, and :focus
      +

      Interactive user agents sometimes change the rendering in response to user +actions. Selectors provides three pseudo-classes for the selection of an +element the user is acting on. +

        +
      • The :hover pseudo-class applies while the user designates an + element (with some pointing device), but does not activate it. For example, a + visual user agent could apply this pseudo-class when the cursor (mouse + pointer) hovers over a box generated by the element. User agents not + supporting interactive + media do not have to support this pseudo-class. Some conforming user + agents supporting interactive + media may not be able to support this pseudo-class (e.g., a pen device). +
      • The :active pseudo-class applies while an element is being + activated by the user. For example, between the times the user presses the + mouse button and releases it. +
      • The :focus pseudo-class applies while an element has the focus + (accepts keyboard or mouse events, or other forms of input).
      +

      There may be document language or implementation specific limits on which elements can become +:active or acquire :focus. + +

      These pseudo-classes are not mutually exclusive. An element may match several +of them at the same time. +

      Examples: +
      a:link    /* unvisited links */
      +a:visited /* visited links   */
      +a:hover   /* user hovers     */
      +a:active  /* active links    */
      +

      An example of combining dynamic pseudo-classes:

      a:focus
      +a:focus:hover
      +

      The last selector matches a elements that are in pseudo-class + :focus and in pseudo-class :hover. +

      +
      Note. An element can be both ':visited' and ':active' +(or ':link' and ':active').
      +

      6.6.2 The target pseudo-class :target

      +

      Some URIs refer to a location within a resource. This kind of URI ends with + a "number sign" (#) followed by an anchor identifier + (called the fragment identifier). +

      URIs with fragment identifiers link to a certain element within the document, +known as the target element. For instance, here is a URI pointing to an anchor +named section_2 in a HTML document: +

      http://example.com/html/top.html#section_2
      +

      A target element can be represented by the :target pseudo-class: + +

      p.note:target
      +

      represents a p of class note that is the target element of the + referring URI. +

      CSS example of use of the :target pseudo-class:
      *:target { color : red }
      +
      +*:target::before { content : url(target.png) }
      +

      6.6.3 The language pseudo-class :lang

      +

      If the document language specifies how the human language of an element is + determined, it is possible to write selectors that represent an element based + on its language. For example, in HTML [HTML4.01], the language is determined by a combination of + the lang attribute, the meta element, and possibly + by information from the protocol (such as HTTP headers). XML uses an attribute + called xml:lang, and there may be other document language-specific + methods for determining the language. +

      The pseudo-class :lang(C) represents an element that is in language + C. Here C is a language code as specified in HTML 4.01 [HTML4.01] and RFC 3066 [RFC3066]. +

      Examples: +

      The two following selectors represent an HTML document that is in Belgian + French or German. The two next selectors represent q quotations + in an arbitrary element in Belgian French or German. +

      html:lang(fr-be)
      +html:lang(de)
      +:lang(fr-be) > q
      +:lang(de) > q
      +
      +

      6.6.4 The UI element states pseudo-classes

      +
      The :enabled and :disabled pseudo-classes
      +

      The purpose of the :enabled pseudo-class is to allow authors to + customize the look of user interface elements which are enabled - which the + user can select/activate in some fashion (e.g. clicking on a button with a mouse). + There is a need for such a pseudo-class because there is no way to programmatically + specify the default appearance of say, an enabled input element + without also specifying what it would look like when it was disabled. +

      Similar to :enabled, :disabled allows the author to specify +precisely how a disabled or inactive user interface element should look. +

      It should be noted that most elements will be neither enabled nor disabled. +An element is enabled if the user can either activate it or transfer the focus +to it. An element is disabled if it could be enabled, but the user cannot +presently activate it or transfer focus to it. +

      The :checked pseudo-class
      +

      Radio and checkbox elements can be toggled by the user. Some menu +items are "checked" when the user selects them. When such elements are toggled +"on" the :checked pseudo-class applies. The :checked +pseudo-class initially applies to such elements that have the HTML4 +selected attribute 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. While the +:checked pseudo-class is dynamic in nature, and is altered by user +action, since it can also be based on the presence of the semantic HTML4 +selected attribute, it applies to all media. +

      The :indeterminate pseudo-class
      +

      Radio and checkbox elements can be toggled by the user, but are +sometimes in an indeterminate state, neither checked nor unchecked. This can be +due to an element attribute, or DOM manipulation. The :indeterminate +pseudo-class applies to such elements. While the :indeterminate +pseudo-class is dynamic in nature, and is altered by user action, since it can +also be based on the presence of an element attribute, it applies to all media. + +

      Components of a radio-group initialized with no pre-selected choice are an +example of :indeterminate state. +

      6.6.5 Structural pseudo-classes

      +

      Selectors introduces the concept of structural +pseudo-classes to permit selection based on extra information that lies in +the document tree but cannot be represented by other simple selectors or +combinators. +

      Note that standalone PCDATA are not counted when calculating the position of +an element in the list of children of its parent. When calculating the position +of an element in the list of children of its parent, the index numbering starts +at 1. +

      :root pseudo-class
      +

      The :root pseudo-class represents an element that is the root + of the document. In HTML 4, this is the HTML element. In XML, it + is whatever is appropriate for the DTD or schema and namespace for that XML + document. +

      :nth-child() pseudo-class
      +

      The :nth-child(an+b) pseudo-class notation represents an element + that has an+b-1 siblings before it in the document tree, for + a given positive integer or zero value of n. In other words, this matches the + bth child of an element after all the children have been split into groups of + a elements each. For example, this allows the selectors to address every other + row in a table, and could be used, for example, to alternate the color of paragraph + text in a cycle of four. The a and b values must be zero, negative integers + or positive integers. The index of the first child of an element is 1. +

      In addition to this, :nth-child() can take 'odd' and 'even' for +argument. 'odd' has the same signification as 2n+1, and 'even' has the same +signification as 2n. +

      Examples: +
      tr:nth-child(2n+1) /* represents every odd row of a HTML table */
      +tr:nth-child(odd)  /* same */
      +tr:nth-child(2n)   /* represents every even row of a HTML table */
      +tr:nth-child(even) /* same */
      +
      +/* Alternate paragraph colours in CSS */
      +p:nth-child(4n+1) { color: navy; }
      +p:nth-child(4n+2) { color: green; }
      +p:nth-child(4n+3) { color: maroon; }
      +p:nth-child(4n+4) { color: purple; }
      +
      +

      When a=0, no repeating is used, so for example :nth-child(0n+5) +matches only the fifth child. When a=0, the a part need not be included, so the +syntax simplifies to :nth-child(b) and the last example simplifies +to :nth-child(5). +

      +
      foo:nth-child(0n+1)   /* represents an element foo, first child of its parent element */
      +foo:nth-child(1)      /* same */
      +
      +

      When a=1, the number may be omitted from the rule, +so the following examples are equivalent: +

      +
      bar:nth-child(1n+0)   /* represents all bar elements, specificity (0,1,1) */
      +bar:nth-child(n+0)    /* same */
      +bar:nth-child(n)      /* same */
      +bar                   /* same but lower specificity (0,0,1) */
      +
      +

      If b=0, then every a-th element is picked: +

      +
      tr:nth-child(2n) /* represents every even row of a HTML table */
      +
      +

      If both a and b are equal to zero, the pseudo-class represents no element in +the document tree. +

      The value a can be negative, but only the positive values of an+b, for n>= + 0, may represent an element in the document tree, of course: +

      +
      html|tr:nth-child(-n+6)  /* represents the 6 first rows of XHTML tables */
      +
      +
      :nth-last-child() pseudo-class
      +

      The :nth-last-child(an+b) pseudo-class notation represents an +element that has an+b-1 siblings after it in the document tree, +for a given positive integer or zero value of n. See :nth-child() +pseudo-class for the syntax of its argument. It also accepts the 'even' and +'odd' values for argument. +

      Examples:
      tr:nth-last-child(-n+2)    /* represents the two last rows of a HTML table */
      +
      +foo:nth-last-child(odd)    /* represents all odd foo elements in their parent element,
      +                              counting from the last one */
      +
      :nth-of-type() pseudo-class
      +

      The :nth-of-type(an+b) pseudo-class notation represents an element +that has an+b-1 siblings with the same element name before it +in the document tree, for a given zero or positive integer value of n. In other +words, this matches the bth child of that type after all the children of that +type have been split into groups of a elements each. See +:nth-child() pseudo-class for the syntax of its argument. It also +accepts the 'even' and 'odd' values for argument. +

      For example, this allows in CSS to alternate the position of +floated images:
      img:nth-of-type(2n+1) { float: right; }
      +img:nth-of-type(2n) { float: left; }
      +
      +
      :nth-last-of-type() pseudo-class
      +

      The :nth-last-of-type(an+b) pseudo-class notation represents an +element that has an+b-1 siblings with the same element name +after it in the document tree, for a given zero or positive +integer value of n. See :nth-child() pseudo-class for the syntax of +its argument. It also accepts the 'even' and 'odd' values for argument. +

      For example, to represent all h2 children of a +XHTML body except the first and last, one would use the following +selector:
      body > h2:nth-of-type(n+2):nth-last-of-type(n+2)
      +

      In this case, one could also use :not(), although the selector +ends up being just as long:

      body > h2:not(:first-of-type):not(:last-of-type) 
      +
      :first-child pseudo-class
      +

      Same as :nth-child(1). The :first-child pseudo-class +represents an element that is the first child of some other element. +

      Examples: +

      In the following example, the selector represents a p element that +is the first child of a div element:

      div > p:first-child
      This selector can represent the p +inside the div of the following fragment:
      <p> The last P before the note.</p>
      +<div class="note">
      +   <p> The first P inside the note.</p>
      +</div>
      but cannot represent the second p in the following +fragment:
      <p> The last P before the note.</p>
      +<div class="note">
      +   <h2>Note</h2>
      +   <p> The first P inside the note.</p>
      +</div>
      The following two selectors are equivalent:
      * > a:first-child   /* a is first child of any element */
      +a:first-child       /* Same */
      +
      :last-child pseudo-class
      +

      Same as :nth-last-child(1).The :last-child pseudo-class +represents an element that is the last child of some other element. +

      The following selector represents a list item li that is the last +child of an ordered list ol. +

      Example: +
      ol > li:last-child
      +
      :first-of-type pseudo-class
      +

      Same as :nth-of-type(1).The :first-of-type pseudo-class +represents an element that is the first sibling of its type in the list of +children of its parent element. +

      Example: +

      The following selector represents a definition title dt inside a +definition list dl, this dt being the first of its type in +the list of children of its parent element.

      dl dt:first-of-type
      It is a valid description for the first two +dt in the following example but not for the third one:
      <dl><dt>gigogne</dt>
      +        <dd><dl><dt>fus&eacute;e</dt>
      +                    <dd>multistage rocket</dd>
      +                <dt>table</dt>
      +                    <dd>nest of tables</dd>
      +            </dl></dd>
      +</dl>
      +
      :last-of-type pseudo-class
      +

      Same as :nth-last-of-type(1).The :last-of-type +pseudo-class represents an element that is the last sibling of its type in the +list of children of its parent element. +

      Example: +

      The following selector represents the last data cell td of a table +row.

      tr > td:last-of-type
      +
      :only-child pseudo-class
      +

      Represents an element that has no siblings. Same as +:first-child:last-child or +:nth-child(1):nth-last-child(1), but with a lower specificity. +

      :only-of-type pseudo-class
      +

      Represents an element that has no siblings with the same element name. Same +as :first-of-type:last-of-type or +:nth-of-type(1):nth-last-of-type(1), but with a lower specificity. + +

      :empty pseudo-class
      +

      The :empty pseudo-class represents an element that has no children + at all, including possibly empty text nodes, from a DOM point of view. +

      Examples: +

      p:empty is a valid representation of the following fragment:

      <p></p>
      +

      foo:empty is not a valid representation for the following +fragments:

      <foo>bar</foo>
      <foo><bar>bla</bar></foo>
      <foo>this is not <bar>:empty</bar></foo>
      +

      6.6.6 Content pseudo-class

      +

      The :contains("foo") pseudo-class notation represents an element +whose textual contents contain the given substring. The argument of this +pseudo-class can be a string (surrounded by double quotes) or a keyword. +

      Usage of the content pseudo-class is restricted to static media types (see + [CSS2]). +

      The textual contents of a given element is determined by the concatenation of +all PCDATA contained in the element and sub-elements. +

      Example:
      p:contains("Markup")
      is a correct and valid, but partial, description +of:
      <p><strong>H</strong>yper<strong>t</strong>ext
      +   <strong>M</strong><em>arkup</em>
      +   <strong>L</strong>anguage</p>
      +

      Special characters can be inserted in the argument of a content pseudo-class + using the escape mechanism for Unicode characters and carriage returns. +

      Warning: the selector ul:contains("chief") + will match the list <ul><li>... the greek letter chi</li><li>effective</li></ul> +

      Note: :contains() is a pseudo-class, not a pseudo-element. + The following CSS rule applied to the HTML fragment above will not add a red + background only to the word "Markup" but will add such a background to the whole + paragraph.
      +
      P:contains("Markup") { background-color : red }
      +

      6.6.7 The negation pseudo-class

      +

      The negation pseudo-class is a functional notation taking a simple selector +(excluding the negation pseudo-class itself and pseudo-elements) as an argument. It +represents an element that is not represented by the argument. +

      +

      Examples: +

      The following CSS selector matches all button elements in a HTML +document that are not disabled.

      button:not([DISABLED])
      +

      The following selector represents all but FOO elements.

      *:not(FOO)
      +

      The following group of selectors represents all elements but HTML links.

      html|*:not(:link):not(:visited)
      +
      +

      Note: the :not() pseudo allows useless selectors to be written. + For instance :not(*|*), which represents no element at all, or foo:not(bar), + which is equivalent to foo but with a higher specificity. +

      7. Pseudo-elements

      +

      Pseudo-elements create abstractions about the document tree beyond those +specified by the document language. For instance, document languages do not +offer mechanisms to access the first letter or first line of an element's +content. Pseudo-elements allow designers to refer to this otherwise inaccessible +information. Pseudo-elements may also provide designers a way to refer to +content that does not exist in the source document (e.g., the +::before and ::after pseudo-elements give access to +generated content). +

      A pseudo-element is made of two colons (::) followed by the name of +the pseudo-element. +

      Note: this :: notation is introduced by the current + document in order to establish a discrimination between pseudo-classes and pseudo-elements. + For compatibility with existing style sheets, user agents must also accept the + previous one-colon notation for pseudo-elements introduced in CSS levels 1 and + 2. This compatibility is not allowed for the new pseudo-elements introduced + in CSS level 3. +

      Pseudo-elements may only appear once in the sequence of simple selectors that +represents the subjects of the +selector. +

      7.1 The ::first-line pseudo-element

      +

      The ::first-line pseudo-element describes the first formatted line +of an element. +

      For instance in CSS:

      p::first-line { text-transform: uppercase }
      +
      +

      The above rule means "change the letters of the first line of every paragraph +to uppercase". However, the selector p::first-line does not match +any real HTML element. It does match a pseudo-element that conforming user +agents will insert at the beginning of every paragraph. +

      Note that the length of the first line depends on a number of factors, +including the width of the page, the font size, etc. Thus, an ordinary HTML +paragraph such as:

      <p>This is a somewhat long HTML
      +paragraph that will be broken into several
      +lines. The first line will be identified
      +by a fictional tag sequence. The other lines
      +will be treated as ordinary lines in the
      +paragraph.</p>
      +
      +

      the lines of which happen to be rendered as follows if the style rule above applies: +

      THIS IS A SOMEWHAT LONG HTML PARAGRAPH THAT
      +will be broken into several lines. The first
      +line will be identified by a fictional tag
      +sequence. The other lines will be treated as
      +ordinary lines in the paragraph.
      +
      +

      might be "rewritten" by user agents to include the fictional tag sequence +for ::first-line. This fictional tag sequence helps to show how properties +are inherited. +

      <p><p::first-line> This is a somewhat long HTML
      +paragraph that</p::first-line> will be broken into several
      +lines. The first line will be identified
      +by a fictional tag sequence. The other lines
      +will be treated as ordinary lines in the
      +paragraph.</p>
      +
      +

      If a pseudo-element breaks up a real element, the desired effect can be +described by closing and then re-opening the fictional tag sequence. +Thus, if we mark up the previous paragraph with a span element:

      <p><span class="test"> This is a somewhat</span> long HTML
      +paragraph that will be broken into several
      +lines. The first line will be identified
      +by a fictional tag sequence. The other lines
      +will be treated as ordinary lines in the
      +paragraph.</p>
      +
      +

      the user agent could generate the appropriate start and end tags for the fictional tag sequence for ::first-line. + +

      <p><span class="test"><p::first-line> This is a
      +somewhat</p::first-line></span><p::first-line>
      +long HTML paragraph that</p::first-line> will be broken into
      +several lines. The first line will be identified
      +by a fictional tag sequence. The other lines
      +will be treated as ordinary lines in the
      +paragraph.</p>
      +
      +

      The ::first-line pseudo-element can only be attached to a +block-level element. +

      The ::first-line pseudo-element is similar to an inline-level +element, but with certain restrictions, depending on usage. Only the following +properties apply to a ::first-line pseudo-element: font properties, +color properties, background properties, 'word-spacing', 'letter-spacing', 'text-decoration', 'vertical-align', 'text-transform', 'line-height', 'text-shadow', and 'clear'. +

      7.2 The ::first-letter pseudo-element

      +

      The ::first-letter pseudo-element describes the first formatted + letter of an element. +

      The ::first-letter pseudo-element can be attached to all elements. + +

      The ::first-letter pseudo-element may be used for "initial caps" and +"drop caps", which are common typographical effects. This type of initial letter +is similar to an inline-level element if its CSS 'float' property is 'none', but +with certain restrictions, depending on usage. Otherwise it is similar to a +floated element. +

      These are the CSS properties that apply to ::first-letter +pseudo-elements: font properties, color properties, background properties, +'text-decoration', 'vertical-align' (only if 'float' is 'none'), +'text-transform', 'line-height', margin properties, padding properties, border +properties, 'float', 'text-shadow', and 'clear'. +

      +

      +

      The following CSS2 will make a drop cap initial letter span two lines: +

      <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
      +<HTML>
      + <HEAD>
      +  <TITLE>Drop cap initial letter</TITLE>
      +  <STYLE type="text/css">
      +   P               { font-size: 12pt; line-height: 12pt }
      +   P::first-letter { font-size: 200%; font-style: italic;
      +                     font-weight: bold; float: left }
      +   SPAN            { text-transform: uppercase }
      +  </STYLE>
      + </HEAD>
      + <BODY>
      +  <P><SPAN>The first</SPAN> few words of an article
      +    in The Economist.</P>
      + </BODY>
      +</HTML>
      +
      +

      This example might be formatted as follows: +

      +

      Image illustrating the combined effect of the :first-letter and :first-line pseudo-elements

      +

      The fictional tag sequence is:

      <P>
      +<SPAN>
      +<P::first-letter>
      +T
      +</P::first-letter>he first
      +</SPAN>
      +few words of an article in the Economist.
      +</P>
      +
      +

      Note that the ::first-letter pseudo-element tags abut the content +(e.g., the initial character). When both the ::first-line and the +::first-letter pseudo-elements are used, the ::first-letter +fictional tag sequence is inserted inside the ::first-line +fictional tag sequence.

      +

      In order to achieve traditional drop caps formatting, user agents may +approximate font sizes, for example to align baselines. Also, the glyph outline +may be taken into account when formatting. +

      Punctuation (i.e, characters defined in Unicode [UNICODE] in the "open" (Ps), "close" (Pe), and "other" +(Po) punctuation classes), that precedes the first letter should be included, as +in: +

      +

      Quotes that precede the
+first letter should be included.

      +

      The ::first-letter pseudo-element matches parts of elements +only. +

      Some languages may have specific rules about how to treat certain letter combinations. + In Dutch, for example, if the letter combination "ij" appears at the beginning + of a word, both letters should be considered within the ::first-letter + pseudo-element. The ::first-letter pseudo-element should select + select from beginning of element up to the first non-opening-punctuation character + cluster. +

      +

      +

      The following example illustrates how +overlapping pseudo-elements may interact. The first letter of each +P element will be green with a font size of '24pt'. The rest of the +first formatted line will be 'blue' while the rest of the paragraph will be +'red'.

      P { color: red; font-size: 12pt }
      +P::first-letter { color: green; font-size: 200% }
      +P::first-line { color: blue }
      +
      +<P>Some text that ends up on two lines</P>
      +
      +

      Assuming that a line break will occur before the word "ends", the fictional +tag sequence for this fragment might be:

      <P>
      +<P::first-line>
      +<P::first-letter>
      +S
      +</P::first-letter>ome text that
      +</P::first-line>
      +ends up on two lines
      +</P>
      +
      +

      Note that the::first-letter element is inside the +::first-line element. Properties set on ::first-line are +inherited by ::first-letter, but are overridden if the same property is +set on ::first-letter.

      +

      7.3 The UI element fragments pseudo-elements

      +
      The ::selection pseudo-element
      +

      The ::selection pseudo-element applies to the portion of a document +that has been highlighted by the user. This also applies, for example, to +selected text within an editable text field. This +pseudo-element should not be confused with the :checked +pseudo-class (which used to be named :selected) +

      Although the ::selection pseudo-element is dynamic in nature, + and is altered by user action, it is reasonable to expect that when a UA rerenders + to a static medium (such as a printed page, see [CSS2]) + which was originally rendered to a dynamic medium (like screen), the UA may + wish to transfer the current ::selection state to that other medium, + and have all the appropriate formatting and rendering take effect as well. This + is not required - UAs may omit the ::selection pseudo-element for + static media. +

      These are the CSS properties that apply to ::selection +pseudo-elements: color, cursor, background, outline. The computed value of the 'background-image' property on +::selection may be ignored. +

      7.4 The ::before and ::after pseudo-elements

      +

      The ::before and ::after pseudo-elements can be used to +describe generated content before or after an element's content. They are +explained in the Generated Content/Markers CSS3 Module. +

      When the ::first-letter and ::first-line pseudo-elements +are combined with ::before and ::after, they apply to the +first letter or line of the element including the inserted text. +

      8. Combinators

      +

      8.1 Descendant combinator

      +

      At times, authors may want selectors to describe an element that is the descendant + of another element in the document tree (e.g., "an EM element that + is contained within an H1 element"). Descendant combinators express + such a relationship. A descendant combinator is a white space that separates two sequences of simple selectors. + A selector of the form "A B" represents an element B + that is an arbitrary descendant of some ancestor element A. +

      Examples: +

      For example, consider the following selector:

      h1 em
      + It represents an em element being the descendant of an h1 + element. It is a correct and valid, but partial, description of the following + fragment: +
      <h1>This <span class="myclass">headline 
      +is <em>very</em> important</span></h1>
      The +following selector:
      div * p
      represents a p element that is a grandchild or later +descendant of a div element. Note the white space on either side of the +"*". +

      The following selector, which combines descendant combinators and attribute +selectors, represents an element that (1) has the href attribute +set and (2) is inside a p that is itself inside a div:

      div p *[href]
      +

      8.2 Child combinators

      +

      child combinator describes a childhood relationship between + two elements. A child combinator is made of the "greater-than sign" + (>) character and separates two sequences of simple selectors. + +

      Examples: +

      The following selector represents a p element that is child of +body:

      body > p
      +

      The following example combines descendant combinators and child combinators. +

      div ol>li p
      +

      It represents a p element that is a descendant of an li; +the li element must be the child of an ol element; the +ol element must be a descendant of a div. Notice that the +optional white space around the ">" combinator has been left out. +

      For information on selecting the first child of an element, please see the +section on the :first-child +pseudo-class above.

      +

      8.3 Adjacent sibling combinators

      +

      There are two different adjacent sibling combinators: direct adjacent +combinator and indirect adjacent combinator. +

      8.3.1 Direct adjacent combinators

      +

      Direct adjacent combinators are made of the "plus sign" (+) + character that separates two sequences of simple selectors. The elements represented + by the two sequences share the same parent in the document tree and the element + represented by the first sequence immediately precedes the element represented + by the second one. +

      Examples: +

      Thus, the following selector represents a p element immediately +following a math element:

      math + p
      +

      The following selector is conceptually similar to the one in the previous +example, except that it adds an attribute selector. Thus, it adds a constraint +to the h1 element that must have class="opener":

      h1.opener + h2
      +

      8.3.2 Indirect adjacent combinator

      +

      Indirect adjacent combinators are made of the "tilde" (~) + character that separates two sequences of simple selectors. The elements represented + by the two sequences share the same parent in the document tree and the element + represented by the first sequence precedes (not necessarily immediately) the + element represented by the second one. +

      Example: +
      h1 ~ pre
      represents a pre element following an h1. It +is a correct and valid, but partial, description of:
      <h1>Definition of the function a</h1>
      +<p>Function a(x) has to be applied to all figures in the table.</p>
      +<pre>function a(x) = 12x/13.5</pre>
      +

      9. Calculating a selector's specificity

      +

      A selector's specificity is calculated as follows: +

        +
      • negative selectors are counted like their simple selectors argument +
      • count the number of ID attributes in the selector (= a) +
      • count the number of other attributes and pseudo-classes in the selector (= + b) +
      • count the number of element names in the selector (= c) +
      • ignore pseudo-elements.
      +

      Concatenating the three numbers a-b-c (in a number system with a large base) +gives the specificity. +

      +

      Some examples:

      *               /* a=0 b=0 c=0 -> specificity =   0 */
      +LI              /* a=0 b=0 c=1 -> specificity =   1 */
      +UL LI           /* a=0 b=0 c=2 -> specificity =   2 */
      +UL OL+LI        /* a=0 b=0 c=3 -> specificity =   3 */
      +H1 + *[REL=up]  /* a=0 b=1 c=1 -> specificity =  11 */
      +UL OL LI.red    /* a=0 b=1 c=3 -> specificity =  13 */
      +LI.red.level    /* a=0 b=2 c=1 -> specificity =  21 */
      +#x34y           /* a=1 b=0 c=0 -> specificity = 100 */
      +#s12:not(FOO)   /* a=1 b=0 c=1 -> specificity = 101 */
      +
      +

      Note: the specificity of the styles specified in a HTML +style attribute is described in another CSS3 Module "Cascade and +Inheritance".

      +
      +

      10. The grammar of Selectors

      +

      10.1 Grammar

      +

      The grammar below defines the syntax of Selectors. + It is globally LL(1) and can be locally LL(2) (but note that most UA's should not use it directly, + since it doesn't express the parsing conventions). The format of the productions + is optimized for human consumption and some shorthand notations beyond Yacc + (see [YACC]) are used: +

        +
      • *: 0 or more +
      • +: 1 or more +
      • ?: 0 or 1 +
      • |: separates alternatives +
      • [ ]: grouping
      +

      The productions are: +

      selectors_group
      +  : selector [ ',' S* selector ]*
      +  ;
      +
      +selector
      +  /* there is at least one sequence of simple selectors in a */
      +  /* selector and the pseudo-elements occur only in the last */
      +  /* sequence ; only pseudo-element may occur */
      +  : [ simple_selector_sequence combinator ]*
      +       simple_selector_sequence [ pseudo_element ]?
      +  ;
      +
      +combinator
      +  /* combinators can be surrounded by white space */
      +  : S* [ '+' | '>' | '~' | /* empty */ ] S*
      +  ;
      +
      +simple_selector_sequence
      +  /* the universal selector is optional */
      +  : [ type_selector | universal ]?
      +        [ HASH | class | attrib | pseudo_class | negation ]+ |
      +    type_selector | universal
      +  ;
      +
      +type_selector
      +  : [ namespace_prefix ]? element_name
      +  ;
      +
      +namespace_prefix
      +  : [ IDENT | '*' ]? '|'
      +  ;
      +
      +element_name
      +  : IDENT
      +  ;
      +
      +universal
      +  : [ namespace_prefix ]? '*'
      +  ;
      +
      +class
      +  : '.' IDENT
      +  ;
      +
      +attrib
      +  : '[' S* [ namespace_prefix ]? IDENT S*
      +        [ [ PREFIXMATCH |
      +            SUFFIXMATCH |
      +            SUBSTRINGMATCH |
      +            '=' |
      +            INCLUDES |
      +            DASHMATCH ] S* [ IDENT | STRING ] S*
      +        ]? ']'
      +  ;
      +
      +pseudo_class
      +  /* a pseudo-class is an ident, or a function taking an */
      +  /* ident or a string or a number or a simple selector  */
      +  /* (excluding negation and pseudo-elements) */
      +  /* or a an+b expression for argument */
      +  : ':' [ IDENT | functional_pseudo ]
      +  ;
      +
      +functional_pseudo
      +  : FUNCTION S* [ IDENT | STRING | NUMBER |
      +                  expression | negation_arg ] S* ')'
      +  ;
      +
      +expression
      +  :  [ [ '-' | INTEGER ]? 'n' [ SIGNED_INTEGER ]? ] | INTEGER
      +  ;
      +
      +negation_arg
      +  : type_selector | universal | HASH | class | attrib | pseudo_class
      +  ;
      +
      +pseudo_element
      +  : [ ':' ]? ':' IDENT
      +  ;
      +
      +

      10.2 Lexical scanner

      +

      The following is the tokenizer, written in Flex (see [FLEX]) notation. The tokenizer is case-insensitive. + +

      The two occurrences of "\377" represent the highest character number that +current versions of Flex can deal with (decimal 255). They should be read as +"\4177777" (decimal 1114111), which is the highest possible code point +in Unicode/ISO-10646.

      %option case-insensitive
      +
      +h                       [0-9a-f]
      +nonascii                [\200-\377]
      +unicode                 \\{h}{1,6}[ \t\r\n\f]?
      +escape                  {unicode}|\\[ -~\200-\377]
      +nmstart                 [a-z_]|{nonascii}|{escape}
      +nmchar                  [a-z0-9-_]|{nonascii}|{escape}
      +string1                 \"([\t !#$%&(-~]|\\{nl}|\'|{nonascii}|{escape})*\"
      +string2                 \'([\t !#$%&(-~]|\\{nl}|\"|{nonascii}|{escape})*\'
      +
      +ident                   {nmstart}{nmchar}*
      +name                    {nmchar}+
      +integer                 [-]?[0-9]+
      +signed_integer          [-+][0-9]+
      +num                     {integer}|[0-9]*"."[0-9]+
      +string                  {string1}|{string2}
      +nl                      \n|\r\n|\r|\f
      +%%
      +
      +[ \t\r\n\f]+    {return S;}
      +
      +\/\*[^*]*\*+([^/][^*]*\*+)*\/   /* ignore comments */
      +
      +"~="                    {return INCLUDES;}
      +"|="                    {return DASHMATCH;}
      +"^="                    (return PREFIXMATCH;)
      +"$="                    (return SUFFIXMATCH;)
      +"*="                    (return SUBSTRINGMATCH;)
      +{string}                {return STRING;}
      +{ident}                 {return IDENT;}
      +{ident}"("              {return FUNCTION;}
      +{num}                   {return NUMBER;}
      +{signed_integer}        {return SIGNED_INTEGER;}
      +{integer]               {return INTEGER;}
      +"#"{name}               {return HASH;}
      +
      +.                       {return *yytext;}
      +

      11. Namespaces and Down-Level Clients

      +

      An important issue is the interaction of CSS selectors with XML documents in +web clients that were produced prior to this document. Unfortunately, due to the +fact that namespaces must be matched based on the URI which identifies the +namespace, not the namespace prefix, some mechanism is required to identify +namespaces in CSS by their URI as well. Without such a mechanism, it is +impossible to construct a CSS style sheet which will properly match selectors in +all cases against a random set of XML documents. However, given complete +knowledge of the XML document to which a style sheet is to be applied, and a +limited use of namespaces within the XML document, it is possible to construct a +style sheet in which selectors would match elements and attributes correctly. + +

      It should be noted that a down-level CSS client will (if it properly conforms +to CSS forward compatible parsing rules) ignore all @namespace +at-rules, as well as all style rules that make use of namespace qualified +element type or attribute selectors. The syntax of delimiting namespace prefixes +in CSS was deliberately chosen so that down-level CSS clients would ignore the +style rules rather than possibly match them incorrectly. +

      The use of default namespaces in CSS makes it possible to write element type +selectors that will function in both namespace aware CSS clients as well as +down-level clients. It should be noted that down-level clients may incorrectly +match selectors against XML elements in other namespaces. +

      The following are scenarios and examples in which it is possible to construct +style sheets which would function properly in web clients that do not implement +this proposal. +

        +
      1. The XML document does not use namespaces. +
          +
        • In this case, it is obviously not necessary to declare or use namespaces + in the style sheet. Standard CSS element type and attribute selectors will + function adequately in a down-level client. +
        • In a CSS namespace aware client, the default behavior of element + selectors matching without regard to namespace will function properly + against all elements, since no namespaces are present. However, the use of + specific element type selectors that match only elements that have no + namespace ("|name") will guarantee that selectors will match only + XML elements that do not have a declared namespace.
        +
      2. The XML document defines a single, default namespace used throughout the + document. No namespace prefixes are used in element names. +
          +
        • In this case, a down-level client will function as if namespaces were + not used in the XML document at all. Standard CSS element type and attribute + selectors will match against all elements.
        +
      3. The XML document does not use a default namespace, all namespace + prefixes used are known to the style sheet author and there is a direct mapping + between namespace prefixes and namespace URIs. (A given prefix may only be + mapped to one namespace URI throughout the XML document, there may be multiple + prefixes mapped to the same URI). +
          +
        • In this case, the down-level client will view and match element type and + attribute selectors based on their fully qualified name, not the local part + as outlined in the Type selectors and + Namespaces section. CSS selectors may be declared using an escaped colon + "\:" to describe the fully qualified names, e.g. + "html\:h1" will match <html:h1>. Selectors using the + qualified name will only match XML elements that use the same prefix. Other + namespace prefixes used in the XML that are mapped to the same URI will not + match as expected unless additional CSS style rules are declared for them. +
        • Note that selectors declared in this fashion will only match in + down-level clients. A CSS namespace aware client will match element type and + attribute selectors based on the name's local part. So selectors declared + with the fully qualified name will not match (unless there is no namespace + prefix in the fully qualified name).
      +

      In other scenarios: when the namespace prefixes used in the XML are not known +in advance by the style sheet author; or a combination of elements with no +namespace are used in conjunction with elements using a default namespace; or +the same namespace prefix is mapped to different namespace URIs within +the same document, or in different documents; it is impossible to construct a +CSS style sheet that will function properly against all elements in those +documents, unless, the style sheet is written using a namespace URI syntax (as +outlined in this document or similar) and the document is processed by a CSS and +XML namespace aware client. +

      12. Profiles

      +

      Each specification using Selectors must define the subset of W3C +Selectors it allows and excludes, and describe the local meaning of all the +components of that subset. +

      Non normative examples: +

      + + + + + + + + + + + + + + + +
      Selectors profile
      SpecificationCSS level 1
      Acceptstype selectors
      class selectors
      ID selectors
      :link, + :visited and :active pseudo-classes
      descendant combinator +
      :first-line and :first-letter pseudo-elements 
      Excludes +

      universal selector
      attribute selectors
      :hover and :focus + pseudo-classes
      :target pseudo-class
      :lang() pseudo-class
      all UI + element states pseudo-classes
      all structural + pseudo-classes
      :contains() pseudo-class
      negation pseudo-class
      all + UI element fragments pseudo-elements
      ::before and ::after + pseudo-elements
      child combinators
      adjacent sibling combinators +

      namespaces

      Extra constraintsonly one class selector allowed per sequence of simple + selectors

       
        + + + + + + + + + + + + + + + +
      Selectors profile
      SpecificationCSS level 2
      Acceptstype selectors
      universal selector
      attribute presence and + values selectors
      class selectors
      ID selectors
      :link, :visited, + :active, :hover, :focus, :lang() and :first-child pseudo-classes +
      descendant combinator
      child combinator
      adjacent direct + combinator
      ::first-line and ::first-letter pseudo-elements
      ::before + and ::after pseudo-elements
      Excludes +

      content selectors
      substring matching attribute selectors
      :target + pseudo-classes 
      all UI element states pseudo-classes
      all + structural pseudo-classes other than :first-child
      :contains() + pseudo-class
      negation pseudo-class
      all UI element fragments + pseudo-elements
      adjacent indirect combinators +

      namespaces

      Extra constraintsmore than one class selector per sequence of simple selectors (CSS1 + constraint) allowed
      +

      In CSS, selectors express pattern matching rules that determine which style +rules apply to elements in the document tree. +

      The following selector (CSS level 2) will match all anchors a +with attribute name set inside a section 1 header h1:

      h1 a[name]
      +

      All CSS declarations attached to such a selector are applied to elements +matching it.

      +
      + + + + + + + + + + + + + + + + +
      Selectors profile
      SpecificationSTTS 3
      Accepts +

      type selectors
      universal selectors
      attribute selectors
      class + selectors
      ID selectors
      all structural pseudo-classes
      + :contains() pseudo-class
      + all combinators +

      namespaces

      Excludesnon accepted pseudo-classes
      pseudo-elements
      Extra constraintssome selectors and combinators are not allowed in fragment + descriptions on the right side of STTS declarations.
      +

      Selectors can be used in STTS 3 in two different + manners: +

        +
      1. a selection mechanism equivalent to CSS selection mechanism: declarations + attached to a given selector are applied to elements matching that selector, +
      2. fragment descriptions that appear on the right side of declarations. +
      +

      13. Conformance and Requirements

      +

      This section defines conformance with the present specification only. +

      The inability of a user agent to implement part of this specification due to +the limitations of a particular device (e.g., non interactive user agents will +probably not implement dynamic pseudo-classes because they make no sense without +interactivity) does not imply non-conformance. +

      All specifications reusing Selectors must contain a Profile listing the +subset of Selectors it accepts or excludes, and describing the constraints +it adds to the current specification. +

      Invalidity is caused by a parsing error, e.g. an unrecognized token or a token +which is not allowed at the current parsing point. +

      User agents must observe the rules for handling parsing errors: +

        +
      • a simple selector containing an undeclared namespace prefix is invalid
      • +
      • a selector containing an invalid simple selector, an invalid combinator + or an invalid token is invalid.
      • +
      • a group of selectors containing an invalid selector is invalid.
      • +
      +

      Implementations of this specification must behave as "recipients +of text data" as defined by +[CWWW] +when parsing selectors and attempting matches. (In particular, implementations must assume +the data is normalized and must not normalize it.) Normative rules +for matching strings are defined in +[CWWW] +and [UNICODE] +and apply to implementations of this specification. + +

      14. Tests

      +

      This specification contains a test suite allowing user agents to verify their +basic conformance to the specification. This test suite does not pretend to be +exhaustive and does not cover all possible combined cases of Selectors. +

      These tests are available [link forthcoming]. +

      15. Acknowledgements

      +

      This specification is the product of the W3C Working Group on Cascading Style +Sheets and Formatting Properties. In addition to the editors of this +specification, the members of the Working Group are: +

        +
      • Marc Attinasi (Netscape/AOL) +
      • Bert Bos (W3C) +
      • Tantek Çelik (Microsoft Corp.) +
      • Don Day (IBM) +
      • Martin Dürst (W3C) +
      • Angel Diaz (IBM) +
      • Daniel Glazman (Netscape/AOL from November 2000, and Electricité de France + until February 2000) +
      • Håkon W. Lie (Opera Software from April 1999, and W3C until April 1999) +
      • Chris Lilley (W3C) +
      • Dave Raggett (W3C/Openwave Systems Inc.) +
      • Pierre Saslawsky (Netscape/AOL) +
      • Robert Stevahn (Hewlett-Packard) +
      • Michel Suignard (Microsoft Corp.) +
      • Ted Wugofski (Openwave Systems Inc.) +
      • Steve Zilles (Adobe)
      +

      A number of invited experts to the Working Group have significantly contributed + to CSS3: L. David Baron, Tim Boland (NIST), Todd Fahrner, Daniel Glazman, Ian + Hickson, Eric Meyer (The OPAL Group), Jeff Veen. +

      Former members of the Working Group: +

        +
      • Chris Brichford (Adobe) +
      • Troy Chevalier (Netscape/AOL) +
      • Dwayne Dicks (SoftQuad) +
      • Ian Jacobs (W3C) +
      • Lorin Jurow (Quark) +
      • Sho Kuwamoto (Macromedia) +
      • Peter Linss (Netscape/AOL) +
      • Steven Pemberton (CWI) +
      • Robert Pernett (Lotus) +
      • Douglas Rand (SGI) +
      • Nisheeth Ranjan (Netscape/AOL) +
      • Ed Tecot (Microsoft Corp.) +
      • Jared Sorensen (Novell) +
      • Mike Wexler (Adobe) +
      • John Williams (Quark) +
      • Chris Wilson (Microsoft Corp.)
      +

      We thank all of them (members, invited experts and former members) for their +efforts. +

      Of course, this document derives from the CSS Level 1 and CSS level 2 +Recommendations. We thank all CSS1 and CSS2 authors, editors and +contributors. +

      Dr. Hasan Ali Çelik suggested the simple and powerful syntax of the argument +for :nth-child() while the Working Group was considering much more complex +solutions. +

      The discussions on www-style@w3.org have been influential in many key issues. + Especially, we would like to thank Ian Graham, David Baron, Björn Höhrmann, + fantasai, Jelks Cabanis and Matthew Brealey for their active and useful + participation. +

      16. References

      +
        +
      1. [CSS1] Bert Bos, Håkon Wium Lie; "Cascading Style + Sheets, level 1", W3C Recommendation, 17 Dec 1996, revised 11 Jan 1999
        + (http://www.w3.org/TR/REC-CSS1) +
      2. [CSS2] Bert Bos, Håkon Wium Lie, Chris Lilley, Ian + Jacobs, editors; "Cascading Style Sheets, level 2", W3C Recommendation, + 12 May 1998
        + (http://www.w3.org/TR/REC-CSS2/) +
      3. [CWWW] Martin J. Dürst, François Yergeau, Misha Wolf, + Asmus Freytag, Tex Texin, editors; "Character Model for the World Wide + Web", W3C Working Draft, 26 January 2001
        + (http://www.w3.org/TR/2001/WD-charmod-20010126) +
      4. [FLEX] "Flex: The Lexical Scanner Generator", + Version 2.3.7, ISBN 1882114213
      5. +
      6. [HTML4.01] Dave Ragget, Arnaud Le Hors, Ian Jacobs, + editors; "HTML 4.01 Specification", W3C Recommendation, 24 December + 1999
        + (http://www.w3.org/TR/html401/)
      7. +
      8. [MATH] Patrick Ion, Robert Miner; "Mathematical + Markup Language (MathML) 1.01", W3C Recommendation, revision of 7 + July 1999
        + (http://www.w3.org/1999/07/REC-MathML-19990707)
        +
      9. +
      10. [NMSP] Peter Linss, editor; "CSS Namespace + Enhancements (Proposal)", W3C Working Draft, 25 June 1999
        + (http://www.w3.org/1999/06/25/WD-css3-namespace-19990625/) +
      11. +
      12. [RFC3066] H. Alvestrand; "Tags for the Identification + of Languages", Request for Comments 3066, January 2001
        + (http://www.ietf.org/rfc/rfc3066.txt) +
      13. +
      14. [STTS3] Daniel Glazman ; "Simple Tree Transformation + Sheets 3", Electricité de France, submission to the W3C, 11 Nov + 1998
        + (http://www.w3.org/TR/NOTE-STTS3) +
      15. [SVG] Jon Ferraiolo ed.; "Scalable Vector Graphics + (SVG) 1.0 Specification", W3C Proposed Recommendation, 19 July 2001
        + (http://www.w3.org/TR/2001/PR-SVG-20010719)
        +
      16. [UI] Tantek Çelik, editor; "User Interface + for CSS3", W3C Working Draft, 16 February 2000
        + (http://www.w3.org/TR/2000/WD-css3-userint-20000216) +
      17. [UNICODE] "The Unicode Standard: Version 3.0.1", + The Unicode Consortium, Addison Wesley Longman, 2000, ISBN 0-201-61633-5.
        + URL: http://www.unicode.org/unicode/standard/versions/Unicode3.0.1.html.
        + The latest version of Unicode. For more information, consult the Unicode Consortium's + home page at http://www.unicode.org/. +
      18. [XML-NAMES] Tim Bray, Dave Hollander, Andrew Layman, + editors; "Namespaces in XML", W3C Recommendation, 14 January 1999
        + (http://www.w3.org/TR/REC-xml-names/)
      19. +
      20. [YACC] "YACC - Yet another compiler compiler", + S. C. Johnson, Technical Report, Murray Hill, 1975
      21. +
      + + + \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/tools/helper.js b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/tools/helper.js new file mode 100644 index 0000000..0b08e98 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/tools/helper.js @@ -0,0 +1,51 @@ +var fs = require("fs"), + path = require("path"), + htmlparser2 = require("htmlparser2"), + DomUtils = htmlparser2.DomUtils, + CSSselect = require("../../"); + +function getDOMFromPath(path, options){ + return htmlparser2.parseDOM(fs.readFileSync(path).toString(), options); +} + +module.exports = { + CSSselect: CSSselect, + getFile: function(name, options){ + return getDOMFromPath(path.join(__dirname, "docs", name), options); + }, + getDOMFromPath: getDOMFromPath, + getDOM: htmlparser2.parseDOM, + getDefaultDom: function(){ + return htmlparser2.parseDOM( + " This is some simple text " + ); + }, + getDocument: function(path){ + var document = getDOMFromPath(path); + + document.getElementsByTagName = function(name){ + return DomUtils.getElementsByTagName("*", document); + }; + document.getElementById = function(id){ + return DomUtils.getElementById(id, document); + }; + document.createTextNode = function(content){ + return { + type: "text", + data: "content" + }; + }; + document.createElement = function(name){ + return { + type: "tag", + name: name, + children: [], + attribs: {} + }; + }; + document.body = DomUtils.getElementsByTagName("body", document, true, 1)[0]; + document.documentElement = document.filter(DomUtils.isTag)[0]; + + return document; + } +}; \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/tools/slickspeed.js b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/tools/slickspeed.js new file mode 100644 index 0000000..8602775 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/test/tools/slickspeed.js @@ -0,0 +1,76 @@ +var helper = require("./helper.js"), + doc = helper.getFile("W3C_Selectors.html"), + CSSselect = helper.CSSselect, + soupselect = require("cheerio-soupselect"), + selectors = ["body", "div", "body div", "div p", "div > p", "div + p", "div ~ p", "div[class^=exa][class$=mple]", "div p a", "div, p, a", ".note", "div.example", "ul .tocline2", "div.example, div.note", "#title", "h1#title", "div #title", "ul.toc li.tocline2", "ul.toc > li.tocline2", "h1#title + div > p", "h1[id]:contains(Selectors)", "a[href][lang][class]", "div[class]", "div[class=example]", "div[class^=exa]", "div[class$=mple]", "div[class*=e]", "div[class|=dialog]", "div[class!=made_up]", "div[class~=example]"/*, "div:not(.example)", "p:contains(selectors)", "p:nth-child(even)", "p:nth-child(2n)", "p:nth-child(odd)", "p:nth-child(2n+1)", "p:nth-child(n)", "p:only-child", "p:last-child", "p:first-child"*/]; + +var engines = [function(a,b){return CSSselect(b,a);}, soupselect.select]; + +//returns true when an error occurs +function testResult(rule, index){ + var results = engines + .map(function(func){ return func(doc, rule); }); + + //check if both had the same result + for(var i = 1; i < results.length; i++){ + //TODO: might be hard to debug with more engines + if(results[i-1].length !== results[i].length){ + //console.log(rule, results[i-1].length, results[i].length); + return true; + } + for(var j = 0; j < results[i].length; j++){ + if(results[i-1][j] !== results[i][j]){ + if(results[i-1].indexOf(results[i][j]) === -1){ + return true; + } + } + } + //require("assert").deepEqual(results[i-1], results[i], rule + ": not the same elements"); + } + + return false; +} + +selectors.filter(testResult).forEach(function(rule){ print(rule, "failed!\n"); }); + +process.exit(0); //don't run speed tests + +print("-----\n\nChecking performance\n\n"); + +//test the speed +var ben = require("ben"); + +function testSpeed(rule){ + print(rule, Array(28-rule.length).join(" ")); + + var results = engines + .map(function(func){ return function(){ return func(doc, rule); }}); + + //also add a precompiled CSSselect test + var compiled = CSSselect(rule); + results.unshift(function(){ return CSSselect.iterate(compiled, doc); }); + + results = results.map(ben); + + var min = Math.min.apply(null, results); + var max = Math.max.apply(null, results); + + results.forEach(function(result){ + if(result === min) return print(" +", result, "+"); + if(result === max) return print(" !", result, "!"); + if(Math.abs(result-min) > Math.abs(result-max)){ + return print(" =", result, "="); + } + print(" ~", result, "~"); + }); + + print("\n"); +} + +print("RULE ", "CSSselect (pc)", "CSSselect", "soupselect\n"); + +selectors.forEach(testSpeed); + +function print(){ + process.stdout.write(Array.prototype.join.call(arguments, " ")); +} \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/cheerio-select/package.json b/node_modules/cheerio/node_modules/cheerio-select/package.json new file mode 100644 index 0000000..87d73c6 --- /dev/null +++ b/node_modules/cheerio/node_modules/cheerio-select/package.json @@ -0,0 +1,50 @@ +{ + "name": "cheerio-select", + "version": "0.0.3", + "description": "Selector engine for cheerio", + "keywords": [], + "author": { + "name": "Matt Mueller", + "email": "mattmuelle@gmail.com" + }, + "dependencies": { + "CSSselect": "0.x" + }, + "devDependencies": { + "mocha": "*", + "cheerio": "*", + "expect.js": "*", + "underscore": "*" + }, + "main": "index", + "engines": { + "node": ">= 0.4.7" + }, + "scripts": { + "test": "make test" + }, + "_npmUser": { + "name": "mattmueller", + "email": "mattmuelle@gmail.com" + }, + "_id": "cheerio-select@0.0.3", + "optionalDependencies": {}, + "_engineSupported": true, + "_npmVersion": "1.1.16", + "_nodeVersion": "v0.6.6", + "_defaultsLoaded": true, + "dist": { + "shasum": "3f2420114f3ccb0b1b075c245ccfaae5d617a388", + "tarball": "http://registry.npmjs.org/cheerio-select/-/cheerio-select-0.0.3.tgz" + }, + "maintainers": [ + { + "name": "mattmueller", + "email": "mattmuelle@gmail.com" + } + ], + "directories": {}, + "_shasum": "3f2420114f3ccb0b1b075c245ccfaae5d617a388", + "_from": "cheerio-select@*", + "_resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-0.0.3.tgz" +} diff --git a/node_modules/cheerio/node_modules/entities/LICENSE b/node_modules/cheerio/node_modules/entities/LICENSE new file mode 100644 index 0000000..c464f86 --- /dev/null +++ b/node_modules/cheerio/node_modules/entities/LICENSE @@ -0,0 +1,11 @@ +Copyright (c) Felix Böhm +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/cheerio/node_modules/entities/compile.js b/node_modules/cheerio/node_modules/entities/compile.js new file mode 100644 index 0000000..d547fa1 --- /dev/null +++ b/node_modules/cheerio/node_modules/entities/compile.js @@ -0,0 +1,64 @@ +var modes = ["XML", "HTML4", "HTML5"]; + +modes.reduce(function(prev, name, i){ + var obj = require("./entities/" + name.toLowerCase() + ".json"); + + if(prev){ + Object.keys(prev).forEach(function(name){ + obj[name] = prev[name]; + }); + } + + var inverse = getInverse(obj); + + module.exports[name] = { + strict: getStrictReplacer(obj), + //there is no non-strict mode for XML + normal: i === 0 ? null : getReplacer(obj), + inverse: getInverseReplacer(inverse), + inverseObj: inverse, + obj: obj + }; + + return obj; +}, null); + +function sortDesc(a, b){ + return a < b ? 1 : -1; +} + +function getReplacer(obj){ + var keys = Object.keys(obj).sort(sortDesc); + var re = keys.join("|")//.replace(/(\w+);\|\1/g, "$1;?"); + + // also match hex and char codes + re += "|#[xX][\\da-fA-F]+;?|#\\d+;?"; + + return new RegExp("&(?:" + re + ")", "g"); +} + +function getStrictReplacer(obj){ + var keys = Object.keys(obj).sort(sortDesc).filter(RegExp.prototype.test, /;$/); + var re = keys.map(function(name){ + return name.slice(0, -1); //remove trailing semicolon + }).join("|"); + + // also match hex and char codes + re += "|#[xX][\\da-fA-F]+|#\\d+"; + + return new RegExp("&(?:" + re + ");", "g"); +} + +function getInverse(obj){ + return Object.keys(obj).filter(function(name){ + //prefer identifiers with a semicolon + return name.substr(-1) === ";" || obj[name + ";"] !== obj[name]; + }).reduce(function(inverse, name){ + inverse[obj[name]] = name; + return inverse; + }, {}); +} + +function getInverseReplacer(inverse){ + return new RegExp("\\" + Object.keys(inverse).sort().join("|\\"), "g"); +} diff --git a/node_modules/cheerio/node_modules/entities/entities/html4.json b/node_modules/cheerio/node_modules/entities/entities/html4.json new file mode 100644 index 0000000..0253d1a --- /dev/null +++ b/node_modules/cheerio/node_modules/entities/entities/html4.json @@ -0,0 +1 @@ +{"Aacute;":"\u00C1","Aacute":"\u00C1","aacute;":"\u00E1","aacute":"\u00E1","Acirc;":"\u00C2","Acirc":"\u00C2","acirc;":"\u00E2","acirc":"\u00E2","acute;":"\u00B4","acute":"\u00B4","AElig;":"\u00C6","AElig":"\u00C6","aelig;":"\u00E6","aelig":"\u00E6","Agrave;":"\u00C0","Agrave":"\u00C0","agrave;":"\u00E0","agrave":"\u00E0","alefsym;":"\u2135","Alpha;":"\u0391","alpha;":"\u03B1","amp":"\u0026","and;":"\u2227","ang;":"\u2220","apos":"\u0027","Aring;":"\u00C5","Aring":"\u00C5","aring;":"\u00E5","aring":"\u00E5","asymp;":"\u2248","Atilde;":"\u00C3","Atilde":"\u00C3","atilde;":"\u00E3","atilde":"\u00E3","Auml;":"\u00C4","Auml":"\u00C4","auml;":"\u00E4","auml":"\u00E4","bdquo;":"\u201E","Beta;":"\u0392","beta;":"\u03B2","brvbar;":"\u00A6","brvbar":"\u00A6","bull;":"\u2022","cap;":"\u2229","Ccedil;":"\u00C7","Ccedil":"\u00C7","ccedil;":"\u00E7","ccedil":"\u00E7","cedil;":"\u00B8","cedil":"\u00B8","cent;":"\u00A2","cent":"\u00A2","Chi;":"\u03A7","chi;":"\u03C7","circ;":"\u02C6","clubs;":"\u2663","cong;":"\u2245","copy;":"\u00A9","copy":"\u00A9","crarr;":"\u21B5","cup;":"\u222A","curren;":"\u00A4","curren":"\u00A4","dagger;":"\u2020","Dagger;":"\u2021","darr;":"\u2193","dArr;":"\u21D3","deg;":"\u00B0","deg":"\u00B0","Delta;":"\u0394","delta;":"\u03B4","diams;":"\u2666","divide;":"\u00F7","divide":"\u00F7","Eacute;":"\u00C9","Eacute":"\u00C9","eacute;":"\u00E9","eacute":"\u00E9","Ecirc;":"\u00CA","Ecirc":"\u00CA","ecirc;":"\u00EA","ecirc":"\u00EA","Egrave;":"\u00C8","Egrave":"\u00C8","egrave;":"\u00E8","egrave":"\u00E8","empty;":"\u2205","emsp;":"\u2003","ensp;":"\u2002","Epsilon;":"\u0395","epsilon;":"\u03B5","equiv;":"\u2261","Eta;":"\u0397","eta;":"\u03B7","ETH;":"\u00D0","ETH":"\u00D0","eth;":"\u00F0","eth":"\u00F0","Euml;":"\u00CB","Euml":"\u00CB","euml;":"\u00EB","euml":"\u00EB","euro;":"\u20AC","exist;":"\u2203","fnof;":"\u0192","forall;":"\u2200","frac12;":"\u00BD","frac12":"\u00BD","frac14;":"\u00BC","frac14":"\u00BC","frac34;":"\u00BE","frac34":"\u00BE","frasl;":"\u2044","Gamma;":"\u0393","gamma;":"\u03B3","ge;":"\u2265","gt":"\u003E","harr;":"\u2194","hArr;":"\u21D4","hearts;":"\u2665","hellip;":"\u2026","Iacute;":"\u00CD","Iacute":"\u00CD","iacute;":"\u00ED","iacute":"\u00ED","Icirc;":"\u00CE","Icirc":"\u00CE","icirc;":"\u00EE","icirc":"\u00EE","iexcl;":"\u00A1","iexcl":"\u00A1","Igrave;":"\u00CC","Igrave":"\u00CC","igrave;":"\u00EC","igrave":"\u00EC","image;":"\u2111","infin;":"\u221E","int;":"\u222B","Iota;":"\u0399","iota;":"\u03B9","iquest;":"\u00BF","iquest":"\u00BF","isin;":"\u2208","Iuml;":"\u00CF","Iuml":"\u00CF","iuml;":"\u00EF","iuml":"\u00EF","Kappa;":"\u039A","kappa;":"\u03BA","Lambda;":"\u039B","lambda;":"\u03BB","lang;":"\u27E8","laquo;":"\u00AB","laquo":"\u00AB","larr;":"\u2190","lArr;":"\u21D0","lceil;":"\u2308","ldquo;":"\u201C","le;":"\u2264","lfloor;":"\u230A","lowast;":"\u2217","loz;":"\u25CA","lrm;":"\u200E","lsaquo;":"\u2039","lsquo;":"\u2018","lt":"\u003C","macr;":"\u00AF","macr":"\u00AF","mdash;":"\u2014","micro;":"\u00B5","micro":"\u00B5","middot;":"\u00B7","middot":"\u00B7","minus;":"\u2212","Mu;":"\u039C","mu;":"\u03BC","nabla;":"\u2207","nbsp;":"\u00A0","nbsp":"\u00A0","ndash;":"\u2013","ne;":"\u2260","ni;":"\u220B","not;":"\u00AC","not":"\u00AC","notin;":"\u2209","nsub;":"\u2284","Ntilde;":"\u00D1","Ntilde":"\u00D1","ntilde;":"\u00F1","ntilde":"\u00F1","Nu;":"\u039D","nu;":"\u03BD","Oacute;":"\u00D3","Oacute":"\u00D3","oacute;":"\u00F3","oacute":"\u00F3","Ocirc;":"\u00D4","Ocirc":"\u00D4","ocirc;":"\u00F4","ocirc":"\u00F4","OElig;":"\u0152","oelig;":"\u0153","Ograve;":"\u00D2","Ograve":"\u00D2","ograve;":"\u00F2","ograve":"\u00F2","oline;":"\u203E","Omega;":"\u03A9","omega;":"\u03C9","Omicron;":"\u039F","omicron;":"\u03BF","oplus;":"\u2295","or;":"\u2228","ordf;":"\u00AA","ordf":"\u00AA","ordm;":"\u00BA","ordm":"\u00BA","Oslash;":"\u00D8","Oslash":"\u00D8","oslash;":"\u00F8","oslash":"\u00F8","Otilde;":"\u00D5","Otilde":"\u00D5","otilde;":"\u00F5","otilde":"\u00F5","otimes;":"\u2297","Ouml;":"\u00D6","Ouml":"\u00D6","ouml;":"\u00F6","ouml":"\u00F6","para;":"\u00B6","para":"\u00B6","part;":"\u2202","permil;":"\u2030","perp;":"\u22A5","Phi;":"\u03A6","phi;":"\u03C6","Pi;":"\u03A0","pi;":"\u03C0","piv;":"\u03D6","plusmn;":"\u00B1","plusmn":"\u00B1","pound;":"\u00A3","pound":"\u00A3","prime;":"\u2032","Prime;":"\u2033","prod;":"\u220F","prop;":"\u221D","Psi;":"\u03A8","psi;":"\u03C8","quot":"\u0022","radic;":"\u221A","rang;":"\u27E9","raquo;":"\u00BB","raquo":"\u00BB","rarr;":"\u2192","rArr;":"\u21D2","rceil;":"\u2309","rdquo;":"\u201D","real;":"\u211C","reg;":"\u00AE","reg":"\u00AE","rfloor;":"\u230B","Rho;":"\u03A1","rho;":"\u03C1","rlm;":"\u200F","rsaquo;":"\u203A","rsquo;":"\u2019","sbquo;":"\u201A","Scaron;":"\u0160","scaron;":"\u0161","sdot;":"\u22C5","sect;":"\u00A7","sect":"\u00A7","shy;":"\u00AD","shy":"\u00AD","Sigma;":"\u03A3","sigma;":"\u03C3","sigmaf;":"\u03C2","sim;":"\u223C","spades;":"\u2660","sub;":"\u2282","sube;":"\u2286","sum;":"\u2211","sup1;":"\u00B9","sup1":"\u00B9","sup2;":"\u00B2","sup2":"\u00B2","sup3;":"\u00B3","sup3":"\u00B3","sup;":"\u2283","supe;":"\u2287","szlig;":"\u00DF","szlig":"\u00DF","Tau;":"\u03A4","tau;":"\u03C4","there4;":"\u2234","Theta;":"\u0398","theta;":"\u03B8","thetasym;":"\u03D1","thinsp;":"\u2009","THORN;":"\u00DE","THORN":"\u00DE","thorn;":"\u00FE","thorn":"\u00FE","tilde;":"\u02DC","times;":"\u00D7","times":"\u00D7","trade;":"\u2122","Uacute;":"\u00DA","Uacute":"\u00DA","uacute;":"\u00FA","uacute":"\u00FA","uarr;":"\u2191","uArr;":"\u21D1","Ucirc;":"\u00DB","Ucirc":"\u00DB","ucirc;":"\u00FB","ucirc":"\u00FB","Ugrave;":"\u00D9","Ugrave":"\u00D9","ugrave;":"\u00F9","ugrave":"\u00F9","uml;":"\u00A8","uml":"\u00A8","upsih;":"\u03D2","Upsilon;":"\u03A5","upsilon;":"\u03C5","Uuml;":"\u00DC","Uuml":"\u00DC","uuml;":"\u00FC","uuml":"\u00FC","weierp;":"\u2118","Xi;":"\u039E","xi;":"\u03BE","Yacute;":"\u00DD","Yacute":"\u00DD","yacute;":"\u00FD","yacute":"\u00FD","yen;":"\u00A5","yen":"\u00A5","yuml;":"\u00FF","yuml":"\u00FF","Yuml;":"\u0178","Zeta;":"\u0396","zeta;":"\u03B6","zwj;":"\u200D","zwnj;":"\u200C"} \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/entities/entities/html5.json b/node_modules/cheerio/node_modules/entities/entities/html5.json new file mode 100644 index 0000000..61dd35a --- /dev/null +++ b/node_modules/cheerio/node_modules/entities/entities/html5.json @@ -0,0 +1 @@ +{"Abreve;":"\u0102","abreve;":"\u0103","ac;":"\u223E","acd;":"\u223F","acE;":"\u223E\u0333","Acy;":"\u0410","acy;":"\u0430","af;":"\u2061","Afr;":"\uD835\uDD04","afr;":"\uD835\uDD1E","aleph;":"\u2135","Amacr;":"\u0100","amacr;":"\u0101","amalg;":"\u2A3F","AMP;":"\u0026","AMP":"\u0026","andand;":"\u2A55","And;":"\u2A53","andd;":"\u2A5C","andslope;":"\u2A58","andv;":"\u2A5A","ange;":"\u29A4","angle;":"\u2220","angmsdaa;":"\u29A8","angmsdab;":"\u29A9","angmsdac;":"\u29AA","angmsdad;":"\u29AB","angmsdae;":"\u29AC","angmsdaf;":"\u29AD","angmsdag;":"\u29AE","angmsdah;":"\u29AF","angmsd;":"\u2221","angrt;":"\u221F","angrtvb;":"\u22BE","angrtvbd;":"\u299D","angsph;":"\u2222","angst;":"\u00C5","angzarr;":"\u237C","Aogon;":"\u0104","aogon;":"\u0105","Aopf;":"\uD835\uDD38","aopf;":"\uD835\uDD52","apacir;":"\u2A6F","ap;":"\u2248","apE;":"\u2A70","ape;":"\u224A","apid;":"\u224B","ApplyFunction;":"\u2061","approx;":"\u2248","approxeq;":"\u224A","Ascr;":"\uD835\uDC9C","ascr;":"\uD835\uDCB6","Assign;":"\u2254","ast;":"\u002A","asympeq;":"\u224D","awconint;":"\u2233","awint;":"\u2A11","backcong;":"\u224C","backepsilon;":"\u03F6","backprime;":"\u2035","backsim;":"\u223D","backsimeq;":"\u22CD","Backslash;":"\u2216","Barv;":"\u2AE7","barvee;":"\u22BD","barwed;":"\u2305","Barwed;":"\u2306","barwedge;":"\u2305","bbrk;":"\u23B5","bbrktbrk;":"\u23B6","bcong;":"\u224C","Bcy;":"\u0411","bcy;":"\u0431","becaus;":"\u2235","because;":"\u2235","Because;":"\u2235","bemptyv;":"\u29B0","bepsi;":"\u03F6","bernou;":"\u212C","Bernoullis;":"\u212C","beth;":"\u2136","between;":"\u226C","Bfr;":"\uD835\uDD05","bfr;":"\uD835\uDD1F","bigcap;":"\u22C2","bigcirc;":"\u25EF","bigcup;":"\u22C3","bigodot;":"\u2A00","bigoplus;":"\u2A01","bigotimes;":"\u2A02","bigsqcup;":"\u2A06","bigstar;":"\u2605","bigtriangledown;":"\u25BD","bigtriangleup;":"\u25B3","biguplus;":"\u2A04","bigvee;":"\u22C1","bigwedge;":"\u22C0","bkarow;":"\u290D","blacklozenge;":"\u29EB","blacksquare;":"\u25AA","blacktriangle;":"\u25B4","blacktriangledown;":"\u25BE","blacktriangleleft;":"\u25C2","blacktriangleright;":"\u25B8","blank;":"\u2423","blk12;":"\u2592","blk14;":"\u2591","blk34;":"\u2593","block;":"\u2588","bne;":"\u003D\u20E5","bnequiv;":"\u2261\u20E5","bNot;":"\u2AED","bnot;":"\u2310","Bopf;":"\uD835\uDD39","bopf;":"\uD835\uDD53","bot;":"\u22A5","bottom;":"\u22A5","bowtie;":"\u22C8","boxbox;":"\u29C9","boxdl;":"\u2510","boxdL;":"\u2555","boxDl;":"\u2556","boxDL;":"\u2557","boxdr;":"\u250C","boxdR;":"\u2552","boxDr;":"\u2553","boxDR;":"\u2554","boxh;":"\u2500","boxH;":"\u2550","boxhd;":"\u252C","boxHd;":"\u2564","boxhD;":"\u2565","boxHD;":"\u2566","boxhu;":"\u2534","boxHu;":"\u2567","boxhU;":"\u2568","boxHU;":"\u2569","boxminus;":"\u229F","boxplus;":"\u229E","boxtimes;":"\u22A0","boxul;":"\u2518","boxuL;":"\u255B","boxUl;":"\u255C","boxUL;":"\u255D","boxur;":"\u2514","boxuR;":"\u2558","boxUr;":"\u2559","boxUR;":"\u255A","boxv;":"\u2502","boxV;":"\u2551","boxvh;":"\u253C","boxvH;":"\u256A","boxVh;":"\u256B","boxVH;":"\u256C","boxvl;":"\u2524","boxvL;":"\u2561","boxVl;":"\u2562","boxVL;":"\u2563","boxvr;":"\u251C","boxvR;":"\u255E","boxVr;":"\u255F","boxVR;":"\u2560","bprime;":"\u2035","breve;":"\u02D8","Breve;":"\u02D8","bscr;":"\uD835\uDCB7","Bscr;":"\u212C","bsemi;":"\u204F","bsim;":"\u223D","bsime;":"\u22CD","bsolb;":"\u29C5","bsol;":"\u005C","bsolhsub;":"\u27C8","bullet;":"\u2022","bump;":"\u224E","bumpE;":"\u2AAE","bumpe;":"\u224F","Bumpeq;":"\u224E","bumpeq;":"\u224F","Cacute;":"\u0106","cacute;":"\u0107","capand;":"\u2A44","capbrcup;":"\u2A49","capcap;":"\u2A4B","Cap;":"\u22D2","capcup;":"\u2A47","capdot;":"\u2A40","CapitalDifferentialD;":"\u2145","caps;":"\u2229\uFE00","caret;":"\u2041","caron;":"\u02C7","Cayleys;":"\u212D","ccaps;":"\u2A4D","Ccaron;":"\u010C","ccaron;":"\u010D","Ccirc;":"\u0108","ccirc;":"\u0109","Cconint;":"\u2230","ccups;":"\u2A4C","ccupssm;":"\u2A50","Cdot;":"\u010A","cdot;":"\u010B","Cedilla;":"\u00B8","cemptyv;":"\u29B2","centerdot;":"\u00B7","CenterDot;":"\u00B7","cfr;":"\uD835\uDD20","Cfr;":"\u212D","CHcy;":"\u0427","chcy;":"\u0447","check;":"\u2713","checkmark;":"\u2713","circeq;":"\u2257","circlearrowleft;":"\u21BA","circlearrowright;":"\u21BB","circledast;":"\u229B","circledcirc;":"\u229A","circleddash;":"\u229D","CircleDot;":"\u2299","circledR;":"\u00AE","circledS;":"\u24C8","CircleMinus;":"\u2296","CirclePlus;":"\u2295","CircleTimes;":"\u2297","cir;":"\u25CB","cirE;":"\u29C3","cire;":"\u2257","cirfnint;":"\u2A10","cirmid;":"\u2AEF","cirscir;":"\u29C2","ClockwiseContourIntegral;":"\u2232","CloseCurlyDoubleQuote;":"\u201D","CloseCurlyQuote;":"\u2019","clubsuit;":"\u2663","colon;":"\u003A","Colon;":"\u2237","Colone;":"\u2A74","colone;":"\u2254","coloneq;":"\u2254","comma;":"\u002C","commat;":"\u0040","comp;":"\u2201","compfn;":"\u2218","complement;":"\u2201","complexes;":"\u2102","congdot;":"\u2A6D","Congruent;":"\u2261","conint;":"\u222E","Conint;":"\u222F","ContourIntegral;":"\u222E","copf;":"\uD835\uDD54","Copf;":"\u2102","coprod;":"\u2210","Coproduct;":"\u2210","COPY;":"\u00A9","COPY":"\u00A9","copysr;":"\u2117","CounterClockwiseContourIntegral;":"\u2233","cross;":"\u2717","Cross;":"\u2A2F","Cscr;":"\uD835\uDC9E","cscr;":"\uD835\uDCB8","csub;":"\u2ACF","csube;":"\u2AD1","csup;":"\u2AD0","csupe;":"\u2AD2","ctdot;":"\u22EF","cudarrl;":"\u2938","cudarrr;":"\u2935","cuepr;":"\u22DE","cuesc;":"\u22DF","cularr;":"\u21B6","cularrp;":"\u293D","cupbrcap;":"\u2A48","cupcap;":"\u2A46","CupCap;":"\u224D","Cup;":"\u22D3","cupcup;":"\u2A4A","cupdot;":"\u228D","cupor;":"\u2A45","cups;":"\u222A\uFE00","curarr;":"\u21B7","curarrm;":"\u293C","curlyeqprec;":"\u22DE","curlyeqsucc;":"\u22DF","curlyvee;":"\u22CE","curlywedge;":"\u22CF","curvearrowleft;":"\u21B6","curvearrowright;":"\u21B7","cuvee;":"\u22CE","cuwed;":"\u22CF","cwconint;":"\u2232","cwint;":"\u2231","cylcty;":"\u232D","daleth;":"\u2138","Darr;":"\u21A1","dash;":"\u2010","Dashv;":"\u2AE4","dashv;":"\u22A3","dbkarow;":"\u290F","dblac;":"\u02DD","Dcaron;":"\u010E","dcaron;":"\u010F","Dcy;":"\u0414","dcy;":"\u0434","ddagger;":"\u2021","ddarr;":"\u21CA","DD;":"\u2145","dd;":"\u2146","DDotrahd;":"\u2911","ddotseq;":"\u2A77","Del;":"\u2207","demptyv;":"\u29B1","dfisht;":"\u297F","Dfr;":"\uD835\uDD07","dfr;":"\uD835\uDD21","dHar;":"\u2965","dharl;":"\u21C3","dharr;":"\u21C2","DiacriticalAcute;":"\u00B4","DiacriticalDot;":"\u02D9","DiacriticalDoubleAcute;":"\u02DD","DiacriticalGrave;":"\u0060","DiacriticalTilde;":"\u02DC","diam;":"\u22C4","diamond;":"\u22C4","Diamond;":"\u22C4","diamondsuit;":"\u2666","die;":"\u00A8","DifferentialD;":"\u2146","digamma;":"\u03DD","disin;":"\u22F2","div;":"\u00F7","divideontimes;":"\u22C7","divonx;":"\u22C7","DJcy;":"\u0402","djcy;":"\u0452","dlcorn;":"\u231E","dlcrop;":"\u230D","dollar;":"\u0024","Dopf;":"\uD835\uDD3B","dopf;":"\uD835\uDD55","Dot;":"\u00A8","dot;":"\u02D9","DotDot;":"\u20DC","doteq;":"\u2250","doteqdot;":"\u2251","DotEqual;":"\u2250","dotminus;":"\u2238","dotplus;":"\u2214","dotsquare;":"\u22A1","doublebarwedge;":"\u2306","DoubleContourIntegral;":"\u222F","DoubleDot;":"\u00A8","DoubleDownArrow;":"\u21D3","DoubleLeftArrow;":"\u21D0","DoubleLeftRightArrow;":"\u21D4","DoubleLeftTee;":"\u2AE4","DoubleLongLeftArrow;":"\u27F8","DoubleLongLeftRightArrow;":"\u27FA","DoubleLongRightArrow;":"\u27F9","DoubleRightArrow;":"\u21D2","DoubleRightTee;":"\u22A8","DoubleUpArrow;":"\u21D1","DoubleUpDownArrow;":"\u21D5","DoubleVerticalBar;":"\u2225","DownArrowBar;":"\u2913","downarrow;":"\u2193","DownArrow;":"\u2193","Downarrow;":"\u21D3","DownArrowUpArrow;":"\u21F5","DownBreve;":"\u0311","downdownarrows;":"\u21CA","downharpoonleft;":"\u21C3","downharpoonright;":"\u21C2","DownLeftRightVector;":"\u2950","DownLeftTeeVector;":"\u295E","DownLeftVectorBar;":"\u2956","DownLeftVector;":"\u21BD","DownRightTeeVector;":"\u295F","DownRightVectorBar;":"\u2957","DownRightVector;":"\u21C1","DownTeeArrow;":"\u21A7","DownTee;":"\u22A4","drbkarow;":"\u2910","drcorn;":"\u231F","drcrop;":"\u230C","Dscr;":"\uD835\uDC9F","dscr;":"\uD835\uDCB9","DScy;":"\u0405","dscy;":"\u0455","dsol;":"\u29F6","Dstrok;":"\u0110","dstrok;":"\u0111","dtdot;":"\u22F1","dtri;":"\u25BF","dtrif;":"\u25BE","duarr;":"\u21F5","duhar;":"\u296F","dwangle;":"\u29A6","DZcy;":"\u040F","dzcy;":"\u045F","dzigrarr;":"\u27FF","easter;":"\u2A6E","Ecaron;":"\u011A","ecaron;":"\u011B","ecir;":"\u2256","ecolon;":"\u2255","Ecy;":"\u042D","ecy;":"\u044D","eDDot;":"\u2A77","Edot;":"\u0116","edot;":"\u0117","eDot;":"\u2251","ee;":"\u2147","efDot;":"\u2252","Efr;":"\uD835\uDD08","efr;":"\uD835\uDD22","eg;":"\u2A9A","egs;":"\u2A96","egsdot;":"\u2A98","el;":"\u2A99","Element;":"\u2208","elinters;":"\u23E7","ell;":"\u2113","els;":"\u2A95","elsdot;":"\u2A97","Emacr;":"\u0112","emacr;":"\u0113","emptyset;":"\u2205","EmptySmallSquare;":"\u25FB","emptyv;":"\u2205","EmptyVerySmallSquare;":"\u25AB","emsp13;":"\u2004","emsp14;":"\u2005","ENG;":"\u014A","eng;":"\u014B","Eogon;":"\u0118","eogon;":"\u0119","Eopf;":"\uD835\uDD3C","eopf;":"\uD835\uDD56","epar;":"\u22D5","eparsl;":"\u29E3","eplus;":"\u2A71","epsi;":"\u03B5","epsiv;":"\u03F5","eqcirc;":"\u2256","eqcolon;":"\u2255","eqsim;":"\u2242","eqslantgtr;":"\u2A96","eqslantless;":"\u2A95","Equal;":"\u2A75","equals;":"\u003D","EqualTilde;":"\u2242","equest;":"\u225F","Equilibrium;":"\u21CC","equivDD;":"\u2A78","eqvparsl;":"\u29E5","erarr;":"\u2971","erDot;":"\u2253","escr;":"\u212F","Escr;":"\u2130","esdot;":"\u2250","Esim;":"\u2A73","esim;":"\u2242","excl;":"\u0021","Exists;":"\u2203","expectation;":"\u2130","exponentiale;":"\u2147","ExponentialE;":"\u2147","fallingdotseq;":"\u2252","Fcy;":"\u0424","fcy;":"\u0444","female;":"\u2640","ffilig;":"\uFB03","fflig;":"\uFB00","ffllig;":"\uFB04","Ffr;":"\uD835\uDD09","ffr;":"\uD835\uDD23","filig;":"\uFB01","FilledSmallSquare;":"\u25FC","FilledVerySmallSquare;":"\u25AA","fjlig;":"\u0066\u006A","flat;":"\u266D","fllig;":"\uFB02","fltns;":"\u25B1","Fopf;":"\uD835\uDD3D","fopf;":"\uD835\uDD57","ForAll;":"\u2200","fork;":"\u22D4","forkv;":"\u2AD9","Fouriertrf;":"\u2131","fpartint;":"\u2A0D","frac13;":"\u2153","frac15;":"\u2155","frac16;":"\u2159","frac18;":"\u215B","frac23;":"\u2154","frac25;":"\u2156","frac35;":"\u2157","frac38;":"\u215C","frac45;":"\u2158","frac56;":"\u215A","frac58;":"\u215D","frac78;":"\u215E","frown;":"\u2322","fscr;":"\uD835\uDCBB","Fscr;":"\u2131","gacute;":"\u01F5","Gammad;":"\u03DC","gammad;":"\u03DD","gap;":"\u2A86","Gbreve;":"\u011E","gbreve;":"\u011F","Gcedil;":"\u0122","Gcirc;":"\u011C","gcirc;":"\u011D","Gcy;":"\u0413","gcy;":"\u0433","Gdot;":"\u0120","gdot;":"\u0121","gE;":"\u2267","gEl;":"\u2A8C","gel;":"\u22DB","geq;":"\u2265","geqq;":"\u2267","geqslant;":"\u2A7E","gescc;":"\u2AA9","ges;":"\u2A7E","gesdot;":"\u2A80","gesdoto;":"\u2A82","gesdotol;":"\u2A84","gesl;":"\u22DB\uFE00","gesles;":"\u2A94","Gfr;":"\uD835\uDD0A","gfr;":"\uD835\uDD24","gg;":"\u226B","Gg;":"\u22D9","ggg;":"\u22D9","gimel;":"\u2137","GJcy;":"\u0403","gjcy;":"\u0453","gla;":"\u2AA5","gl;":"\u2277","glE;":"\u2A92","glj;":"\u2AA4","gnap;":"\u2A8A","gnapprox;":"\u2A8A","gne;":"\u2A88","gnE;":"\u2269","gneq;":"\u2A88","gneqq;":"\u2269","gnsim;":"\u22E7","Gopf;":"\uD835\uDD3E","gopf;":"\uD835\uDD58","grave;":"\u0060","GreaterEqual;":"\u2265","GreaterEqualLess;":"\u22DB","GreaterFullEqual;":"\u2267","GreaterGreater;":"\u2AA2","GreaterLess;":"\u2277","GreaterSlantEqual;":"\u2A7E","GreaterTilde;":"\u2273","Gscr;":"\uD835\uDCA2","gscr;":"\u210A","gsim;":"\u2273","gsime;":"\u2A8E","gsiml;":"\u2A90","gtcc;":"\u2AA7","gtcir;":"\u2A7A","GT;":"\u003E","GT":"\u003E","Gt;":"\u226B","gtdot;":"\u22D7","gtlPar;":"\u2995","gtquest;":"\u2A7C","gtrapprox;":"\u2A86","gtrarr;":"\u2978","gtrdot;":"\u22D7","gtreqless;":"\u22DB","gtreqqless;":"\u2A8C","gtrless;":"\u2277","gtrsim;":"\u2273","gvertneqq;":"\u2269\uFE00","gvnE;":"\u2269\uFE00","Hacek;":"\u02C7","hairsp;":"\u200A","half;":"\u00BD","hamilt;":"\u210B","HARDcy;":"\u042A","hardcy;":"\u044A","harrcir;":"\u2948","harrw;":"\u21AD","Hat;":"\u005E","hbar;":"\u210F","Hcirc;":"\u0124","hcirc;":"\u0125","heartsuit;":"\u2665","hercon;":"\u22B9","hfr;":"\uD835\uDD25","Hfr;":"\u210C","HilbertSpace;":"\u210B","hksearow;":"\u2925","hkswarow;":"\u2926","hoarr;":"\u21FF","homtht;":"\u223B","hookleftarrow;":"\u21A9","hookrightarrow;":"\u21AA","hopf;":"\uD835\uDD59","Hopf;":"\u210D","horbar;":"\u2015","HorizontalLine;":"\u2500","hscr;":"\uD835\uDCBD","Hscr;":"\u210B","hslash;":"\u210F","Hstrok;":"\u0126","hstrok;":"\u0127","HumpDownHump;":"\u224E","HumpEqual;":"\u224F","hybull;":"\u2043","hyphen;":"\u2010","ic;":"\u2063","Icy;":"\u0418","icy;":"\u0438","Idot;":"\u0130","IEcy;":"\u0415","iecy;":"\u0435","iff;":"\u21D4","ifr;":"\uD835\uDD26","Ifr;":"\u2111","ii;":"\u2148","iiiint;":"\u2A0C","iiint;":"\u222D","iinfin;":"\u29DC","iiota;":"\u2129","IJlig;":"\u0132","ijlig;":"\u0133","Imacr;":"\u012A","imacr;":"\u012B","ImaginaryI;":"\u2148","imagline;":"\u2110","imagpart;":"\u2111","imath;":"\u0131","Im;":"\u2111","imof;":"\u22B7","imped;":"\u01B5","Implies;":"\u21D2","incare;":"\u2105","in;":"\u2208","infintie;":"\u29DD","inodot;":"\u0131","intcal;":"\u22BA","Int;":"\u222C","integers;":"\u2124","Integral;":"\u222B","intercal;":"\u22BA","Intersection;":"\u22C2","intlarhk;":"\u2A17","intprod;":"\u2A3C","InvisibleComma;":"\u2063","InvisibleTimes;":"\u2062","IOcy;":"\u0401","iocy;":"\u0451","Iogon;":"\u012E","iogon;":"\u012F","Iopf;":"\uD835\uDD40","iopf;":"\uD835\uDD5A","iprod;":"\u2A3C","iscr;":"\uD835\uDCBE","Iscr;":"\u2110","isindot;":"\u22F5","isinE;":"\u22F9","isins;":"\u22F4","isinsv;":"\u22F3","isinv;":"\u2208","it;":"\u2062","Itilde;":"\u0128","itilde;":"\u0129","Iukcy;":"\u0406","iukcy;":"\u0456","Jcirc;":"\u0134","jcirc;":"\u0135","Jcy;":"\u0419","jcy;":"\u0439","Jfr;":"\uD835\uDD0D","jfr;":"\uD835\uDD27","jmath;":"\u0237","Jopf;":"\uD835\uDD41","jopf;":"\uD835\uDD5B","Jscr;":"\uD835\uDCA5","jscr;":"\uD835\uDCBF","Jsercy;":"\u0408","jsercy;":"\u0458","Jukcy;":"\u0404","jukcy;":"\u0454","kappav;":"\u03F0","Kcedil;":"\u0136","kcedil;":"\u0137","Kcy;":"\u041A","kcy;":"\u043A","Kfr;":"\uD835\uDD0E","kfr;":"\uD835\uDD28","kgreen;":"\u0138","KHcy;":"\u0425","khcy;":"\u0445","KJcy;":"\u040C","kjcy;":"\u045C","Kopf;":"\uD835\uDD42","kopf;":"\uD835\uDD5C","Kscr;":"\uD835\uDCA6","kscr;":"\uD835\uDCC0","lAarr;":"\u21DA","Lacute;":"\u0139","lacute;":"\u013A","laemptyv;":"\u29B4","lagran;":"\u2112","Lang;":"\u27EA","langd;":"\u2991","langle;":"\u27E8","lap;":"\u2A85","Laplacetrf;":"\u2112","larrb;":"\u21E4","larrbfs;":"\u291F","Larr;":"\u219E","larrfs;":"\u291D","larrhk;":"\u21A9","larrlp;":"\u21AB","larrpl;":"\u2939","larrsim;":"\u2973","larrtl;":"\u21A2","latail;":"\u2919","lAtail;":"\u291B","lat;":"\u2AAB","late;":"\u2AAD","lates;":"\u2AAD\uFE00","lbarr;":"\u290C","lBarr;":"\u290E","lbbrk;":"\u2772","lbrace;":"\u007B","lbrack;":"\u005B","lbrke;":"\u298B","lbrksld;":"\u298F","lbrkslu;":"\u298D","Lcaron;":"\u013D","lcaron;":"\u013E","Lcedil;":"\u013B","lcedil;":"\u013C","lcub;":"\u007B","Lcy;":"\u041B","lcy;":"\u043B","ldca;":"\u2936","ldquor;":"\u201E","ldrdhar;":"\u2967","ldrushar;":"\u294B","ldsh;":"\u21B2","lE;":"\u2266","LeftAngleBracket;":"\u27E8","LeftArrowBar;":"\u21E4","leftarrow;":"\u2190","LeftArrow;":"\u2190","Leftarrow;":"\u21D0","LeftArrowRightArrow;":"\u21C6","leftarrowtail;":"\u21A2","LeftCeiling;":"\u2308","LeftDoubleBracket;":"\u27E6","LeftDownTeeVector;":"\u2961","LeftDownVectorBar;":"\u2959","LeftDownVector;":"\u21C3","LeftFloor;":"\u230A","leftharpoondown;":"\u21BD","leftharpoonup;":"\u21BC","leftleftarrows;":"\u21C7","leftrightarrow;":"\u2194","LeftRightArrow;":"\u2194","Leftrightarrow;":"\u21D4","leftrightarrows;":"\u21C6","leftrightharpoons;":"\u21CB","leftrightsquigarrow;":"\u21AD","LeftRightVector;":"\u294E","LeftTeeArrow;":"\u21A4","LeftTee;":"\u22A3","LeftTeeVector;":"\u295A","leftthreetimes;":"\u22CB","LeftTriangleBar;":"\u29CF","LeftTriangle;":"\u22B2","LeftTriangleEqual;":"\u22B4","LeftUpDownVector;":"\u2951","LeftUpTeeVector;":"\u2960","LeftUpVectorBar;":"\u2958","LeftUpVector;":"\u21BF","LeftVectorBar;":"\u2952","LeftVector;":"\u21BC","lEg;":"\u2A8B","leg;":"\u22DA","leq;":"\u2264","leqq;":"\u2266","leqslant;":"\u2A7D","lescc;":"\u2AA8","les;":"\u2A7D","lesdot;":"\u2A7F","lesdoto;":"\u2A81","lesdotor;":"\u2A83","lesg;":"\u22DA\uFE00","lesges;":"\u2A93","lessapprox;":"\u2A85","lessdot;":"\u22D6","lesseqgtr;":"\u22DA","lesseqqgtr;":"\u2A8B","LessEqualGreater;":"\u22DA","LessFullEqual;":"\u2266","LessGreater;":"\u2276","lessgtr;":"\u2276","LessLess;":"\u2AA1","lesssim;":"\u2272","LessSlantEqual;":"\u2A7D","LessTilde;":"\u2272","lfisht;":"\u297C","Lfr;":"\uD835\uDD0F","lfr;":"\uD835\uDD29","lg;":"\u2276","lgE;":"\u2A91","lHar;":"\u2962","lhard;":"\u21BD","lharu;":"\u21BC","lharul;":"\u296A","lhblk;":"\u2584","LJcy;":"\u0409","ljcy;":"\u0459","llarr;":"\u21C7","ll;":"\u226A","Ll;":"\u22D8","llcorner;":"\u231E","Lleftarrow;":"\u21DA","llhard;":"\u296B","lltri;":"\u25FA","Lmidot;":"\u013F","lmidot;":"\u0140","lmoustache;":"\u23B0","lmoust;":"\u23B0","lnap;":"\u2A89","lnapprox;":"\u2A89","lne;":"\u2A87","lnE;":"\u2268","lneq;":"\u2A87","lneqq;":"\u2268","lnsim;":"\u22E6","loang;":"\u27EC","loarr;":"\u21FD","lobrk;":"\u27E6","longleftarrow;":"\u27F5","LongLeftArrow;":"\u27F5","Longleftarrow;":"\u27F8","longleftrightarrow;":"\u27F7","LongLeftRightArrow;":"\u27F7","Longleftrightarrow;":"\u27FA","longmapsto;":"\u27FC","longrightarrow;":"\u27F6","LongRightArrow;":"\u27F6","Longrightarrow;":"\u27F9","looparrowleft;":"\u21AB","looparrowright;":"\u21AC","lopar;":"\u2985","Lopf;":"\uD835\uDD43","lopf;":"\uD835\uDD5D","loplus;":"\u2A2D","lotimes;":"\u2A34","lowbar;":"\u005F","LowerLeftArrow;":"\u2199","LowerRightArrow;":"\u2198","lozenge;":"\u25CA","lozf;":"\u29EB","lpar;":"\u0028","lparlt;":"\u2993","lrarr;":"\u21C6","lrcorner;":"\u231F","lrhar;":"\u21CB","lrhard;":"\u296D","lrtri;":"\u22BF","lscr;":"\uD835\uDCC1","Lscr;":"\u2112","lsh;":"\u21B0","Lsh;":"\u21B0","lsim;":"\u2272","lsime;":"\u2A8D","lsimg;":"\u2A8F","lsqb;":"\u005B","lsquor;":"\u201A","Lstrok;":"\u0141","lstrok;":"\u0142","ltcc;":"\u2AA6","ltcir;":"\u2A79","LT;":"\u003C","LT":"\u003C","Lt;":"\u226A","ltdot;":"\u22D6","lthree;":"\u22CB","ltimes;":"\u22C9","ltlarr;":"\u2976","ltquest;":"\u2A7B","ltri;":"\u25C3","ltrie;":"\u22B4","ltrif;":"\u25C2","ltrPar;":"\u2996","lurdshar;":"\u294A","luruhar;":"\u2966","lvertneqq;":"\u2268\uFE00","lvnE;":"\u2268\uFE00","male;":"\u2642","malt;":"\u2720","maltese;":"\u2720","Map;":"\u2905","map;":"\u21A6","mapsto;":"\u21A6","mapstodown;":"\u21A7","mapstoleft;":"\u21A4","mapstoup;":"\u21A5","marker;":"\u25AE","mcomma;":"\u2A29","Mcy;":"\u041C","mcy;":"\u043C","mDDot;":"\u223A","measuredangle;":"\u2221","MediumSpace;":"\u205F","Mellintrf;":"\u2133","Mfr;":"\uD835\uDD10","mfr;":"\uD835\uDD2A","mho;":"\u2127","midast;":"\u002A","midcir;":"\u2AF0","mid;":"\u2223","minusb;":"\u229F","minusd;":"\u2238","minusdu;":"\u2A2A","MinusPlus;":"\u2213","mlcp;":"\u2ADB","mldr;":"\u2026","mnplus;":"\u2213","models;":"\u22A7","Mopf;":"\uD835\uDD44","mopf;":"\uD835\uDD5E","mp;":"\u2213","mscr;":"\uD835\uDCC2","Mscr;":"\u2133","mstpos;":"\u223E","multimap;":"\u22B8","mumap;":"\u22B8","Nacute;":"\u0143","nacute;":"\u0144","nang;":"\u2220\u20D2","nap;":"\u2249","napE;":"\u2A70\u0338","napid;":"\u224B\u0338","napos;":"\u0149","napprox;":"\u2249","natural;":"\u266E","naturals;":"\u2115","natur;":"\u266E","nbump;":"\u224E\u0338","nbumpe;":"\u224F\u0338","ncap;":"\u2A43","Ncaron;":"\u0147","ncaron;":"\u0148","Ncedil;":"\u0145","ncedil;":"\u0146","ncong;":"\u2247","ncongdot;":"\u2A6D\u0338","ncup;":"\u2A42","Ncy;":"\u041D","ncy;":"\u043D","nearhk;":"\u2924","nearr;":"\u2197","neArr;":"\u21D7","nearrow;":"\u2197","nedot;":"\u2250\u0338","NegativeMediumSpace;":"\u200B","NegativeThickSpace;":"\u200B","NegativeThinSpace;":"\u200B","NegativeVeryThinSpace;":"\u200B","nequiv;":"\u2262","nesear;":"\u2928","nesim;":"\u2242\u0338","NestedGreaterGreater;":"\u226B","NestedLessLess;":"\u226A","NewLine;":"\u000A","nexist;":"\u2204","nexists;":"\u2204","Nfr;":"\uD835\uDD11","nfr;":"\uD835\uDD2B","ngE;":"\u2267\u0338","nge;":"\u2271","ngeq;":"\u2271","ngeqq;":"\u2267\u0338","ngeqslant;":"\u2A7E\u0338","nges;":"\u2A7E\u0338","nGg;":"\u22D9\u0338","ngsim;":"\u2275","nGt;":"\u226B\u20D2","ngt;":"\u226F","ngtr;":"\u226F","nGtv;":"\u226B\u0338","nharr;":"\u21AE","nhArr;":"\u21CE","nhpar;":"\u2AF2","nis;":"\u22FC","nisd;":"\u22FA","niv;":"\u220B","NJcy;":"\u040A","njcy;":"\u045A","nlarr;":"\u219A","nlArr;":"\u21CD","nldr;":"\u2025","nlE;":"\u2266\u0338","nle;":"\u2270","nleftarrow;":"\u219A","nLeftarrow;":"\u21CD","nleftrightarrow;":"\u21AE","nLeftrightarrow;":"\u21CE","nleq;":"\u2270","nleqq;":"\u2266\u0338","nleqslant;":"\u2A7D\u0338","nles;":"\u2A7D\u0338","nless;":"\u226E","nLl;":"\u22D8\u0338","nlsim;":"\u2274","nLt;":"\u226A\u20D2","nlt;":"\u226E","nltri;":"\u22EA","nltrie;":"\u22EC","nLtv;":"\u226A\u0338","nmid;":"\u2224","NoBreak;":"\u2060","NonBreakingSpace;":"\u00A0","nopf;":"\uD835\uDD5F","Nopf;":"\u2115","Not;":"\u2AEC","NotCongruent;":"\u2262","NotCupCap;":"\u226D","NotDoubleVerticalBar;":"\u2226","NotElement;":"\u2209","NotEqual;":"\u2260","NotEqualTilde;":"\u2242\u0338","NotExists;":"\u2204","NotGreater;":"\u226F","NotGreaterEqual;":"\u2271","NotGreaterFullEqual;":"\u2267\u0338","NotGreaterGreater;":"\u226B\u0338","NotGreaterLess;":"\u2279","NotGreaterSlantEqual;":"\u2A7E\u0338","NotGreaterTilde;":"\u2275","NotHumpDownHump;":"\u224E\u0338","NotHumpEqual;":"\u224F\u0338","notindot;":"\u22F5\u0338","notinE;":"\u22F9\u0338","notinva;":"\u2209","notinvb;":"\u22F7","notinvc;":"\u22F6","NotLeftTriangleBar;":"\u29CF\u0338","NotLeftTriangle;":"\u22EA","NotLeftTriangleEqual;":"\u22EC","NotLess;":"\u226E","NotLessEqual;":"\u2270","NotLessGreater;":"\u2278","NotLessLess;":"\u226A\u0338","NotLessSlantEqual;":"\u2A7D\u0338","NotLessTilde;":"\u2274","NotNestedGreaterGreater;":"\u2AA2\u0338","NotNestedLessLess;":"\u2AA1\u0338","notni;":"\u220C","notniva;":"\u220C","notnivb;":"\u22FE","notnivc;":"\u22FD","NotPrecedes;":"\u2280","NotPrecedesEqual;":"\u2AAF\u0338","NotPrecedesSlantEqual;":"\u22E0","NotReverseElement;":"\u220C","NotRightTriangleBar;":"\u29D0\u0338","NotRightTriangle;":"\u22EB","NotRightTriangleEqual;":"\u22ED","NotSquareSubset;":"\u228F\u0338","NotSquareSubsetEqual;":"\u22E2","NotSquareSuperset;":"\u2290\u0338","NotSquareSupersetEqual;":"\u22E3","NotSubset;":"\u2282\u20D2","NotSubsetEqual;":"\u2288","NotSucceeds;":"\u2281","NotSucceedsEqual;":"\u2AB0\u0338","NotSucceedsSlantEqual;":"\u22E1","NotSucceedsTilde;":"\u227F\u0338","NotSuperset;":"\u2283\u20D2","NotSupersetEqual;":"\u2289","NotTilde;":"\u2241","NotTildeEqual;":"\u2244","NotTildeFullEqual;":"\u2247","NotTildeTilde;":"\u2249","NotVerticalBar;":"\u2224","nparallel;":"\u2226","npar;":"\u2226","nparsl;":"\u2AFD\u20E5","npart;":"\u2202\u0338","npolint;":"\u2A14","npr;":"\u2280","nprcue;":"\u22E0","nprec;":"\u2280","npreceq;":"\u2AAF\u0338","npre;":"\u2AAF\u0338","nrarrc;":"\u2933\u0338","nrarr;":"\u219B","nrArr;":"\u21CF","nrarrw;":"\u219D\u0338","nrightarrow;":"\u219B","nRightarrow;":"\u21CF","nrtri;":"\u22EB","nrtrie;":"\u22ED","nsc;":"\u2281","nsccue;":"\u22E1","nsce;":"\u2AB0\u0338","Nscr;":"\uD835\uDCA9","nscr;":"\uD835\uDCC3","nshortmid;":"\u2224","nshortparallel;":"\u2226","nsim;":"\u2241","nsime;":"\u2244","nsimeq;":"\u2244","nsmid;":"\u2224","nspar;":"\u2226","nsqsube;":"\u22E2","nsqsupe;":"\u22E3","nsubE;":"\u2AC5\u0338","nsube;":"\u2288","nsubset;":"\u2282\u20D2","nsubseteq;":"\u2288","nsubseteqq;":"\u2AC5\u0338","nsucc;":"\u2281","nsucceq;":"\u2AB0\u0338","nsup;":"\u2285","nsupE;":"\u2AC6\u0338","nsupe;":"\u2289","nsupset;":"\u2283\u20D2","nsupseteq;":"\u2289","nsupseteqq;":"\u2AC6\u0338","ntgl;":"\u2279","ntlg;":"\u2278","ntriangleleft;":"\u22EA","ntrianglelefteq;":"\u22EC","ntriangleright;":"\u22EB","ntrianglerighteq;":"\u22ED","num;":"\u0023","numero;":"\u2116","numsp;":"\u2007","nvap;":"\u224D\u20D2","nvdash;":"\u22AC","nvDash;":"\u22AD","nVdash;":"\u22AE","nVDash;":"\u22AF","nvge;":"\u2265\u20D2","nvgt;":"\u003E\u20D2","nvHarr;":"\u2904","nvinfin;":"\u29DE","nvlArr;":"\u2902","nvle;":"\u2264\u20D2","nvlt;":"\u003C\u20D2","nvltrie;":"\u22B4\u20D2","nvrArr;":"\u2903","nvrtrie;":"\u22B5\u20D2","nvsim;":"\u223C\u20D2","nwarhk;":"\u2923","nwarr;":"\u2196","nwArr;":"\u21D6","nwarrow;":"\u2196","nwnear;":"\u2927","oast;":"\u229B","ocir;":"\u229A","Ocy;":"\u041E","ocy;":"\u043E","odash;":"\u229D","Odblac;":"\u0150","odblac;":"\u0151","odiv;":"\u2A38","odot;":"\u2299","odsold;":"\u29BC","ofcir;":"\u29BF","Ofr;":"\uD835\uDD12","ofr;":"\uD835\uDD2C","ogon;":"\u02DB","ogt;":"\u29C1","ohbar;":"\u29B5","ohm;":"\u03A9","oint;":"\u222E","olarr;":"\u21BA","olcir;":"\u29BE","olcross;":"\u29BB","olt;":"\u29C0","Omacr;":"\u014C","omacr;":"\u014D","omid;":"\u29B6","ominus;":"\u2296","Oopf;":"\uD835\uDD46","oopf;":"\uD835\uDD60","opar;":"\u29B7","OpenCurlyDoubleQuote;":"\u201C","OpenCurlyQuote;":"\u2018","operp;":"\u29B9","orarr;":"\u21BB","Or;":"\u2A54","ord;":"\u2A5D","order;":"\u2134","orderof;":"\u2134","origof;":"\u22B6","oror;":"\u2A56","orslope;":"\u2A57","orv;":"\u2A5B","oS;":"\u24C8","Oscr;":"\uD835\uDCAA","oscr;":"\u2134","osol;":"\u2298","otimesas;":"\u2A36","Otimes;":"\u2A37","ovbar;":"\u233D","OverBar;":"\u203E","OverBrace;":"\u23DE","OverBracket;":"\u23B4","OverParenthesis;":"\u23DC","parallel;":"\u2225","par;":"\u2225","parsim;":"\u2AF3","parsl;":"\u2AFD","PartialD;":"\u2202","Pcy;":"\u041F","pcy;":"\u043F","percnt;":"\u0025","period;":"\u002E","pertenk;":"\u2031","Pfr;":"\uD835\uDD13","pfr;":"\uD835\uDD2D","phiv;":"\u03D5","phmmat;":"\u2133","phone;":"\u260E","pitchfork;":"\u22D4","planck;":"\u210F","planckh;":"\u210E","plankv;":"\u210F","plusacir;":"\u2A23","plusb;":"\u229E","pluscir;":"\u2A22","plus;":"\u002B","plusdo;":"\u2214","plusdu;":"\u2A25","pluse;":"\u2A72","PlusMinus;":"\u00B1","plussim;":"\u2A26","plustwo;":"\u2A27","pm;":"\u00B1","Poincareplane;":"\u210C","pointint;":"\u2A15","popf;":"\uD835\uDD61","Popf;":"\u2119","prap;":"\u2AB7","Pr;":"\u2ABB","pr;":"\u227A","prcue;":"\u227C","precapprox;":"\u2AB7","prec;":"\u227A","preccurlyeq;":"\u227C","Precedes;":"\u227A","PrecedesEqual;":"\u2AAF","PrecedesSlantEqual;":"\u227C","PrecedesTilde;":"\u227E","preceq;":"\u2AAF","precnapprox;":"\u2AB9","precneqq;":"\u2AB5","precnsim;":"\u22E8","pre;":"\u2AAF","prE;":"\u2AB3","precsim;":"\u227E","primes;":"\u2119","prnap;":"\u2AB9","prnE;":"\u2AB5","prnsim;":"\u22E8","Product;":"\u220F","profalar;":"\u232E","profline;":"\u2312","profsurf;":"\u2313","Proportional;":"\u221D","Proportion;":"\u2237","propto;":"\u221D","prsim;":"\u227E","prurel;":"\u22B0","Pscr;":"\uD835\uDCAB","pscr;":"\uD835\uDCC5","puncsp;":"\u2008","Qfr;":"\uD835\uDD14","qfr;":"\uD835\uDD2E","qint;":"\u2A0C","qopf;":"\uD835\uDD62","Qopf;":"\u211A","qprime;":"\u2057","Qscr;":"\uD835\uDCAC","qscr;":"\uD835\uDCC6","quaternions;":"\u210D","quatint;":"\u2A16","quest;":"\u003F","questeq;":"\u225F","QUOT;":"\u0022","QUOT":"\u0022","rAarr;":"\u21DB","race;":"\u223D\u0331","Racute;":"\u0154","racute;":"\u0155","raemptyv;":"\u29B3","Rang;":"\u27EB","rangd;":"\u2992","range;":"\u29A5","rangle;":"\u27E9","rarrap;":"\u2975","rarrb;":"\u21E5","rarrbfs;":"\u2920","rarrc;":"\u2933","Rarr;":"\u21A0","rarrfs;":"\u291E","rarrhk;":"\u21AA","rarrlp;":"\u21AC","rarrpl;":"\u2945","rarrsim;":"\u2974","Rarrtl;":"\u2916","rarrtl;":"\u21A3","rarrw;":"\u219D","ratail;":"\u291A","rAtail;":"\u291C","ratio;":"\u2236","rationals;":"\u211A","rbarr;":"\u290D","rBarr;":"\u290F","RBarr;":"\u2910","rbbrk;":"\u2773","rbrace;":"\u007D","rbrack;":"\u005D","rbrke;":"\u298C","rbrksld;":"\u298E","rbrkslu;":"\u2990","Rcaron;":"\u0158","rcaron;":"\u0159","Rcedil;":"\u0156","rcedil;":"\u0157","rcub;":"\u007D","Rcy;":"\u0420","rcy;":"\u0440","rdca;":"\u2937","rdldhar;":"\u2969","rdquor;":"\u201D","rdsh;":"\u21B3","realine;":"\u211B","realpart;":"\u211C","reals;":"\u211D","Re;":"\u211C","rect;":"\u25AD","REG;":"\u00AE","REG":"\u00AE","ReverseElement;":"\u220B","ReverseEquilibrium;":"\u21CB","ReverseUpEquilibrium;":"\u296F","rfisht;":"\u297D","rfr;":"\uD835\uDD2F","Rfr;":"\u211C","rHar;":"\u2964","rhard;":"\u21C1","rharu;":"\u21C0","rharul;":"\u296C","rhov;":"\u03F1","RightAngleBracket;":"\u27E9","RightArrowBar;":"\u21E5","rightarrow;":"\u2192","RightArrow;":"\u2192","Rightarrow;":"\u21D2","RightArrowLeftArrow;":"\u21C4","rightarrowtail;":"\u21A3","RightCeiling;":"\u2309","RightDoubleBracket;":"\u27E7","RightDownTeeVector;":"\u295D","RightDownVectorBar;":"\u2955","RightDownVector;":"\u21C2","RightFloor;":"\u230B","rightharpoondown;":"\u21C1","rightharpoonup;":"\u21C0","rightleftarrows;":"\u21C4","rightleftharpoons;":"\u21CC","rightrightarrows;":"\u21C9","rightsquigarrow;":"\u219D","RightTeeArrow;":"\u21A6","RightTee;":"\u22A2","RightTeeVector;":"\u295B","rightthreetimes;":"\u22CC","RightTriangleBar;":"\u29D0","RightTriangle;":"\u22B3","RightTriangleEqual;":"\u22B5","RightUpDownVector;":"\u294F","RightUpTeeVector;":"\u295C","RightUpVectorBar;":"\u2954","RightUpVector;":"\u21BE","RightVectorBar;":"\u2953","RightVector;":"\u21C0","ring;":"\u02DA","risingdotseq;":"\u2253","rlarr;":"\u21C4","rlhar;":"\u21CC","rmoustache;":"\u23B1","rmoust;":"\u23B1","rnmid;":"\u2AEE","roang;":"\u27ED","roarr;":"\u21FE","robrk;":"\u27E7","ropar;":"\u2986","ropf;":"\uD835\uDD63","Ropf;":"\u211D","roplus;":"\u2A2E","rotimes;":"\u2A35","RoundImplies;":"\u2970","rpar;":"\u0029","rpargt;":"\u2994","rppolint;":"\u2A12","rrarr;":"\u21C9","Rrightarrow;":"\u21DB","rscr;":"\uD835\uDCC7","Rscr;":"\u211B","rsh;":"\u21B1","Rsh;":"\u21B1","rsqb;":"\u005D","rsquor;":"\u2019","rthree;":"\u22CC","rtimes;":"\u22CA","rtri;":"\u25B9","rtrie;":"\u22B5","rtrif;":"\u25B8","rtriltri;":"\u29CE","RuleDelayed;":"\u29F4","ruluhar;":"\u2968","rx;":"\u211E","Sacute;":"\u015A","sacute;":"\u015B","scap;":"\u2AB8","Sc;":"\u2ABC","sc;":"\u227B","sccue;":"\u227D","sce;":"\u2AB0","scE;":"\u2AB4","Scedil;":"\u015E","scedil;":"\u015F","Scirc;":"\u015C","scirc;":"\u015D","scnap;":"\u2ABA","scnE;":"\u2AB6","scnsim;":"\u22E9","scpolint;":"\u2A13","scsim;":"\u227F","Scy;":"\u0421","scy;":"\u0441","sdotb;":"\u22A1","sdote;":"\u2A66","searhk;":"\u2925","searr;":"\u2198","seArr;":"\u21D8","searrow;":"\u2198","semi;":"\u003B","seswar;":"\u2929","setminus;":"\u2216","setmn;":"\u2216","sext;":"\u2736","Sfr;":"\uD835\uDD16","sfr;":"\uD835\uDD30","sfrown;":"\u2322","sharp;":"\u266F","SHCHcy;":"\u0429","shchcy;":"\u0449","SHcy;":"\u0428","shcy;":"\u0448","ShortDownArrow;":"\u2193","ShortLeftArrow;":"\u2190","shortmid;":"\u2223","shortparallel;":"\u2225","ShortRightArrow;":"\u2192","ShortUpArrow;":"\u2191","sigmav;":"\u03C2","simdot;":"\u2A6A","sime;":"\u2243","simeq;":"\u2243","simg;":"\u2A9E","simgE;":"\u2AA0","siml;":"\u2A9D","simlE;":"\u2A9F","simne;":"\u2246","simplus;":"\u2A24","simrarr;":"\u2972","slarr;":"\u2190","SmallCircle;":"\u2218","smallsetminus;":"\u2216","smashp;":"\u2A33","smeparsl;":"\u29E4","smid;":"\u2223","smile;":"\u2323","smt;":"\u2AAA","smte;":"\u2AAC","smtes;":"\u2AAC\uFE00","SOFTcy;":"\u042C","softcy;":"\u044C","solbar;":"\u233F","solb;":"\u29C4","sol;":"\u002F","Sopf;":"\uD835\uDD4A","sopf;":"\uD835\uDD64","spadesuit;":"\u2660","spar;":"\u2225","sqcap;":"\u2293","sqcaps;":"\u2293\uFE00","sqcup;":"\u2294","sqcups;":"\u2294\uFE00","Sqrt;":"\u221A","sqsub;":"\u228F","sqsube;":"\u2291","sqsubset;":"\u228F","sqsubseteq;":"\u2291","sqsup;":"\u2290","sqsupe;":"\u2292","sqsupset;":"\u2290","sqsupseteq;":"\u2292","square;":"\u25A1","Square;":"\u25A1","SquareIntersection;":"\u2293","SquareSubset;":"\u228F","SquareSubsetEqual;":"\u2291","SquareSuperset;":"\u2290","SquareSupersetEqual;":"\u2292","SquareUnion;":"\u2294","squarf;":"\u25AA","squ;":"\u25A1","squf;":"\u25AA","srarr;":"\u2192","Sscr;":"\uD835\uDCAE","sscr;":"\uD835\uDCC8","ssetmn;":"\u2216","ssmile;":"\u2323","sstarf;":"\u22C6","Star;":"\u22C6","star;":"\u2606","starf;":"\u2605","straightepsilon;":"\u03F5","straightphi;":"\u03D5","strns;":"\u00AF","Sub;":"\u22D0","subdot;":"\u2ABD","subE;":"\u2AC5","subedot;":"\u2AC3","submult;":"\u2AC1","subnE;":"\u2ACB","subne;":"\u228A","subplus;":"\u2ABF","subrarr;":"\u2979","subset;":"\u2282","Subset;":"\u22D0","subseteq;":"\u2286","subseteqq;":"\u2AC5","SubsetEqual;":"\u2286","subsetneq;":"\u228A","subsetneqq;":"\u2ACB","subsim;":"\u2AC7","subsub;":"\u2AD5","subsup;":"\u2AD3","succapprox;":"\u2AB8","succ;":"\u227B","succcurlyeq;":"\u227D","Succeeds;":"\u227B","SucceedsEqual;":"\u2AB0","SucceedsSlantEqual;":"\u227D","SucceedsTilde;":"\u227F","succeq;":"\u2AB0","succnapprox;":"\u2ABA","succneqq;":"\u2AB6","succnsim;":"\u22E9","succsim;":"\u227F","SuchThat;":"\u220B","Sum;":"\u2211","sung;":"\u266A","Sup;":"\u22D1","supdot;":"\u2ABE","supdsub;":"\u2AD8","supE;":"\u2AC6","supedot;":"\u2AC4","Superset;":"\u2283","SupersetEqual;":"\u2287","suphsol;":"\u27C9","suphsub;":"\u2AD7","suplarr;":"\u297B","supmult;":"\u2AC2","supnE;":"\u2ACC","supne;":"\u228B","supplus;":"\u2AC0","supset;":"\u2283","Supset;":"\u22D1","supseteq;":"\u2287","supseteqq;":"\u2AC6","supsetneq;":"\u228B","supsetneqq;":"\u2ACC","supsim;":"\u2AC8","supsub;":"\u2AD4","supsup;":"\u2AD6","swarhk;":"\u2926","swarr;":"\u2199","swArr;":"\u21D9","swarrow;":"\u2199","swnwar;":"\u292A","Tab;":"\u0009","target;":"\u2316","tbrk;":"\u23B4","Tcaron;":"\u0164","tcaron;":"\u0165","Tcedil;":"\u0162","tcedil;":"\u0163","Tcy;":"\u0422","tcy;":"\u0442","tdot;":"\u20DB","telrec;":"\u2315","Tfr;":"\uD835\uDD17","tfr;":"\uD835\uDD31","therefore;":"\u2234","Therefore;":"\u2234","thetav;":"\u03D1","thickapprox;":"\u2248","thicksim;":"\u223C","ThickSpace;":"\u205F\u200A","ThinSpace;":"\u2009","thkap;":"\u2248","thksim;":"\u223C","Tilde;":"\u223C","TildeEqual;":"\u2243","TildeFullEqual;":"\u2245","TildeTilde;":"\u2248","timesbar;":"\u2A31","timesb;":"\u22A0","timesd;":"\u2A30","tint;":"\u222D","toea;":"\u2928","topbot;":"\u2336","topcir;":"\u2AF1","top;":"\u22A4","Topf;":"\uD835\uDD4B","topf;":"\uD835\uDD65","topfork;":"\u2ADA","tosa;":"\u2929","tprime;":"\u2034","TRADE;":"\u2122","triangle;":"\u25B5","triangledown;":"\u25BF","triangleleft;":"\u25C3","trianglelefteq;":"\u22B4","triangleq;":"\u225C","triangleright;":"\u25B9","trianglerighteq;":"\u22B5","tridot;":"\u25EC","trie;":"\u225C","triminus;":"\u2A3A","TripleDot;":"\u20DB","triplus;":"\u2A39","trisb;":"\u29CD","tritime;":"\u2A3B","trpezium;":"\u23E2","Tscr;":"\uD835\uDCAF","tscr;":"\uD835\uDCC9","TScy;":"\u0426","tscy;":"\u0446","TSHcy;":"\u040B","tshcy;":"\u045B","Tstrok;":"\u0166","tstrok;":"\u0167","twixt;":"\u226C","twoheadleftarrow;":"\u219E","twoheadrightarrow;":"\u21A0","Uarr;":"\u219F","Uarrocir;":"\u2949","Ubrcy;":"\u040E","ubrcy;":"\u045E","Ubreve;":"\u016C","ubreve;":"\u016D","Ucy;":"\u0423","ucy;":"\u0443","udarr;":"\u21C5","Udblac;":"\u0170","udblac;":"\u0171","udhar;":"\u296E","ufisht;":"\u297E","Ufr;":"\uD835\uDD18","ufr;":"\uD835\uDD32","uHar;":"\u2963","uharl;":"\u21BF","uharr;":"\u21BE","uhblk;":"\u2580","ulcorn;":"\u231C","ulcorner;":"\u231C","ulcrop;":"\u230F","ultri;":"\u25F8","Umacr;":"\u016A","umacr;":"\u016B","UnderBar;":"\u005F","UnderBrace;":"\u23DF","UnderBracket;":"\u23B5","UnderParenthesis;":"\u23DD","Union;":"\u22C3","UnionPlus;":"\u228E","Uogon;":"\u0172","uogon;":"\u0173","Uopf;":"\uD835\uDD4C","uopf;":"\uD835\uDD66","UpArrowBar;":"\u2912","uparrow;":"\u2191","UpArrow;":"\u2191","Uparrow;":"\u21D1","UpArrowDownArrow;":"\u21C5","updownarrow;":"\u2195","UpDownArrow;":"\u2195","Updownarrow;":"\u21D5","UpEquilibrium;":"\u296E","upharpoonleft;":"\u21BF","upharpoonright;":"\u21BE","uplus;":"\u228E","UpperLeftArrow;":"\u2196","UpperRightArrow;":"\u2197","upsi;":"\u03C5","Upsi;":"\u03D2","UpTeeArrow;":"\u21A5","UpTee;":"\u22A5","upuparrows;":"\u21C8","urcorn;":"\u231D","urcorner;":"\u231D","urcrop;":"\u230E","Uring;":"\u016E","uring;":"\u016F","urtri;":"\u25F9","Uscr;":"\uD835\uDCB0","uscr;":"\uD835\uDCCA","utdot;":"\u22F0","Utilde;":"\u0168","utilde;":"\u0169","utri;":"\u25B5","utrif;":"\u25B4","uuarr;":"\u21C8","uwangle;":"\u29A7","vangrt;":"\u299C","varepsilon;":"\u03F5","varkappa;":"\u03F0","varnothing;":"\u2205","varphi;":"\u03D5","varpi;":"\u03D6","varpropto;":"\u221D","varr;":"\u2195","vArr;":"\u21D5","varrho;":"\u03F1","varsigma;":"\u03C2","varsubsetneq;":"\u228A\uFE00","varsubsetneqq;":"\u2ACB\uFE00","varsupsetneq;":"\u228B\uFE00","varsupsetneqq;":"\u2ACC\uFE00","vartheta;":"\u03D1","vartriangleleft;":"\u22B2","vartriangleright;":"\u22B3","vBar;":"\u2AE8","Vbar;":"\u2AEB","vBarv;":"\u2AE9","Vcy;":"\u0412","vcy;":"\u0432","vdash;":"\u22A2","vDash;":"\u22A8","Vdash;":"\u22A9","VDash;":"\u22AB","Vdashl;":"\u2AE6","veebar;":"\u22BB","vee;":"\u2228","Vee;":"\u22C1","veeeq;":"\u225A","vellip;":"\u22EE","verbar;":"\u007C","Verbar;":"\u2016","vert;":"\u007C","Vert;":"\u2016","VerticalBar;":"\u2223","VerticalLine;":"\u007C","VerticalSeparator;":"\u2758","VerticalTilde;":"\u2240","VeryThinSpace;":"\u200A","Vfr;":"\uD835\uDD19","vfr;":"\uD835\uDD33","vltri;":"\u22B2","vnsub;":"\u2282\u20D2","vnsup;":"\u2283\u20D2","Vopf;":"\uD835\uDD4D","vopf;":"\uD835\uDD67","vprop;":"\u221D","vrtri;":"\u22B3","Vscr;":"\uD835\uDCB1","vscr;":"\uD835\uDCCB","vsubnE;":"\u2ACB\uFE00","vsubne;":"\u228A\uFE00","vsupnE;":"\u2ACC\uFE00","vsupne;":"\u228B\uFE00","Vvdash;":"\u22AA","vzigzag;":"\u299A","Wcirc;":"\u0174","wcirc;":"\u0175","wedbar;":"\u2A5F","wedge;":"\u2227","Wedge;":"\u22C0","wedgeq;":"\u2259","Wfr;":"\uD835\uDD1A","wfr;":"\uD835\uDD34","Wopf;":"\uD835\uDD4E","wopf;":"\uD835\uDD68","wp;":"\u2118","wr;":"\u2240","wreath;":"\u2240","Wscr;":"\uD835\uDCB2","wscr;":"\uD835\uDCCC","xcap;":"\u22C2","xcirc;":"\u25EF","xcup;":"\u22C3","xdtri;":"\u25BD","Xfr;":"\uD835\uDD1B","xfr;":"\uD835\uDD35","xharr;":"\u27F7","xhArr;":"\u27FA","xlarr;":"\u27F5","xlArr;":"\u27F8","xmap;":"\u27FC","xnis;":"\u22FB","xodot;":"\u2A00","Xopf;":"\uD835\uDD4F","xopf;":"\uD835\uDD69","xoplus;":"\u2A01","xotime;":"\u2A02","xrarr;":"\u27F6","xrArr;":"\u27F9","Xscr;":"\uD835\uDCB3","xscr;":"\uD835\uDCCD","xsqcup;":"\u2A06","xuplus;":"\u2A04","xutri;":"\u25B3","xvee;":"\u22C1","xwedge;":"\u22C0","YAcy;":"\u042F","yacy;":"\u044F","Ycirc;":"\u0176","ycirc;":"\u0177","Ycy;":"\u042B","ycy;":"\u044B","Yfr;":"\uD835\uDD1C","yfr;":"\uD835\uDD36","YIcy;":"\u0407","yicy;":"\u0457","Yopf;":"\uD835\uDD50","yopf;":"\uD835\uDD6A","Yscr;":"\uD835\uDCB4","yscr;":"\uD835\uDCCE","YUcy;":"\u042E","yucy;":"\u044E","Zacute;":"\u0179","zacute;":"\u017A","Zcaron;":"\u017D","zcaron;":"\u017E","Zcy;":"\u0417","zcy;":"\u0437","Zdot;":"\u017B","zdot;":"\u017C","zeetrf;":"\u2128","ZeroWidthSpace;":"\u200B","zfr;":"\uD835\uDD37","Zfr;":"\u2128","ZHcy;":"\u0416","zhcy;":"\u0436","zigrarr;":"\u21DD","zopf;":"\uD835\uDD6B","Zopf;":"\u2124","Zscr;":"\uD835\uDCB5","zscr;":"\uD835\uDCCF"} \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/entities/entities/xml.json b/node_modules/cheerio/node_modules/entities/entities/xml.json new file mode 100644 index 0000000..b6e781c --- /dev/null +++ b/node_modules/cheerio/node_modules/entities/entities/xml.json @@ -0,0 +1 @@ +{"amp;":"\u0026","apos;":"\u0027","gt;":"\u003e","lt;":"\u003c","quot;":"\u0022"} \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/entities/index.js b/node_modules/cheerio/node_modules/entities/index.js new file mode 100644 index 0000000..8470541 --- /dev/null +++ b/node_modules/cheerio/node_modules/entities/index.js @@ -0,0 +1,99 @@ +var compiled = require("./compile.js"), + modes = ["XML", "HTML4", "HTML5"]; + +var levels = modes.map(function(name, i){ + var obj = compiled[name], + strict = genReplaceFunc(obj.strict, getStrictReplacer(obj.obj)), + //there is no non-strict mode for XML + normal = i === 0 ? strict : genReplaceFunc(obj.normal, getReplacer(obj.obj)), + inverse = getInverse(obj.inverseObj, obj.inverse); + + exports["decode" + name + "Strict"] = strict; + exports["decode" + name] = normal; + exports["encode" + name] = inverse; + + return { + strict: strict, + normal: normal, + inverse: inverse + }; +}); + +var decode = levels.map(function(l){ return l.normal; }), + decodeStrict = levels.map(function(l){ return l.strict; }), + encode = levels.map(function(l){ return l.inverse; }); + +exports.decode = function(data, level){ + if(!(level >= 0 && level < 3)) level = 0; + return decode[level](data); +}; +exports.decodeStrict = function(data, level){ + if(!(level >= 0 && level < 3)) level = 0; + return decodeStrict[level](data); +}; +exports.encode = function(data, level){ + if(!(level >= 0 && level < 3)) level = 0; + return encode[level](data); +}; + +function getReplacer(obj){ + return function normalReplacer(name){ + if(name.charAt(1) === "#"){ + if(name.charAt(2).toLowerCase() === "x"){ + return codePointToSymbol(parseInt(name.substr(3), 16)); + } + return codePointToSymbol(parseInt(name.substr(2), 10)); + } + return obj[name.substr(1)]; + }; +} + +function codePointToSymbol(entity){ + return String.fromCharCode(entity); //TODO +} + +function getStrictReplacer(obj){ + return function strictReplacer(name){ + if(name.charAt(1) === "#"){ + if(name.charAt(2).toLowerCase() === "x"){ + return String.fromCharCode(parseInt(name.substr(3), 16)); + } + return String.fromCharCode(parseInt(name.substr(2), 10)); + } + return obj[name.substr(1)]; + }; +} + +var re_nonASCII = /[^\0-\x7F]/g, + re_astralSymbols = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; + +function nonUTF8Replacer(c){ + return "&#x" + c.charCodeAt(0).toString(16).toUpperCase() + ";"; +} + +function astralReplacer(c){ + // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae + var high = c.charCodeAt(0); + var low = c.charCodeAt(1); + var codePoint = (high - 0xD800) * 0x400 + low - 0xDC00 + 0x10000; + return "&#x" + codePoint.toString(16).toUpperCase() + ";"; +} + +function getInverse(inverse, re){ + function func(name){ + return "&" + inverse[name]; + } + + return function(data){ + return data + .replace(re, func) + .replace(re_astralSymbols, astralReplacer) + .replace(re_nonASCII, nonUTF8Replacer); + }; +} + +function genReplaceFunc(regex, func){ + return function(data){ + return data.replace(regex, func); + }; +} diff --git a/node_modules/cheerio/node_modules/entities/package.json b/node_modules/cheerio/node_modules/entities/package.json new file mode 100644 index 0000000..cc67b67 --- /dev/null +++ b/node_modules/cheerio/node_modules/entities/package.json @@ -0,0 +1,53 @@ +{ + "name": "entities", + "version": "0.5.0", + "description": "Encode & decode XML/HTML entities with ease", + "author": { + "name": "Felix Boehm", + "email": "me@feedic.com" + }, + "keywords": [ + "html", + "xml", + "entity", + "encoding" + ], + "main": "./index.js", + "directories": { + "test": "test" + }, + "devDependencies": { + "mocha": "~1.9.0" + }, + "scripts": { + "test": "mocha" + }, + "repository": { + "type": "git", + "url": "git://github.com/fb55/node-entities.git" + }, + "license": "BSD-like", + "bugs": { + "url": "https://github.com/fb55/node-entities/issues" + }, + "homepage": "https://github.com/fb55/node-entities", + "_id": "entities@0.5.0", + "dist": { + "shasum": "f611cb5ae221050e0012c66979503fd7ae19cc49", + "tarball": "http://registry.npmjs.org/entities/-/entities-0.5.0.tgz" + }, + "_from": "entities@0.x", + "_npmVersion": "1.4.2", + "_npmUser": { + "name": "feedic", + "email": "me@feedic.com" + }, + "maintainers": [ + { + "name": "feedic", + "email": "me@feedic.com" + } + ], + "_shasum": "f611cb5ae221050e0012c66979503fd7ae19cc49", + "_resolved": "https://registry.npmjs.org/entities/-/entities-0.5.0.tgz" +} diff --git a/node_modules/cheerio/node_modules/entities/readme.md b/node_modules/cheerio/node_modules/entities/readme.md new file mode 100644 index 0000000..ebd87df --- /dev/null +++ b/node_modules/cheerio/node_modules/entities/readme.md @@ -0,0 +1,27 @@ +#entities + +En- & decoder for XML/HTML entities. + +####Features: +* Focussed on ___speed___ +* Supports three levels of entities: __XML__, __HTML4__ & __HTML5__ + * Supports _char code_ entities (eg. `U`) + +##How to… + +###…install `entities` + + npm i entities + +###…use `entities` + +```javascript +//encoding +require("entities").encode( data[, level]); +//decoding +require("entities").decode( data[, level]); +``` + +The `level` attribute indicates what level of entities should be decoded (0 = XML, 1 = HTML4 and 2 = HTML5). The default is 0 (read: XML). + +There are also methods to access the level directly. Just append the name of the level to the action and you're ready to go (e.g. `encodeHTML4(data)`, `decodeXML(data)`). diff --git a/node_modules/cheerio/node_modules/entities/test/mocha.opts b/node_modules/cheerio/node_modules/entities/test/mocha.opts new file mode 100644 index 0000000..af53e24 --- /dev/null +++ b/node_modules/cheerio/node_modules/entities/test/mocha.opts @@ -0,0 +1,2 @@ +--check-leaks +--reporter spec diff --git a/node_modules/cheerio/node_modules/entities/test/test.js b/node_modules/cheerio/node_modules/entities/test/test.js new file mode 100644 index 0000000..af988b2 --- /dev/null +++ b/node_modules/cheerio/node_modules/entities/test/test.js @@ -0,0 +1,140 @@ +var assert = require("assert"), + path = require("path"), + entities = require('../'); + +describe("Encode->decode test", function(){ + var testcases = [ + { + input: "asdf & ÿ ü '", + xml: "asdf & ÿ ü '", + html4: "asdf & ÿ ü '", + html5: "asdf & ÿ ü '" + }, { + input: "&", + xml: "&#38;", + html4: "&#38;", + html5: "&#38;" + }, + ]; + testcases.forEach(function(tc) { + var encodedXML = entities.encodeXML(tc.input); + it("should XML encode " + tc.input, function(){ + assert.equal(encodedXML, tc.xml); + }); + it("should default to XML encode " + tc.input, function(){ + assert.equal(entities.encode(tc.input), tc.xml); + }); + it("should XML decode " + encodedXML, function(){ + assert.equal(entities.decodeXML(encodedXML), tc.input); + }); + it("should default to XML encode " + encodedXML, function(){ + assert.equal(entities.decode(encodedXML), tc.input); + }); + it("should default strict to XML encode " + encodedXML, function(){ + assert.equal(entities.decodeStrict(encodedXML), tc.input); + }); + + var encodedHTML4 = entities.encodeHTML4(tc.input); + it("should HTML4 encode " + tc.input, function(){ + assert.equal(encodedHTML4, tc.html4); + }); + it("should HTML4 decode " + encodedHTML4, function(){ + assert.equal(entities.decodeHTML4(encodedHTML4), tc.input); + }); + + var encodedHTML5 = entities.encodeHTML5(tc.input); + it("should HTML5 encode " + tc.input, function(){ + assert.equal(encodedHTML5, tc.html5); + }); + it("should HTML5 decode " + encodedHTML5, function(){ + assert.equal(entities.decodeHTML5(encodedHTML5), tc.input); + }); + }); +}); + +describe("Decode test", function(){ + var testcases = [ + { input: "&amp;", output: "&" }, + { input: "&#38;", output: "&" }, + { input: "&#x26;", output: "&" }, + { input: "&#X26;", output: "&" }, + { input: "&#38;", output: "&" }, + { input: "&#38;", output: "&" }, + { input: "&#38;", output: "&" }, + { input: ":", output: ":" }, + { input: ":", output: ":" }, + { input: ":", output: ":" }, + { input: ":", output: ":" } + ]; + testcases.forEach(function(tc) { + it("should XML decode " + tc.input, function(){ + assert.equal(entities.decodeXML(tc.input), tc.output); + }); + it("should HTML4 decode " + tc.input, function(){ + assert.equal(entities.decodeHTML4(tc.input), tc.output); + }); + it("should HTML5 decode " + tc.input, function(){ + assert.equal(entities.decodeHTML5(tc.input), tc.output); + }); + }); +}); + +var levels = ["xml", "html4", "html5"]; + +describe("Documents", function(){ + levels + .map(function(n){ return path.join("..", "entities", n); }) + .map(require) + .forEach(function(doc, i){ + describe("Decode", function(){ + it(levels[i], function(){ + Object.keys(doc).forEach(function(e){ + for(var l = i; l < levels.length; l++){ + assert.equal(entities.decode("&" + e, l), doc[e]); + } + }); + }); + }); + + describe("Decode strict", function(){ + it(levels[i], function(){ + Object.keys(doc).forEach(function(e){ + if(e.substr(-1) !== ";"){ + assert.equal(entities.decodeStrict("&" + e, i), "&" + e); + return; + } + for(var l = i; l < levels.length; l++){ + assert.equal(entities.decodeStrict("&" + e, l), doc[e]); + } + }); + }); + }); + + describe("Encode", function(){ + it(levels[i], function(){ + Object.keys(doc).forEach(function(e){ + if(e.substr(-1) !== ";") return; + for(var l = i; l < levels.length; l++){ + assert.equal(entities.decode(entities.encode(doc[e], l), l), doc[e]); + } + }); + }); + }); + }); +}); + +var astral = { + "1D306": "\uD834\uDF06", + "1D11E": "\uD834\uDD1E" +}; + +describe("Astral entities", function(){ + Object.keys(astral).forEach(function(c){ + /*it("should decode " + astral[c], function(){ + assert.equal(entities.decode("&#x" + c + ";"), astral[c]); + });*/ + it("should encode " + astral[c], function(){ + assert.equal(entities.encode(astral[c]), "&#x" + c + ";"); + }); + }); +}); diff --git a/node_modules/cheerio/node_modules/htmlparser2/.travis.yml b/node_modules/cheerio/node_modules/htmlparser2/.travis.yml new file mode 100644 index 0000000..d63ba09 --- /dev/null +++ b/node_modules/cheerio/node_modules/htmlparser2/.travis.yml @@ -0,0 +1,5 @@ +language: node_js +node_js: + - 0.8 + - 0.10 + - 0.11 diff --git a/node_modules/cheerio/node_modules/htmlparser2/LICENSE b/node_modules/cheerio/node_modules/htmlparser2/LICENSE new file mode 100644 index 0000000..0a35e02 --- /dev/null +++ b/node_modules/cheerio/node_modules/htmlparser2/LICENSE @@ -0,0 +1,18 @@ +Copyright 2010, 2011, Chris Winberry . All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/htmlparser2/README.md b/node_modules/cheerio/node_modules/htmlparser2/README.md new file mode 100644 index 0000000..e961e7d --- /dev/null +++ b/node_modules/cheerio/node_modules/htmlparser2/README.md @@ -0,0 +1,78 @@ +#htmlparser2 [![NPM version](https://badge.fury.io/js/htmlparser2.png)](https://npmjs.org/package/htmlparser2) [![Build Status](https://secure.travis-ci.org/fb55/htmlparser2.png)](http://travis-ci.org/fb55/htmlparser2) [![Dependency Status](https://david-dm.org/fb55/htmlparser2.png)](https://david-dm.org/fb55/htmlparser2) + +A forgiving HTML/XML/RSS parser written in JS for NodeJS. The parser can handle streams (chunked data) and supports custom handlers for writing custom DOMs/output. + +##Installing + npm install htmlparser2 + +A live demo of htmlparser2 is available at http://htmlparser.forbeslindesay.co.uk/ + +##Usage + +```javascript +var htmlparser = require("htmlparser2"); +var parser = new htmlparser.Parser({ + onopentag: function(name, attribs){ + if(name === "script" && attribs.type === "text/javascript"){ + console.log("JS! Hooray!"); + } + }, + ontext: function(text){ + console.log("-->", text); + }, + onclosetag: function(tagname){ + if(tagname === "script"){ + console.log("That's it?!"); + } + } +}); +parser.write("Xyz ", + "expected": [ + { + "type": "script", + "name": "script", + "attribs": {}, + "children": [ + { + "data": "", + "type": "text" + } + ] + } + ] +} \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/tests/07-unescaped_in_style.json b/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/tests/07-unescaped_in_style.json new file mode 100644 index 0000000..d6bf9fb --- /dev/null +++ b/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/tests/07-unescaped_in_style.json @@ -0,0 +1,23 @@ +{ + "name": "Unescaped chars in style", + "options": { + "handler": {}, + "parser": {} + }, + "html": "", + "expected": [ + { + "type": "style", + "name": "style", + "attribs": { + "type": "text/css" + }, + "children": [ + { + "data": "\n body > p\n\t{ font-weight: bold; }", + "type": "text" + } + ] + } + ] +} \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/tests/08-extra_spaces_in_tag.json b/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/tests/08-extra_spaces_in_tag.json new file mode 100644 index 0000000..78b30f4 --- /dev/null +++ b/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/tests/08-extra_spaces_in_tag.json @@ -0,0 +1,23 @@ +{ + "name": "Extra spaces in tag", + "options": { + "handler": {}, + "parser": {} + }, + "html": "<\n font\t\n size='14' \n>the text<\n /\t\nfont\t \n>", + "expected": [ + { + "type": "tag", + "name": "font", + "attribs": { + "size": "14" + }, + "children": [ + { + "data": "the text", + "type": "text" + } + ] + } + ] +} \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/tests/09-unquoted_attrib.json b/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/tests/09-unquoted_attrib.json new file mode 100644 index 0000000..ae5f44c --- /dev/null +++ b/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/tests/09-unquoted_attrib.json @@ -0,0 +1,23 @@ +{ + "name": "Unquoted attributes", + "options": { + "handler": {}, + "parser": {} + }, + "html": "the text", + "expected": [ + { + "type": "tag", + "name": "font", + "attribs": { + "size": "14" + }, + "children": [ + { + "data": "the text", + "type": "text" + } + ] + } + ] +} \ No newline at end of file diff --git a/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/tests/10-singular_attribute.json b/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/tests/10-singular_attribute.json new file mode 100644 index 0000000..6de1ef2 --- /dev/null +++ b/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/tests/10-singular_attribute.json @@ -0,0 +1,18 @@ +{ + "name": "Singular attribute", + "options": { + "handler": {}, + "parser": {} + }, + "html": "