x/net/html: text node is moved outside <table> #37260
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Playground, Go 1.13
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?Playground
What did you do?
https://play.golang.org/p/UmY2tC6CML5
What did you expect to see?
The output HTML should be identical to the input.
What did you see instead?
The
test
text node is moved before<table>
.Yes, I know that it's not correct to have a text node directly inside a
<table>
.However, I'm manipulating an HTML document containing templating instructions from https://github.com/flosch/pongo2 .
My goal is to do some changes in the HTML before rendering the template.
Is it possible to not move these text nodes, even if the HTML is not strictly valid ?
Is there another workaround ?
The text was updated successfully, but these errors were encountered: