Re: [go-nuts] Difficulties Using golang.org/x/net/html

2018-01-26 Thread dc0d
Thanks Andy! I'll try read the spec to learn more. On Friday, January 26, 2018 at 7:29:47 PM UTC+3:30, Andy Balholm wrote: > > The prescription is correct; the diagnosis is close but not exactly right. > > The html package actually doesn’t pay any attention to the XML-style > self-closing tag syn

Re: [go-nuts] Difficulties Using golang.org/x/net/html

2018-01-26 Thread Andy Balholm
The prescription is correct; the diagnosis is close but not exactly right. The html package actually doesn’t pay any attention to the XML-style self-closing tag syntax. It accepts it, in accordance with the HTML5 spec, as an alternate style of opening tag, but it never closes an element just bec

[go-nuts] Difficulties Using golang.org/x/net/html

2018-01-25 Thread dc0d
How to parse custom (nested) elements using golang.org/x/net/html? It parses the custom element correctly but if there are nested custom elements, the next siblings are parsed as children of the parent custom element. https://play.golang.org/p/Iu4RP6qp60p the closing tag for another () should