summaryrefslogtreecommitdiff
path: root/test/HTML5/Parser
AgeCommit message (Collapse)Author
2020-02-06prevent infinite loop on unterminated entity declaration at end of streamAsmir Mustafic
2019-06-14Set default encoding in the doc object.Ilias Dimopoulos
2018-11-25Fix coding styleTitouan Galopin
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-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-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-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.
2015-07-15Update TokenizerTest.phpalexpott
Remove duplicate array key
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]>
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
2014-09-23Fragments with rulesAsmir Mustafic
2014-08-01Closes #56Asmir 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-06-11Merge pull request #37 from goetas/new-error-handlingAsmir Mustafic
Refactored HTML5 class, removed static methods
2014-06-04Refactored HTML5 class (no more static methods) and explicit errorAsmir Mustafic
handling
2014-05-25Parse RCDATA the right wayKITAITI Makoto
2014-05-15Merge pull request #34 from goetas/prs-testsMatt Farina
Fixes the testing errors and makes the tests PSR compatible
2014-05-14Update TokenizerTest.phpAsmir Mustafic
2014-05-14Update DOMTreeBuilderTest.phpAsmir Mustafic
2014-05-14Moved some class in separate filesAsmir Mustafic
2014-05-12PRS-4 testsAsmir 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-11Merge pull request #25 from goetas/patch-2Matt Farina
Removed quote conversion to entity inside content
2014-02-11Merge pull request #28 from miso-belica/fix-infinite-cycleMatt Butcher
Fixed infinite loop for char "&" in unquoted attribute
2014-02-11Merge branch 'master' of github.com:Masterminds/html5-phpMatt Butcher
2014-02-11Fix for #25: Handle missing tag close in attribute list.Matt Butcher
2014-02-11Fixed infinite loop for char "&" in unquoted attributeMišo Belica
2014-02-11Removed 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.
2014-02-04Added a test for 8785fc5775df52dd4a6b63677ebd08f8301ffdccAsmir Mustafic