summaryrefslogtreecommitdiff
path: root/test/HTML5/Parser/EventStack.php
diff options
context:
space:
mode:
authorMatt Butcher <[email protected]>2013-04-12 21:33:17 -0500
committerMatt Butcher <[email protected]>2013-04-12 21:33:17 -0500
commit3d8562c11dd5e7591ea29562c43fb74939836b83 (patch)
tree38e0e3e6aed4934c97777db9b18ab9bc9b91c9a3 /test/HTML5/Parser/EventStack.php
parentffcfa507b081cf132db5b90c26bfad66d79a4eb4 (diff)
CDATA handling is complete. DOCTYPE is begun.
Diffstat (limited to 'test/HTML5/Parser/EventStack.php')
-rw-r--r--test/HTML5/Parser/EventStack.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/HTML5/Parser/EventStack.php b/test/HTML5/Parser/EventStack.php
index 4d82629..478ae60 100644
--- a/test/HTML5/Parser/EventStack.php
+++ b/test/HTML5/Parser/EventStack.php
@@ -52,6 +52,10 @@ class EventStack implements EventHandler {
$this->store('comment', array($cdata));
}
+ public function cdata($data) {
+ $this->store('cdata', func_get_args());
+ }
+
public function text($cdata) {
//fprintf(STDOUT, "Received TEXT event with: " . $cdata);
$this->store('text', array($cdata));