x/net/html: cryptic error - void element has child nodes #50095
Labels
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
HTML documents are usually long and such an cryptic error is hard to debug. I expected at least an error that points to the specific errornous node. The error should include the attributes of the invalid node and perhaps 2 - 3 parent nodes as well.
What did you see instead?
panic: html: void element <link> has child nodes
A cryptic error that provides little help.
This is also related to #10535
The text was updated successfully, but these errors were encountered: