Made parseP fallback use textContent instead of nodeValue
Fixed logic typo