summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/HTML5/Serializer/OutputRules.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/HTML5/Serializer/OutputRules.php b/src/HTML5/Serializer/OutputRules.php
index 5780d61..3db857b 100644
--- a/src/HTML5/Serializer/OutputRules.php
+++ b/src/HTML5/Serializer/OutputRules.php
@@ -64,17 +64,17 @@ class OutputRules {
*/
public function text($ele) {
if (isset($ele->parentNode) && Elements::isA($ele->parentNode->tagName, Elements::TEXT_RAW)) {
- $this->wr($ele->wholeText);
+ $this->wr($ele->data);
return;
}
// FIXME: This probably needs some flags set.
- $this->wr($this->enc($ele->wholeText));
+ $this->wr($this->enc($ele->data));
}
public function cdata($ele) {
- $this->wr('<![CDATA[')->wr($ele->wholeText)->wr(']]>');
+ $this->wr('<![CDATA[')->wr($ele->data)->wr(']]>');
}
public function comment($ele) {