Rct567 / DomQuery

PHP library for easy 'jQuery like' DOM traversing and manipulation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow 'dash' in transformAttrSelector

bogdan-d opened this issue · comments

The transformAttrSelector regex should be modified to this (https://regex101.com/r/d6cM1X/1) to allow the dash character in the attribute name. Otherwise this type of selector does not work:

$doc->find('meta[http-equiv^="Content"]')