tbela99 / css

A CSS parser and minifier and sourcemap generator written in PHP
Other
14 stars 1 forks source link

Add a method to traverse a node #48

Closed tbela99 closed 3 years ago

tbela99 commented 3 years ago

it should be possible to do this instead of initializing a Traverser instance


$element->traverse(function ($node) {

// do something with the node
}, 'enter');