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 syntax. It accepts it, in accordance with the HTML5 spec, > as an alternate style of opening tag, but it never closes an element just > because of the final slash. The only elements that are automatically closed > are those that are always automatically closed, like <input>. > > Andy > > On Jan 25, 2018, at 11:05 PM, dc0d <kaveh.sh...@gmail.com <javascript:>> > wrote: > > Solved: problem is component is not a standard html tag. That's why the > parser does not respect the self closing version. So if instead of <component > context="{ctx}" /> a properly closed one like <component > context="{ctx}"></component> is used, it will work properly. > > (Help from gophers slack) > > On Thursday, January 25, 2018 at 12:48:26 PM UTC+3:30, dc0d wrote: >> >> 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 (</another>) should be before span. >> > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts...@googlegroups.com <javascript:>. > For more options, visit https://groups.google.com/d/optout. > > >
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.