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