ahri / ahriphplibs

My PHP Libraries
http://ahri.net
GNU Affero General Public License v3.0
3 stars 0 forks source link

Nested Nodes don't display properly when the inside node is empty #14

Closed ahri closed 14 years ago

ahri commented 14 years ago
$node = new Node('div');
$node->div(NULL, Node::NOT_SELF_CLOSING);
Test::t('Nested empty Nodes with an internal NOT_SELF_CLOSING Node', array($node, '__toString'), array(), 'return $result == "<div>\n    <div></div>\n</div>\n";');

Expecting:

Getting:

ahri commented 14 years ago

moved to buffering of child output so as to be able to count nodes prior to outputing whitespace, closed by 20de8c12748ecce1008bdce61604fc6c7c43b6be