iska
bf147a6bb6
Remove redundant switch-state call in the Tokenizer
2015-12-20 00:02:05 +01:00
iska
0a620d74b6
Add source documentation for the Toknizer classes
2015-12-19 23:59:39 +01:00
iska
8893f28e4d
Add HTML Element class-list property
2015-11-30 20:22:35 +01:00
iska
d924063b02
Add implementation for a DOM Token List
...
https://dom.spec.whatwg.org/#interface-domtokenlist
2015-11-30 20:22:11 +01:00
iska
f9065ab8c3
Add playground with sample code
2015-11-30 02:50:12 +01:00
iska
9815d3b39e
Add nullability annotations throughout the code base
2015-11-30 02:49:58 +01:00
iska
1e30e4d86f
Add HTML Node's querySelector & querySelectorAll methods
2015-11-29 19:54:23 +01:00
iska
188e5a0e56
Add missing check for nil-reference in the selector parser
2015-11-29 19:53:52 +01:00
iska
991e868d14
Add selector initializer for creating instances with a given selector string
2015-11-29 19:53:39 +01:00
iska
f3af320096
Share target schemes
2015-11-29 19:52:15 +01:00
iska
9d60a26622
Organize public headers and build phases for iOS
2015-11-29 18:44:43 +01:00
iska
936348d300
Add iOS Framework target
2015-11-29 18:33:04 +01:00
iska
6410eb672a
Organize framework target's build phases
2015-11-29 18:22:02 +01:00
iska
49e060cd3c
Organize public header imports
2015-11-29 18:09:58 +01:00
iska
dac3cee3d8
Add missing imports to the umbrella CSS Selectors header
2015-11-29 18:04:24 +01:00
iska
5ee3b9b614
Organize CSS Selectors' virtual groups
2015-11-29 18:03:56 +01:00
iska
a33f4e0834
Use nodes tree description in HTML Parser tests
2015-11-29 03:29:13 +01:00
iska
9e4007dcba
Use nullability annotations for HTML Ordered Dictionary
2015-11-29 03:29:12 +01:00
iska
50b67cfa94
Add CSS Selector tests into own virtual group
2015-11-29 03:29:12 +01:00
iska
47d244289e
Merge branch 'feature/css_selectors' into develop
2015-11-28 21:14:24 +01:00
iska
6b81d6e465
Add tests for the CSS Selector Parser
2015-11-28 21:11:48 +01:00
iska
13b8fe7808
Add CSS Selectors Parser implementation
2015-11-28 21:11:16 +01:00
iska
94fed8afa1
Add CSS test fixtures
...
Tests are adapted from the official suite:
http://www.w3.org/Style/CSS/Test/CSS3/Selectors/current/html/static/flat/
Test file format:
Each test file is a HTML fragment with:
<script> element with id="selectors": contains a JSON array of several selector
definitions. Each selector definition has a selector string as input, a "match" array
of the expected matched IDs. Some selectors must fail with a parse error, such
selectors have an "error" key with the error location in the selector string.
<div> element with id="testDOM": contains the DOM fragment which should be
used to select the elements for each of the defined selectors.
2015-11-28 21:10:31 +01:00
iska
30dc6cf343
Add HTML Node method to count child elements
2015-11-28 21:09:44 +01:00
iska
badf070907
Add HTMLKit error domain header
2015-11-28 21:09:25 +01:00
iska
3443321459
Add missing check in cosnume-character HTML stream method
...
Should only advance location if not reconsuming previous character
2015-11-28 21:08:39 +01:00
iska
60dc6bfc43
Fix nth-last-child selector
2015-11-28 21:07:10 +01:00
iska
60a5821a2c
Fix general sibling combinator selector
2015-11-28 21:06:52 +01:00
iska
621dbe36d6
Fix pseudo selectors' names
2015-11-27 19:44:57 +01:00
iska
50ae2c5283
Fix :root selector
2015-11-27 19:41:09 +01:00
iska
0cb374681c
Fix sibling combinator selectors
2015-11-27 01:10:27 +01:00
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