Closed asyncins closed 8 months ago
Defining what "same" means is usually specific to a use case. In the example you presented, a helper function which checks that element.value().name()
and element.text()
(possibly after trimming) match might be sufficient.
Defining what "same" means is usually specific to a use case. In the example you presented, a helper function which checks that
element.value().name()
andelement.text()
(possibly after trimming) match might be sufficient.
the "same" means they are the same block of memory,not text, not name, not index, not tag
Then compare pointers std::ptr::eq(&element_1, &element_3)
.
element_1 is
<div>causal-agent</div>
element_2 is
<p>scraper</p>
element_3 is
<div>causal-agent</div>
we need this
How to ???