summaryrefslogtreecommitdiff
path: root/src/HTML5/Parser/DOMTreeBuilder.php
AgeCommit message (Collapse)Author
2021-06-05Fix PHP 8.1 deprecationsAlexander M. Turek
2020-07-05cs fixAsmir Mustafic
2020-06-24Add special case for end tag </br>. Fixes #185Rowan Tommins
Normally, an end tag for a void element would simply be discarded, but the spec includes a special rule as follows: > An end tag whose tag name is "br" > Parse error. Drop the attributes from the token, and act as > described in the next entry; i.e. act as if this was a "br" > start tag token with no attributes, rather than the end tag > token that it actually is.
2019-06-15Merge pull request #168 from idimopoulos/html5_encodingAsmir Mustafic
Set default encoding in the DOMDocument object
2019-06-14Set default encoding in case it does not exist.Ilias Dimopoulos
2019-03-10drop hhvm supportAsmir Mustafic
2018-11-25Normalize PHPDoc commentsTitouan Galopin
2018-11-25Fix coding styleTitouan Galopin
2018-11-02Add more extensions on composer.json, improve phpdocs and remove dead codeTitouan Galopin
2017-12-04#136: Respect self-closing tags only on foreign elementsAlbert Peschar
2017-08-25handle special "img" "image" handlingAsmir Mustafic
2015-02-06Using constant as optionsAsmir Mustafic
2015-02-06Adding "disableHtmlNsInDom" and "targetDocument" options to allow moreJohn Slegers
flexible HTML DOM creation. New Options: * disableHtmlNsInDom = Allows the use of createElement instead of createElementNS for HTML elements. * targetDocument = allows an existing DOMDocument (or subclass thereof) to be passsed to the DOMTreeBuilder instead of creating a new one.
2014-12-14Auto closing tags if they allows only inline nodes as child nodesAsmir Mustafic
Fixes #68
2014-09-23Fragments with rulesAsmir Mustafic
2014-07-18Fixed a HHVM issue (can't reproduce on this project...)Asmir Mustafic
2014-07-08Removed xmlns workaround, using a different method, that supports XMLNSAsmir Mustafic
declarations
2014-06-30Fiexed a issue when xmlNamespaces = trueAsmir Mustafic
2014-06-26Added compatibility with Facebook HHVM 3.2Asmir Mustafic
2014-06-17PSR-2 formattingAsmir Mustafic
2014-06-17Custom namespaces (XML style)Asmir Mustafic
2014-06-11PSR-2 code styleAsmir Mustafic
2014-06-11PSR-0 vendor namespaceAsmir Mustafic
2014-04-16Don't throw an exception for invalid tag namesMišo Belica
2014-02-21Ignore attributes with illegal chars in name (fixes #23)Mišo Belica
This is neccesary because method "DOMElement::setAttribute" throws exception for wrong names so DOM elements can't contain these attributes.
2014-02-19Removed trailing whitespaceMišo Belica
2014-02-07#26: Updated the case handling for tags to allow for uppercase tags and ↵Matt Farina
normalizing tag names to lowercase (per 8.2.4.9) except for SVG foreign tags that are case sensitive.
2013-11-06Cleaning up the sarcasm tag parsing.Matt Farina
2013-11-06Improved test coverage. This caused a bug in processor instructions to ↵Matt Farina
appear. Fix them so they actually work now.
2013-09-26Switched to late static bindings to make altering and building with these ↵Matt Farina
classes a little easier.
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-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-06-28Documentation updates for Beta 1!Matt Butcher
2013-06-27Changing prefix handling per section 2.9 of the spec.Matt Butcher
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-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-13Support for mixed casing on SVG and MathML.Matt Butcher
2013-05-25Fixed issue #3: static call to non-static method.Matt Butcher
2013-05-02Rules for LI, DT, DD, RT, and RP.Matt Butcher
2013-05-02Changed constants from UNARY_TAG to VOID_TAG to follow spec.Matt Butcher
2013-05-01Fixes for PI tests.Matt Butcher
2013-05-01Fixed faulty test.Matt Butcher
The parser is actually really strict, and maybe we should back off on enforcing some of the stricter rules.
2013-05-01Fixed CDATA.Matt Butcher
2013-04-24MAJOR changes to the DOMTreeBuilder.Matt Butcher
This now supports most of the tree building. It has limited support for insertion modes, as well as some syntax correction.
2013-04-24Merge branch 'master' of github.com:technosophos/HTML5-PHPMatt Butcher