[Fix]: .attr() and .removeAttr() should not throw exceptions when called on text nodes.