Steps to reproduce: activate the position tool first, and then try to click an element on the page. The label changed from <tagName> to <a node>tagName</a> <a></a>.
This PR replaced textContent to ensure we are setting the <a node></a> in HTML format, also added more test cases for these issues.
Steps to reproduce: activate the position tool first, and then try to click an element on the page. The label changed from
<tagName>
to<a node>tagName</a> <a></a>
.This PR replaced
textContent
to ensure we are setting the<a node></a>
in HTML format, also added more test cases for these issues.