sveltejs / svelte-devtools

A browser extension to inspect Svelte application by extending your browser devtools capabilities
https://chromewebstore.google.com/detail/svelte-devtools/kfidecgcdjjfpeckbblhmfkhmlgecoff
MIT License
1.45k stars 77 forks source link

question about #anchor #25

Closed mvolkmann closed 4 years ago

mvolkmann commented 4 years ago

What are "anchors"? I see that I can enable and disable showing this from the eyeball menu. When enabled I see lots of lines containing "#anchor" on the left side. They don't seem related to HTML tags. What do they represent? Maybe add this to the README.

RedHatter commented 4 years ago

Svelte uses special comment nodes to position and maintain the order of some elements. It's mostly an internal thing (hence why the visibility is disable by default) and, as long as svelte is working right, there's not much of a reason you would need to know about them. I have found them useful for tracking down bugs in svelte itself.

I see your point in adding a explanation to the README but honestly I think it would just be confusing.