Closed vavrecan closed 6 years ago
it can happen, that this function will fail in case of etc or or other issues. i would say it is a good idea to do additional error checking so that $a->getAttribute will not throw exception when a is null.
@vavrecan Can you give me an example, when such a thing happens?
Iirc If tag in source is <abbr> </a> or so
Merged. Thanks! :+1:
it can happen, that this function will fail in case of etc or or other issues. i would say it is a good idea to do additional error checking so that $a->getAttribute will not throw exception when a is null.