mirror of
https://github.com/Mibew/CanteenHTML5.git
synced 2025-02-05 13:34:42 +03:00
Merge pull request #6 from JustBlackBird/fix_add_child_at
Fix NodeContainer::addChildAt method
This commit is contained in:
commit
e9c28b5145
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user