summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2013-09-26Moved the output rules from being a configurable option. This is part of a ↵Matt Farina
change to commonize how we override classes to be more consistent.
2013-09-15Fix for #13: Malformed HTML is getting mangled instead of fixed.Matt Butcher
Thanks to @sascha-tasche for reporting it. And to @mattfarina for digging up what we should really do to fix it.
2013-09-15Fixed the logic for search for a close-instruction (#16).Matt Butcher
Again, thanks to @MrElectronic.
2013-09-15For #16, removed extra wr(' ') from PI serializer.Matt Butcher
This caused a trailing whitespace after the PI contents and before the PI closing tag.
2013-09-15Fix for #16: $ele changed to $node.Matt Butcher
Thanks to @MrElectronic for catching this one.
2013-09-15Committed MrElectronic's change for #17.Matt Butcher
Fixed quotedString.
2013-08-10#11: Updated the text handling in the tree builder to more accurately work ↵Matt Farina
in before head mode.
2013-08-07#11: Updating the text handling for parsing when in before head mode. Now ↵Matt Farina
passing the ignored string characters through to the DOM and giving a parse error on other strings. Since this DOM is not used to render for display and it may be turned back into html it is useful to preserve these characters.
2013-07-10wrong $this->scanner->next() call.Kuhar Vasily
2013-07-01Added more mathml tests.Matt Farina
2013-06-28Updated documentation on elements and exception.Matt Butcher
2013-06-28Documentation updates for Beta 1!Matt Butcher
2013-06-27Merge branch 'master' of github.com:Masterminds/html5-phpMatt Butcher
2013-06-27Changing prefix handling per section 2.9 of the spec.Matt Butcher
2013-06-26Fixed an issue when writing fragments and trying to check for a tag name on ↵Matt Farina
a fragment.
2013-06-26Added basic architectural documentation for the serializer/writerMatt Farina
2013-06-26Added DOMDocumentFragment to the parser documentation.Matt Farina
2013-06-26Added a helper method of loadHTMLFragment to get a DOMDocumentFragment.Matt Farina
2013-06-26Moved serializing of DOMDocumentFragment to walking since we will only ever ↵Matt Farina
encounter this class once. It's a container like DOMDocument.
2013-06-25Issue #8: Can now parse fragments.Matt Butcher
2013-06-24Trying another method of fragment parsing.Matt Butcher
This time try starting in IM_IN_BODY. /cc @mattfarina
2013-06-24#8: Added DOMDocumentFragment serializing.Matt Farina
2013-06-18Copied errors from document to fragment.Matt Butcher
2013-06-18More work on fragment parser.Matt Butcher
2013-06-18Very beginning of work on fragment parser (#4).Matt Butcher
2013-06-17Added mathml tests to test case sensitivity and fixed the parser for the ↵Matt Farina
correct mathml tag name. Closing #7.
2013-06-17Fixing some indentation.Matt Farina
2013-06-17#4 Added SVG tests and fixed issues with self closing non-html tags and ↵Matt Farina
attributes with a value of 0.
2013-06-17Changed the svg/mathml handling to more closely mirror the parser.Matt Farina
2013-06-13Merge branch 'master' of github.com:Masterminds/html5-phpMatt Butcher
2013-06-13Support for mixed casing on SVG and MathML.Matt Butcher
2013-06-12Added support for attributes without values and a attribute test.Matt Farina
2013-06-12#4 and #7, Cleaned up the MathMl support and added a test.Matt Farina
2013-06-11Part of #4 and #7: Added normalization of element and attribute names to SVG ↵Matt Farina
and MathML output.
2013-06-11Added SVG and MathML element and attribute normalization.Matt Farina
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-30Removed the options argument from the parser since they aren't being used.Matt Farina
2013-05-30Merge branch 'master' of github.com:Masterminds/html5-phpMatt Butcher
2013-05-30Fix for issue #6: DOCTYPE is no longer case sensitive.Matt Butcher
2013-05-29Moved mbstring encoding to be used before iconv. Tests passing on PHP 5.4.Matt Farina
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-25Fixed issue #3: static call to non-static method.Matt Butcher
2013-05-18Fixed issue where closing tags were not being written.Matt Farina
2013-05-18Merge branch 'master' of github.com:technosophos/HTML5-PHPMatt Farina