Returns the first node where attr equals value. This implementation does not use XPath.