Rct567/DomQuery

How to get the css path of an element ?

beppe9000 opened this issue · 1 comments

Not the selector used to create a query object. I mean like chrome or firefox devtools allow to right-click an element and get the selector.

Rct567 commented

DomQuery doesn't provide such functionally, but you can look at:

https://www.php.net/manual/en/domnode.getnodepath.php