Commit Graph
20 Commits
Author SHA1 Message Date
iska c5b60e2977 Add method to consume characters up-to a given string in Input Stream Reader 2014-10-04 23:28:00 +02:00
iska 721839f54a Add class stub for HTML Parser 2014-10-04 21:58:25 +02:00
iska 0519ff597d Rename method to "emit" prefix instead of "report" in Input Stream errors for naming consistency 2014-10-04 21:57:23 +02:00
iska 19ae5b0516 Use explicit values for current-consumed characters in Input Stream Reader class 2014-10-04 21:56:22 +02:00
iska 26e7ba35d0 Fix whitespace and indentation in several classes 2014-10-04 21:55:27 +02:00
iska adabe9c3f3 Add methods to consume given strings at the current location in Input Stream Reader 2014-10-04 21:54:15 +02:00
iska bfd9c9df97 Add implementation to consume a number reference
https://html.spec.whatwg.org/multipage/syntax.html#consume-a-character-reference
2014-09-22 00:31:44 +02:00
iska ebcbbbf693 Add initial implementation for "consuming a character reference"
https://html.spec.whatwg.org/multipage/syntax.html#consume-a-character-reference
2014-09-22 00:20:06 +02:00
iska b74c67498b Add methods to emit HTML tokens in the Tokenizer class 2014-09-22 00:19:18 +02:00
iska 5724912986 Add central definitions for characters used throughout HTML parsing
Several inlined functions are also defined to perform checks in read characters
2014-09-22 00:18:27 +02:00
iska 12bcac50bc Add methods to consume hex and decimal numbers in Stream Reader 2014-09-22 00:17:11 +02:00
iska f7d7d987f3 Add method stubs for tokenizer states
These states are defined in the HTML standard:
https://html.spec.whatwg.org/multipage/syntax.html#tokenization
2014-09-20 23:08:45 +02:00
iska 0400fb74aa Add HTML token definitions
Implementation will follow when said tokens are used during tokenization
2014-09-20 23:06:48 +02:00
iska 5cc13d0b2a Add methods to mark location and rewind-to-mark in HTML stream reader
This will allows us to unconsume/reconsume characters during tokenization
2014-09-20 23:05:55 +02:00
iska 28623d951c Define HTML tekonization states 2014-09-20 23:04:43 +02:00
iska fb01febfca Add class stubs for HTML tokenizer implementation
https://html.spec.whatwg.org/multipage/syntax.html#tokenization
2014-09-20 23:04:23 +02:00
iska fb9dcaa608 Add several checks and error reporting while processing the input stream
Control and undefined character, isolated surrogates and carriage returns are handled according to the standard
2014-09-15 23:24:16 +02:00
iska 1fc1f1c71c Add initial implementation for a HTML Input Stream processor
http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#preprocessing-the-input-stream
2014-09-15 23:03:33 +02:00
iska b220b7d561 Add static library target for iOS build 2014-09-15 22:32:32 +02:00
iska d3be396ffc Add Xcode framework project for HTMLKit 2014-09-15 22:26:03 +02:00