diff options
author | Matt Butcher <[email protected]> | 2013-04-24 20:09:02 -0500 |
---|---|---|
committer | Matt Butcher <[email protected]> | 2013-04-24 20:09:02 -0500 |
commit | 6815b2bd3a08201f6a75f09f7e24b50c5d3aeab2 (patch) | |
tree | fb547ecaeac2add94e6174dab62158791bff8dcb /test/HTML5/Parser/EventStack.php | |
parent | 36d1367a7e365e1f3a4d63161999970799257e42 (diff) | |
parent | fe3d7b815756b6f9ec3bad7c9bfe400b6ea11222 (diff) |
Merge branch 'master' of github.com:technosophos/HTML5-PHP
Diffstat (limited to 'test/HTML5/Parser/EventStack.php')
-rw-r--r-- | test/HTML5/Parser/EventStack.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/HTML5/Parser/EventStack.php b/test/HTML5/Parser/EventStack.php index c9ac20e..1f56ea9 100644 --- a/test/HTML5/Parser/EventStack.php +++ b/test/HTML5/Parser/EventStack.php @@ -1,13 +1,15 @@ <?php namespace HTML5\Parser; +use HTML5\Elements; + /** * This testing class gathers events from a parser and builds a stack of events. * It is useful for checking the output of a tokenizer. * * IMPORTANT: * - * The startTag event also kicks the parser into TEXTMODE_RAW when it encounters + * The startTag event also kicks the parser into TEXT_RAW when it encounters * script or pre tags. This is to match the behavior required by the HTML5 spec, * which says that the tree builder must tell the tokenizer when to switch states. */ @@ -49,7 +51,7 @@ class EventStack implements EventHandler { $args = func_get_args(); $this->store('startTag', $args); if ($name == 'pre' || $name == 'script') { - return Tokenizer::TEXTMODE_RAW; + return Elements::TEXT_RAW; } } |