Open mizanexpertofficial opened 1 year ago
What is not working for you? It's certainly possible to do this.
The "class" (and "style") attributes are handled specially by src/DiDom/Element.php. You can modify the "store tag classes" section like so:
//store tag classes
foreach ($tag->classes()->getAll() as $class ) {
$this->used_selectors['classes'][$class]++;
}
I think that will do what you want for that part. Not sure what you were looking for otherwise.
Hey I try to find all class, id, attr, and tag in document.
Here is example in DOMDocument
Possible to do it via DiDOM?