Commit graph

216 commits

Author SHA1 Message Date
0c13114dee Remove leftover uses of emitToken in tokenizer 2018-08-02 11:46:01 -04:00
9df201f663 Remove erroneously added sub-repository 2018-08-02 11:31:59 -04:00
0d7a0a3367 Change tokenizer constant references to self::
Changing static:: to self:: makes constant de-referencing a
compile-time operation rather than run-time, potentially improving
performance. As constants cannot be overridden by extending classes,
there is no advantage to using static:: for these constants
2018-08-02 11:30:12 -04:00
027e5b9f58 Moved tokenizer to its own class
• Changed the name of the parser instance variable from Parser::$self to Parser::$instance
• Added parse errors for entities into ParseError.
• Moved Parser::fixDOM to DOM::fixIdAttributes.
• Added an exception for when the tokenizer enters an invalid state (infinite looping).
• Made ParseError use Parser::$instance->data instead of a passed around DataStream object.
2018-08-01 16:40:03 -05:00
e8bb3a97f7 Random fixes
• Made names of storage property in Stack and ActiveFormattingElementsList consistent to elsewhere
• Parser has its own public static variable that is an intance of itself, so ActiveFormattingElementsList can use that instead of passing an instance around.
• Added separate exception for ActiveFormattingElementsList
2018-07-31 12:47:56 -05:00
0d21ed5d72 More active formatting elements stuff 2018-07-30 17:03:10 -05:00
08696fc4c5 Added List of Active Formatting Elements 2018-07-30 08:12:19 -05:00
07d402e2d7 Simplified element creation methods 2018-07-26 17:01:53 -05:00
49a04997c9 Strict typing :) 2018-07-26 16:36:35 -05:00
1fc65f85bd Started HTML content tree building
• Removed html5.php; shouldn't have been there to begin with.
• Fixed bug where when feeding ParseError::trigger the wrong number of parameters it wouldn't have the correct exception to throw.
2018-07-26 16:30:29 -05:00
de7cc7cbfa Fixing foreign content stuff
• Changes to the spec since the last edit required a rewrite of the tree building algorithm.
• Searching the stack should search from reverse by default because the spec works that way.
• Rewrote StartTagToken because the token attributes need to be easily editable as per the spec foreign attributes are edited before the token goes through the element creation process and not after.
• Yes, there's a goto. Sue me.
2018-07-25 09:57:27 -05:00
6f74630c98 Begin Implementation of Tree Builder
• Added parsing instructions for tokens in foreign content
2018-04-08 10:46:30 -05:00
bd59b70b98 Document more requirements 2018-03-21 14:16:25 -04:00
e4d1e65ded Fix compilation error 2018-03-21 13:38:05 -04:00
a89f6c9f09 Beginning Rewrite 2018-03-21 10:55:32 -05:00
06cffb2e25 Initial commit. 2017-09-09 23:15:05 -05:00