summaryrefslogtreecommitdiff
path: root/src/HTML5/Parser
AgeCommit message (Collapse)Author
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-09-01Merge pull request #134 from Masterminds/ampersand-in-urlsAsmir Mustafic
Raw & in attributes
2017-08-31reduce number of times "current" is invokedAsmir 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-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-08-17In XML mode, tags are case sensitiveAsmir Mustafic
Fixes #114
2016-03-19Use mb_substitute_character instead of ini_setDer Mundschenk & Compagnie
2016-01-31Issue #94 UTF8Utils::countChars() - extra bad perfomance with iconv_strlen()Alexander
2016-01-26Issue #94 UTF8Utils::countChars() - extra bad perfomance with iconv_strlen()Alexander
2015-06-22doctype method has no arguments. Fixing.Matt Farina
2015-06-19Correcting the @return type to a phpdoc value.Matt Farina
2015-03-08Closes #78: Fixes bug where unmatched entity like string drops everything ↵Matt Farina
after &.
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.
2015-02-02Allow whitespaces in RCDATA end tagsZhaofeng Li
Fixes #75 Signed-off-by: Zhaofeng Li <[email protected]>
2015-01-15Fixed alphabet, &szlig; now can be detectedDavid Weston
The english alphabet does not allow the substitution of a lowercase z in place of another uppercase A.
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-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-05-25Parse RCDATA the right wayKITAITI Makoto
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-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-03Update Tokenizer.phpAsmir Mustafic
Newlines and tabs are allowed inside quoted attributes
2013-11-06Cleaning up the sarcasm tag parsing.Matt Farina
2013-11-06Improving the documentation coverage.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-11-04#20 Some of the parser rules, for special cases, were not returning the ↵Matt Farina
element to use as the current element. This caused the current parser element to get messed up.
2013-09-26Switched to late static bindings to make altering and building with these ↵Matt Farina
classes a little easier.