summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-05cs fixAsmir Mustafic
2020-07-05prepare 2.7.3Asmir Mustafic
2020-07-03Merge pull request #190 from Masterminds/mitigate-cyclic-refsAsmir Mustafic
mitigate cyclic reference between output rules and the traverser objects
2020-07-03mitigate cyclic reference between output rules and the traverser objectsAsmir Mustafic
2020-07-01prepare 2.7.2Asmir Mustafic
2020-06-30Merge pull request #187 from lyrixx/fix-memory-leakAsmir Mustafic
Fixed memory leak in HTML5::saveHTML()
2020-06-30Fixed memory leak in HTML5::saveHTML()Grégoire Pineau
2020-06-24Merge pull request #186 from IMSoP/issue-185-closing-brAsmir Mustafic
Add special case for end tag </br>. Fixes #185
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.
2020-02-06Merge pull request #178 from Masterminds/eof-entityAsmir Mustafic
Prevent infinite loop on un-terminated entity declaration at EOF
2020-02-06prevent infinite loop on unterminated entity declaration at end of streamAsmir Mustafic
2019-10-14Merge pull request #171 from xabbuh/php-7.4-compatAsmir Mustafic
add PHP 7.4 job
2019-10-14Fix Trying to access array offset on value of type nullRemi Collet
2019-10-14add PHP 7.4 jobChristian Flothmann
2019-07-25prepare 2.7.0 releaseAsmir Mustafic
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-06-14Set default encoding in the doc object.Ilias Dimopoulos
2019-03-10Merge pull request #164 from Masterminds/drop-hhvmAsmir Mustafic
Drop HHVM support
2019-03-10test on php 7.3Asmir Mustafic
2019-03-10drop hhvm supportAsmir Mustafic
2019-03-10prepare 2.6.0Asmir Mustafic
2019-02-22Merge pull request #163 from tgalopin/charset-supportAsmir Mustafic
Allow to pass a charset to the Scanner
2019-02-06Fix testTitouan Galopin
2018-12-29Add encoding testsTitouan Galopin
2018-12-29Allow to pass a charset to the ScannerTitouan Galopin
2018-12-29Increase branch aliasAsmir Mustafic
2018-12-27update changelog for 2.5.0Asmir Mustafic
2018-11-27Merge pull request #162 from stof/optimize_textAsmir Mustafic
Optimize the processing of text between nodes
2018-11-27Optimize the processing of text between nodesChristophe Coevoet
Instead of processing the text token one by one in the main loop, it is now processed in batch until the next special token (< and & which have special handling in the main loop and NUL characters which need to report a parse error).
2018-11-27Merge pull request #161 from stof/optimize_main_loopAsmir Mustafic
Optimize main loop
2018-11-26Optimize the main loopChristophe Coevoet
2018-11-26Merge pull request #155 from stof/optimize_attributesAsmir Mustafic
Optimize the parsing of unquoted attributes
2018-11-26Merge pull request #154 from stof/optimize_token_comparisonAsmir Mustafic
Optimize the token comparison
2018-11-26Remove useless condition for the parsing of cdataChristophe Coevoet
The caller already ensures that the current token is the right one.
2018-11-26Simplify the doctype matchingChristophe Coevoet
- the doctype() function is only called for a D or d token, so there is no need to check again inside the method - checking that we have the DOCTYPE string can use a sequence matching
2018-11-26Optimize the handling of the EOF detection in the main loopChristophe Coevoet
The eof() method is a no-op when the token is not false. As the main loop already needs to identify that case anyway, skipping the method call allows to reduce the cost of parsing text tokens.
2018-11-26Merge pull request #158 from stof/optimize_nextAsmir Mustafic
Replace next calls with consume calls when the return value is ignored
2018-11-26Optimize the parsing of unquoted attributesChristophe Coevoet
2018-11-26Optimize the token comparisonChristophe Coevoet
Tokens are always a single char. Using strspn to find whether they belong to a fixed list is slower than comparing them directly.
2018-11-26Replace next calls with consume calls when the return value is ignoredChristophe Coevoet
2018-11-25Merge pull request #160 from tgalopin/coding-styleAsmir Mustafic
Improve Travis configuration and add PHP-CS-Fixer
2018-11-25Normalize PHPDoc commentsTitouan Galopin
2018-11-25Fix coding styleTitouan Galopin
2018-11-25Improve Travis configuration, add PHP-CS-Fixer and update PHPUnit minimum ↵Titouan Galopin
version
2018-11-24Merge pull request #159 from samnela/remove-deprecated-testcaseAsmir Mustafic
Remove deprecated testcase implementation
2018-11-24Merge pull request #153 from stof/optimize_whitespaceAsmir Mustafic
Optimize consuming whitespaces
2018-11-24Merge pull request #156 from stof/fix_typoAsmir Mustafic
Fix typos in comments
2018-11-24Merge pull request #157 from stof/optimize_parsingAsmir Mustafic
Optimize the check for the element types during parsing
2018-11-24Remove deprecated testcase implementationSamuel NELA