iska
bc3a7165ec
Fix logic for Named Entity replacement
...
This will be improved further later on
2014-10-31 18:06:15 +01:00
iska
8a2422426e
Fix several state switches for Attribute states
...
Question Mark character was use instead of Quotation Mark
2014-10-31 00:11:31 +01:00
iska
d5ff28b1de
Fix parsing numeric entities
...
Numbers > UINT_MAX should be handled correctly now
2014-10-31 00:10:41 +01:00
iska
d45ebb611e
Fix state switch in Attribute Name state
2014-10-30 21:28:08 +01:00
iska
a28580b258
Fix initialisation of HTML5 Lib tests
...
Checks for nil values and inits accordingly
2014-10-30 21:18:56 +01:00
iska
e2e4940100
Add implementation for finalising the current attribute of the current Tag Token
2014-10-30 21:18:15 +01:00
iska
1e4fe4ae45
Fix state switch in Tag Name state
...
Otherwise it's an infinite loop
2014-10-30 21:17:34 +01:00
iska
44fb192e22
Add helper methods for appending to attribute name/value
...
Initialises lazily on first access
2014-10-30 21:17:00 +01:00
iska
e896c1fe0b
Fix initial values for HTML Tokens and handle nil-parameter
2014-10-30 21:15:12 +01:00
iska
dd95a639c3
Add nil checks for DOCTYPE identifiers when initing HTML5 Lib tests
2014-10-26 23:43:52 +01:00
iska
9d2664fce0
Fix regex match range index in Process Double Escaped method
2014-10-26 23:43:29 +01:00
iska
f2993181a8
Change method names in HTML5 Lib test class
...
Change Fixture to Dctionary
2014-10-26 23:43:21 +01:00
iska
a00c3a27d7
Fix several bugs in Named Entity Character Reference method
2014-10-26 23:21:07 +01:00
iska
8509cb1955
Remove faulty statement in Char Ref Attribute Value state
...
Current char should not be unconsumed here, otherwise we land in an infinite loop
2014-10-26 22:49:15 +01:00
iska
f04abf6236
Fix numeric entity replacement bug where wrong variable and valid-range were used
2014-10-26 22:29:23 +01:00
iska
d5a00713ad
Fix equality methods in HTML token classes for the nil-cases
2014-10-26 22:27:58 +01:00
iska
6cfb6cd65f
Fix tokenizer for Bogus Comment state
...
Last character must be unconsumed: "emit a comment token whose data is the concatenation of all the characters starting from and including the character that caused the state machine to switch into the bogus comment state"
https://html.spec.whatwg.org/multipage/syntax.html#bogus-comment-state
2014-10-26 19:03:23 +01:00
iska
e7126a720f
Add category to overwrite isEqual method in Parse Error tokens for testing
...
All parse error are treated as equal
2014-10-26 18:12:25 +01:00
iska
e43d7c21d1
Change tokenzing to concatenate all adjacent character tokens into one
2014-10-26 18:11:21 +01:00
iska
a3358dd8b0
Fix HTML5 Lib test to correctly handle ParseError token
...
JSON structure is not strong with this one
2014-10-26 18:10:32 +01:00
iska
e73a8dc512
Revert "Adapt HTML5 Lib test class to break output into multiple character tokens"
...
This reverts commit 79da32ed72 .
2014-10-26 18:02:47 +01:00
iska
f45c9d33a6
Fix bug in named entity method
...
initial character should be the next instead of current in the stream
2014-10-26 16:37:48 +01:00
iska
971f7b3cf0
Add methods to access tokens in the Tokenizer class
2014-10-26 02:03:37 +02:00
iska
79da32ed72
Adapt HTML5 Lib test class to break output into multiple character tokens
2014-10-26 02:02:58 +02:00
iska
7d9b66ff8d
Add "HTML Standarad" html file to tests resource for benchmarking
...
As of the latest update (2014/10/23) the test file is 8.1MB
2014-10-26 02:01:48 +02:00
iska
8088d239df
Add common test case class
2014-10-26 01:59:52 +02:00
iska
f96c69c6f7
Remove fast enumeration protocol and its method implementation from Tokenizer class
2014-10-26 01:55:12 +02:00
iska
141310f910
Add equality and hash method for HTML Token classes
2014-10-26 01:54:30 +02:00
iska
65bd4c15f1
Remove EOF token and replace it with a boolean
2014-10-26 01:53:46 +02:00
iska
b7039aba1d
Add html5lib tests folder to tests target supporting files
2014-10-26 01:52:05 +02:00
iska
5c28638be6
Add html5lib-tests as git submodule
2014-10-25 17:37:47 +02:00
iska
0910290ef2
Add generic HTML5LibTest class for performing HTML5lib tests
...
https://github.com/html5lib/html5lib-tests
2014-10-25 17:35:58 +02:00
iska
779fcf0a73
Improve parse error reason messages in Tokenizer class
2014-10-25 01:07:51 +02:00
iska
0a92fb8eb4
Add description methods for HTML tokens
2014-10-25 01:07:23 +02:00
iska
d4401c0f17
Remove UTF32Char option for character tokens and use strings only
2014-10-25 01:06:55 +02:00
iska
d119a78273
Add stream location to Parse Error tokens for more comprehensive reporting
2014-10-24 01:08:06 +02:00
iska
7c4e39af07
Add current location property to Input Stream reader
...
Can be used for better parse errors reporting
2014-10-24 01:07:07 +02:00
iska
9e198c9766
Add init method to Tokenizer header and extend to accept string parameter
2014-10-24 01:06:21 +02:00
iska
5d3ea61a04
Refactor HTML Tokens into separate files
2014-10-23 23:52:43 +02:00
iska
98357f9d4b
Add new virtual project group for Tokenizing implementation
2014-10-23 20:14:20 +02:00
iska
6daac059bd
Add project file with entries for Element class
...
left out mistakenly in a previous commit: 22131d5ef1
2014-10-23 20:13:01 +02:00
iska
d2507dcd5b
Use little endian UTF-32 encoding for char-string conversion
2014-10-23 20:08:02 +02:00
iska
968a6aff79
Implement named character entity replacement
...
https://html.spec.whatwg.org/multipage/syntax.html#tokenizing-character-references
2014-10-23 20:07:30 +02:00
iska
e88f0ae3e3
Add class with Named Character Reference dictionary
...
https://html.spec.whatwg.org/multipage/syntax.html#named-character-references
2014-10-15 22:41:54 +02:00
iska
5597323fbf
Add a Numeric Entity Replacement table to replace the switch-statement for windows1525 trick
2014-10-12 19:12:23 +02:00
iska
7489adc285
Fix class cast when emitting character token in HTML Tokenizer
2014-10-05 19:17:01 +02:00
iska
29f20923bc
Add handling of tag token emit errors in HTML Tokenizer
2014-10-05 19:16:37 +02:00
iska
680a84f389
Fix typo in HTML Input Stream error domain
2014-10-05 19:15:44 +02:00
iska
b0391dc7ba
Add fast enumeration for HTML Tokens in the Tokenizer class
2014-10-05 15:48:01 +02:00
iska
22131d5ef1
Add class stub for HTML Element
2014-10-05 15:35:41 +02:00