Commit Graph
426 Commits
Author SHA1 Message Date
iska c09adc2f96 Add Node properties for previous and next sibling elements 2015-11-27 01:10:07 +01:00
iska 09991a149f Fix :disabled selector's check for disabled form elements
Should've  used or- instead of all-combinator
2015-11-27 01:01:02 +01:00
iska f735fcdfd6 Treat nil attribute value as an empty string in the Attribute selector 2015-11-27 00:47:45 +01:00
iska 5a3c1063e7 Fix Nth-Expression selector's compute-index methods 2015-11-27 00:47:24 +01:00
iska 8cb088367d Add Node methods to handle child elements' indices 2015-11-27 00:46:57 +01:00
iska 7ec90d6470 Fix escaped-code-point consuming in CSS input stream 2015-11-25 21:34:43 +01:00
iska 002564f9ae Use debug description in combinator selectors 2015-11-25 21:33:06 +01:00
iska 4c80c520d4 Fix reconsume checks in input stream reader for CSS logic 2015-11-24 23:04:21 +01:00
iska 85abf35099 Fix implementation of the shorthand "anyOf" selector 2015-11-24 23:03:13 +01:00
iska 578806ec2f Add description methods for compound selectors 2015-11-24 23:02:32 +01:00
iska 7923efb02b Add compound selector method to append further selectors 2015-11-24 23:02:14 +01:00
iska f4d42e0753 Fix description methods for combinator selectors 2015-11-24 23:01:49 +01:00
iska 56f99f9168 Add input stream method to consume a CSS combinator 2015-11-24 23:01:27 +01:00
iska c8dd1d7791 Fix consume CSS identifier input stream method
http://www.w3.org/TR/CSS21/syndata.html#characters
https://drafts.csswg.org/css-syntax/#consume-name
2015-11-24 23:01:11 +01:00
iska c57d3453fc Add id & class selector tests 2015-10-26 22:27:00 +01:00
iska a413156514 Fix method name for checked element selector 2015-10-26 22:26:43 +01:00
iska 203d153487 Fix hyphen-attribute test 2015-10-26 22:26:19 +01:00
iska 4ceb913b9f Add HTMLKit workspace and setup project headers 2015-10-26 22:26:00 +01:00
iska 7896f1687e Remove temp test case from type selector tests class 2015-10-23 23:51:30 +02:00
iska 55bb8effb2 Add tests for the CSS Combinator selectors 2015-10-23 23:48:47 +02:00
iska 2e10c23f52 Add debug description method to HTML Element 2015-10-23 22:54:34 +02:00
iska 4f47a750e0 Use lowercase string in the Nth-Expression selector parser 2015-10-23 22:54:06 +02:00
iska 46beae1b2d Change attribute selector's debug description string 2015-10-23 22:53:06 +02:00
iska 2e441727bc Fix equals method in the attribute selector for iOS target 2015-10-23 22:52:40 +02:00
iska cc101b9f4e Fix type selectors in the main header's implementation 2015-10-23 22:52:14 +02:00
iska 0635744a2d Add a CSS selector-base Node Filter implementation 2015-10-23 22:50:51 +02:00
iska b5bb0a48b6 Add tests for the Nth-Expression selectors 2015-10-23 22:50:20 +02:00
iska 95ffccf67b Add HTML Node methods for selecting elements with given CSS Selectors 2015-10-23 22:49:25 +02:00
iska 6af01a1214 Add -ObjC to iOS testing target to load category methods 2015-10-22 19:20:22 +02:00
iska 667693939f Update project settings for Xcode7 2015-10-22 19:12:42 +02:00
iska f05adfb56b Add implementation for the Nth-Expressions selector
http://www.w3.org/TR/css3-selectors/#structural-pseudos
2015-10-21 23:34:24 +02:00
iska bed2edf22a Remove obsolete CSS Tokenizer and Token classes 2015-10-21 22:32:09 +02:00
iska 2574736359 Use pseudo class and block selectors for parameterless pseudo class selectors 2015-10-21 22:30:58 +02:00
iska ab7de014cf Add implementation for "required" and "optional" selectors
https://html.spec.whatwg.org/multipage/scripting.html#selector-reqiored
https://html.spec.whatwg.org/multipage/scripting.html#selector-optional
2015-10-21 22:30:22 +02:00
iska 15e768267a Rename CSS tokenizer code points header file 2015-10-21 22:21:24 +02:00
iska ee82cacc48 Add CSS input stream method to consume characters till given codepoint is met 2015-10-21 22:16:18 +02:00
iska 61d7c683fb Add implementations for structural pseudo class selectors
https://html.spec.whatwg.org/multipage/scripting.html#selectors
http://api.jquery.com/category/selectors/jquery-selector-extensions/
http://sizzlejs.com
2015-10-21 22:15:36 +02:00
iska bd84884bf7 Add a block-based selector class for inline selector implementations 2015-10-21 22:13:03 +02:00
iska f248b39d26 Move Nth-Expression typedef to the public header 2015-10-21 00:35:07 +02:00
iska 118ea137f4 Update existing type and attribute tests for new structure 2015-10-20 21:31:08 +02:00
iska 0366f39d1a Add public header for all available selectors and hide the actual implementations 2015-10-20 21:30:39 +02:00
iska d107c05a44 Add stubs for the Nth-Expression Selectors
http://www.w3.org/TR/css3-selectors/#structural-pseudos
2015-10-20 21:17:42 +02:00
iska 5ca3bf1192 Replace nullability specifiers from methods and properties with nullability-regions 2015-10-20 21:15:30 +02:00
iska 02393ddedd Add implementation for the CSS Combinators
http://www.w3.org/TR/css3-selectors/#combinators
2015-10-19 21:51:46 +02:00
iska 33df9e7fb2 Add implementation for combining multiple selectors with "All" and "Exists" quantifiers 2015-10-19 21:49:51 +02:00
iska 6020b2bdd9 Add implementation for the negation and "has" selectors
The negation selector is specified here:
http://www.w3.org/TR/css3-selectors/#negation

The "has" selector is an extra convenience selector
2015-10-19 21:41:33 +02:00
iska c44c77d63d Refactor selectors code
- Remove simple sequence
- Remove simple selector protocol
- Let selectors subclass CSSSelector directly
2015-10-18 22:36:03 +02:00
iska 9905f45e27 Change the CSS selector base class to a protocol unrelated to the HTML Node Filter 2015-10-12 20:12:50 +02:00
iska c868bd1a56 Add HTML stream method to consume characters in given string 2015-10-12 20:00:44 +02:00
iska 8f38aed6c6 Add "not" attribute selector to match attribute not-having given value 2015-10-12 20:00:08 +02:00