works with AnyMarks ComponentTree now instead of PHP DOM