vugu / vugu

Vugu: A modern UI library for Go+WebAssembly (experimental)
https://www.vugu.org
MIT License
4.8k stars 175 forks source link

Improve foundMountEl error message from visitBody func #256

Closed Lord-Y closed 6 months ago

Lord-Y commented 7 months ago

Hello,

This PR goes with https://github.com/vugu/vugu/issues/246 requirements.

When I was doing some tests, I was having a body like:

<body>
<div>1st div</div>
<div>2nd div</div>
</body>

instead of:

<body>
<div>
  <div>1st div</div>
  <div>2nd div</div>
</div>
</body>

The original error message wasn't clear.