Fix NodeContainer::addChildAt method

This commit is contained in:
Dmitriy Simushev 2014-11-12 12:17:23 +00:00
parent c5d4f89045
commit 72c2523ba7

View File

@ -83,7 +83,7 @@ namespace Canteen\HTML5
{
array_unshift($this->_children, $childNode);
}
else if ($index > $len)
else if ($index > (count($this->_children) - 1))
{
$this->addChild($childNode);
}