summaryrefslogtreecommitdiff
path: root/src/HTML5/Serializer
AgeCommit message (Collapse)Author
2013-05-30Updated the option naming so the serializer and parser can share the same ↵Matt Farina
default option setup and have it still make sense.
2013-05-27Added OutputRules tests.Matt Farina
2013-05-27Removing an outdated comment.Matt Farina
2013-05-27Handling in the traverser the case where the dom passed in is a node list.Matt Farina
2013-05-27Added an interface for Output Rules to document how they work.Matt Farina
2013-05-27Added some rule documentation.Matt Farina
2013-05-27Fixed cdata and text handling.Matt Farina
wholeText on a text node holds the text of logically adjacent text. That means a new line followed by cdata following by spaces and/or a new line will all be in the cdata wholeText. This change fixes our handling to use data rather than wholeText. Also fixed the cdata regex tests.
2013-05-27Seperated the Traverser from the Output generation.Matt Farina
The Traverser now simply walks through a document. The OutputRules convert the nodes into output html. The rules is a configurable options. By default OutputRules will generate html close to the html5 that was parsed. Alternate rule implementation (e.g., minify rules, pretty spacing rules) can be set as the default or on an individual case.
2013-05-18Fixed issue where closing tags were not being written.Matt Farina
2013-05-18General escaping and full html5 encoding with named character references work.Matt Farina
2013-05-07Only raw text should not be encoded (e.g., text in a script or style tag).Matt Farina
2013-05-07Make encoding work (with testing) under php 5.3.Matt Farina
2013-05-07Tested and updated the traverser encoding in php 5.4.Matt Farina
2013-05-07Fixed writing text node.Matt Farina
2013-05-06Updated the traverser text method and added a test.Matt Farina
2013-05-06Starting work on internals of the traverser.Matt Farina
2013-05-06Added some commenting on the operation of the traverser.Matt Farina
2013-05-03Added comments and tests for wr on traverser.Matt Farina
2013-05-03Tests and comments for new lines in the traverser.Matt Farina
2013-05-02Moved the traverser block checking code to use the mask on the elements class.Matt Farina
2013-05-02Changed constants from UNARY_TAG to VOID_TAG to follow spec.Matt Butcher
2013-04-29Moved the traverser unary tests to the elements class.Matt Farina
2013-04-24Moved back to array lookups for html5 elements. This is SIGNIFICANTLY faster ↵Matt Farina
then the regular expressions and twice as fast as the next fastest method I tested.
2013-04-22Added documentation to the traverserMatt Farina
2013-04-17Rewrote isUnary testing and added tests.Matt Farina
2013-04-16Converted the isBlock method to use a case insensitive mask and added tests ↵Matt Farina
for it.
2013-04-16Moved Serializer and Traverser into the Serializer directory.Matt Farina