package cascadia import ( "strings" "testing" "golang.org/x/net/html" ) func MustParseHTML(doc string) *html.Node { dom, err := html.Parse(strings.NewReader(doc)) if err != nil { panic(err) } return dom } var selector = MustCompile(`div.matched`) var doc = `