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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to