https://github.com/scrapy/parsel/blob/047532793de5e35fbe1b302b91b63291721ee8fd/parsel/selector.py#L856 While the other methods raised clear exceptions `attrib()` confused developers with built-in `AttributeError` when `self.root` has no attribute `attrib`.