Btw, are you sure about case insensitivity? Is ```$node->htmlNode->name``` always lowercase?