1--TEST-- 2Bug #77040 (tidyNode::isHtml() is completely broken) 3--EXTENSIONS-- 4tidy 5--FILE-- 6<?php 7$tidy = new tidy; 8$tidy->parseString("<p>text</p><p><![CDATA[cdata]]></p>"); 9$p = $tidy->body()->child[0]; 10var_dump($p->type === TIDY_NODETYPE_START); 11var_dump($p->isHtml()); 12$text = $p->child[0]; 13var_dump($text->type === TIDY_NODETYPE_TEXT); 14var_dump($text->isHtml()); 15$cdata = $tidy->body()->child[1]->child[0]; 16var_dump($cdata->type === TIDY_NODETYPE_CDATA); 17var_dump($cdata->isHtml()); 18?> 19--EXPECT-- 20bool(true) 21bool(true) 22bool(true) 23bool(false) 24bool(true) 25bool(false)