@topher1kenobe alternatively, you could do something like: `$xpath = new DOMXPath( $dom ); $data_mentionables = $xpath->query( '//a[@data-mentionable]' )`