diff options
Diffstat (limited to 'test/HTML5')
-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; } } |