GoogleChromeLabs / ProjectVisBug

FireBug for designers › Edit any webpage, in any state https://a.nerdy.dev/gimme-visbug
https://visbug.web.app
Apache License 2.0
5.41k stars 284 forks source link

ensure the `<a node></a>` is rendered in HTML format #533

Closed zeaccs closed 2 years ago

zeaccs commented 2 years ago

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.

zeaccs commented 2 years ago

Reference:

index.html ![snapshot](https://user-images.githubusercontent.com/50841749/126383706-0ac0973c-c612-46f5-b03b-a44f49ef6f82.PNG)