summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2021-03-28Travis: Enable tests on PHP 8.0Aleksander Machniak
Cleanup tests code and setup
2020-08-24phpcsKieran Brahney
2020-08-24replaced assertStringContainsString with assertContainsKieran Brahney
2020-08-24added testKieran Brahney
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.
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-14Fix Trying to access array offset on value of type nullRemi Collet
2019-06-14Set default encoding in the doc object.Ilias Dimopoulos
2019-02-06Fix testTitouan Galopin
2018-12-29Add encoding testsTitouan Galopin
2018-11-25Fix coding styleTitouan Galopin
2018-11-24Merge pull request #159 from samnela/remove-deprecated-testcaseAsmir Mustafic
Remove deprecated testcase implementation
2018-11-24Remove deprecated testcase implementationSamuel NELA
2018-11-24Fix typos in commentsChristophe Coevoet
2018-11-23The element mask is 0 rather than false if element not fount.Matt Farina
2018-11-03Improve performance by relying on a native string instead of InputStreamTitouan Galopin
2018-10-08audio is not a block tagAsmir Mustafic
see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio
2018-08-21Fix tests for PHP 5.3Albert Peschar
2017-12-04#136: Respect self-closing tags only on foreign elementsAlbert Peschar
2017-12-04Add testcases for #136Albert Peschar
2017-09-01Merge pull request #134 from Masterminds/ampersand-in-urlsAsmir Mustafic
Raw & in attributes
2017-08-31add performance benchmarkAsmir Mustafic
2017-08-28Fixes https://github.com/Masterminds/html5-php/issues/124Asmir Mustafic
Reference: https://www.w3.org/TR/html52/syntax.html#character-reference-state If the character reference was consumed as part of an attribute (return state is either attribute value (double-quoted) state, attribute value (single-quoted) state or attribute value (unquoted) state), and the last character matched is not a U+003B SEMICOLON character (;), and the next input character is either a U+003D EQUALS SIGN character (=) or an alphanumeric ASCII character, then, for historical reasons, switch to the character reference end state. If the last character matched is not a U+003B SEMICOLON character (;), this is a parse error.
2017-08-25handle special "img" "image" handlingAsmir Mustafic
2017-07-26Fix https://github.com/Masterminds/html5-php/issues/131Asmir Mustafic
2016-09-22removed loop and renamed testAsmir Mustafic
2016-09-22renamed labelAsmir Mustafic
2016-09-22don't close optgroup when followed by an optionValentin Kunz
Make sure options are children of optgroup, not the parent select. Otherwise we end up with a bunch of empty optgroups.
2016-09-22Merge pull request #116 from Masterminds/case-sensitive-namesAsmir Mustafic
In XML mode, tags are case sensitive
2016-08-19Alternative implementation of https://github.com/Masterminds/html5-php/pull/115Asmir Mustafic
2016-08-18Add test for handling invalid TEXT_RAW child nodesDanny Smart
2016-08-17In XML mode, tags are case sensitiveAsmir Mustafic
Fixes #114
2016-05-10Adding test for the address tagMatt Farina
2016-03-18Fixes #98: a DOM is allowed within noscript tagsMatt Farina
When JavaScript is disabled noscript tags become transparent to to the DOM. For more details see: https://w3c.github.io/html/semantics-scripting.html#the-noscript-element While this notes limitations in the values in the head there are different sets elsewhere such as in: https://w3c.github.io/html/syntax.html#the-in-head-noscript-insertion-mode Since this is not a validating parser this handling it to make it transparent.
2016-03-15Fixes #96: Parser breaking xml:href on svgs that use the "use" elementMatt Farina
2015-07-15Update TokenizerTest.phpalexpott
Remove duplicate array key
2015-06-07Allow multiple root nodesAsmir Mustafic
2015-05-09Improved boolean attribute handlingAsmir Mustafic
2015-03-08Closes #78: Fixes bug where unmatched entity like string drops everything ↵Matt Farina
after &.
2015-02-23Adding some tests to the UTF8 utilities.Matt Farina
2015-02-06Added tests for "target_document" and "disable_html_ns" optionsAsmir Mustafic
2015-02-02Allow whitespaces in RCDATA end tagsZhaofeng Li
Fixes #75 Signed-off-by: Zhaofeng Li <[email protected]>
2015-01-06Added $options to HTML loading methodsAsmir Mustafic
2014-12-17Merge pull request #64 from goetas/i63Asmir Mustafic
Case insensitive tags
2014-12-14Case insensitive comparison only for html5 tagsAsmir Mustafic
2014-12-14Auto closing tags if they allows only inline nodes as child nodesAsmir Mustafic
Fixes #68
2014-12-01Added support for dashes in element tag names (closes #65)Asmir Mustafic
2014-11-24Case insensitive tagsAsmir Mustafic
fixes #63