iska
098c0fe467
Add initial implementation for parsing a fragment
...
https://html.spec.whatwg.org/multipage/syntax.html#html-fragment-parsing-algorithm
2015-02-28 01:03:54 +01:00
iska
7717cb7472
Add implementation for the parser's Initial Insertion Mode
...
https://html.spec.whatwg.org/multipage/syntax.html#the-initial-insertion-mode
2015-02-28 01:03:02 +01:00
iska
c2086e482e
Add parser method for inserting Comment nodes into the document
...
https://html.spec.whatwg.org/multipage/syntax.html#insert-a-comment
2015-02-28 01:01:58 +01:00
iska
6eccc61684
Rename utility method in Token classes for better semantics
2015-02-28 00:58:55 +01:00
iska
11631c7c76
Add methods to check Doctype validity and its quirks mode
2015-02-28 00:57:50 +01:00
iska
79856255da
Add header that imports all HTML Nodes for convenience
2015-02-28 00:56:35 +01:00
iska
83bca329ff
Add initial stubs for HTML Document and Element nodes
...
https://dom.spec.whatwg.org/#interface-document
https://dom.spec.whatwg.org/#interface-element
2015-02-27 00:03:35 +01:00
iska
034a28deea
Add HTML Text node
...
https://dom.spec.whatwg.org/#interface-text
2015-02-26 23:41:42 +01:00
iska
fade192485
Rename HTML Node Type enum values
...
Use HTMLNode<type> instead of HTML<type>Node
2015-02-26 20:09:27 +01:00
iska
c45adc581b
Add HTML Comment node
...
https://dom.spec.whatwg.org/#interface-comment
2015-02-26 20:08:06 +01:00
iska
5e9846b8ea
Add HTML Document Type node
...
https://dom.spec.whatwg.org/#interface-documenttype
2015-02-25 23:48:24 +01:00
iska
da00182ff2
Add HTML Node interface
...
https://dom.spec.whatwg.org/#interface-node
2015-02-25 22:38:02 +01:00
iska
aae4401167
Add convenience methods to cast HTML token to the appropriate type
2015-02-22 01:46:42 +01:00
iska
4e3c758f8c
Add initial implementation for "appropriate place for inserting a node"
...
https://html.spec.whatwg.org/multipage/syntax.html#creating-and-inserting-nodes
2015-02-22 01:46:13 +01:00
iska
3915487ca7
Add "insertion mode" state machine stub
...
https://html.spec.whatwg.org/multipage/syntax.html#the-insertion-mode
2015-02-21 14:50:52 +01:00
iska
f9c8743106
Add "tree construction dispatcher" and token handling stub
...
https://html.spec.whatwg.org/multipage/syntax.html#tree-construction
2015-02-21 14:30:44 +01:00
iska
4afa6d11e1
Change HTML test's description property to "title"
2015-02-19 22:26:10 +01:00
iska
25c233eaaa
Add tagname attribute for HTML Element
2014-11-08 02:09:03 +01:00
iska
a59fec42e7
Add enum for HTML Namespaces
2014-11-08 02:08:42 +01:00
iska
2d6889878b
Add implementation for FastEnumeration protocol for forin-iteration
2014-11-02 13:54:21 +01:00
iska
b0f27e3f2f
Add missing new-lines in Token classes
2014-11-02 13:53:54 +01:00
iska
fc91ae1296
Remove unnecessary method to get HTML Tokenization state as String
2014-11-01 22:45:46 +01:00
iska
8787e1b0b9
Add all HTML5 Lib's tokenizer tests
2014-11-01 22:25:20 +01:00
iska
ccc355d80e
Replace unconsuming with a location mark in the current character in After DOCTYPE Name state to avoid consuming the character twice
...
Otherwise the parse error would be emitted multiple times if it is an invalid or unexpected character
2014-11-01 22:24:32 +01:00
iska
0ea6eb2b4e
Fix Attribute Name state for NULL character
...
The attribute should not be finalised here, since its value wasn't reached yet
2014-11-01 22:22:38 +01:00
iska
477af1f4ab
Change parse error message to 0x format instead of U+
2014-11-01 22:06:01 +01:00
iska
97df7c5dd8
Fix Attribute Name state to prevent finalising a pending attribute name before it's finished
2014-11-01 22:05:22 +01:00
iska
e8c74da8e2
Fix Bogus Comment state for nil-characters
2014-11-01 22:04:23 +01:00
iska
244021072c
Remove erroneous parse-error emit in Comment End state
2014-11-01 22:03:34 +01:00
iska
0835e3d120
Add a "reconsume" method for current character to avoid scanning the Stream repeatedly
...
Reconsume differs from the Unconsume method, since it doesn't rewind the scan location to the previous characters, but instead sets a flag to return the last consumed character on the next acess
2014-11-01 22:02:36 +01:00
iska
622e22737b
Fix emitted Token in Before Attribute Name state
2014-11-01 15:49:42 +01:00
iska
8fd6e89854
Fix scan location after reading Named Entity
2014-11-01 15:19:46 +01:00
iska
58220a464c
Add missing break statement to prevent fall-through in End Tag Open state
...
.. and change parse error to look like the others
2014-11-01 15:19:20 +01:00
iska
b3ee713e9b
Fix DOCTYPE Token's public and system identifier initialisation issue
...
On first access these must be inited before use
2014-11-01 15:12:58 +01:00
iska
a23e1a13c9
Fix surrogate pair handling and remove Input Stream's separate error-reporting class
...
Upon reading a surrogate pair the scan location should be advanced by two characters instead of one
2014-10-31 22:32:34 +01:00
iska
bc8abb116f
Fix UTF32Char to String conversion for invalid unicode characters
...
Invalid, isolated surrogate pairs, UTF32 characters should handled specially and converted to UniChars first
2014-10-31 21:46:54 +01:00
iska
a7892a2edf
Cleanup some parse error messages in Tokenizer for overall consistency
2014-10-31 18:26:34 +01:00
iska
2fa0e793e0
Replace dictionary with two arrays for Named Entity replacement
...
Currently the entity name is binary-searched and its replacement-value is accessed via found index
2014-10-31 18:25:54 +01:00
iska
c04d4a35f3
Set performance baseline for tokenizing step
2014-10-31 18:07:18 +01:00
iska
aaec5971b8
Add performance test for tokenizing step
2014-10-31 18:06:59 +01:00
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