Merge pull request #8 from positronium/master

fast fix for :nth-child(n)
fromDom accepts DOMElement

Fix by @positronium
toDom alias to getDom
toTextArray($skipChildren = false, $singleLevel = true)

Предложено @positronium, другая вариация.
$skipChildren - пропускает childNodes
$singleLevel - делает array_merge заместо создания многомерного массива
toText($glue = ' ', $skipChildren = false)

#9
Update nokogiri.php

typo fix
'Only variables should be passed by reference' fix in toArray()
getErrors(), toNodes() and some tests are added
toNodes() fix
Merge branch 'master' into custom, getNodes() fixed