golang.org/x/net/html.Node.Type (field)

77 uses

	golang.org/x/net/html (current package)
		doctype.go#L17: 	n = &Node{Type: DoctypeNode}
		foreign.go#L35: 	if n.Type != ElementNode {
		node.go#L33: var scopeMarker = Node{Type: scopeMarkerNode}
		node.go#L47: 	Type      NodeType
		node.go#L143: 		Type:     n.Type,
		parse.go#L206: 		if n.Type != ElementNode {
		parse.go#L233: 	if n.Type == ElementNode {
		parse.go#L290: 	if prev != nil && prev.Type == TextNode && n.Type == TextNode {
		parse.go#L307: 			Type: TextNode,
		parse.go#L314: 	if n := t.LastChild; n != nil && n.Type == TextNode {
		parse.go#L319: 		Type: TextNode,
		parse.go#L327: 		Type:     ElementNode,
		parse.go#L344: 		if n.Type == scopeMarkerNode {
		parse.go#L347: 		if n.Type != ElementNode {
		parse.go#L384: 		if n := p.afe.pop(); len(p.afe) == 0 || n.Type == scopeMarkerNode {
		parse.go#L396: 	if n.Type == scopeMarkerNode || p.oe.index(n) != -1 {
		parse.go#L400: 	for n.Type != scopeMarkerNode && p.oe.index(n) == -1 {
		parse.go#L525: 			Type: CommentNode,
		parse.go#L570: 			Type: CommentNode,
		parse.go#L609: 			Type: CommentNode,
		parse.go#L706: 			Type: CommentNode,
		parse.go#L814: 			Type: CommentNode,
		parse.go#L887: 				if body.Type == ElementNode && body.DataAtom == a.Body {
		parse.go#L975: 			for i := len(p.afe) - 1; i >= 0 && p.afe[i].Type != scopeMarkerNode; i-- {
		parse.go#L976: 				if n := p.afe[i]; n.Type == ElementNode && n.DataAtom == a.A {
		parse.go#L1170: 			Type: CommentNode,
		parse.go#L1211: 			if p.afe[j].Type == scopeMarkerNode {
		parse.go#L1487: 			Type: CommentNode,
		parse.go#L1563: 			Type: CommentNode,
		parse.go#L1650: 			Type: CommentNode,
		parse.go#L1832: 			Type: CommentNode,
		parse.go#L1967: 			Type: CommentNode,
		parse.go#L1981: 			Type: CommentNode,
		parse.go#L2031: 			Type: CommentNode,
		parse.go#L2083: 			Type: CommentNode,
		parse.go#L2099: 			Type: CommentNode,
		parse.go#L2143: 			Type: CommentNode,
		parse.go#L2352: 			Type: DocumentNode,
		parse.go#L2373: 		if context.Type != ElementNode {
		parse.go#L2386: 			Type: DocumentNode,
		parse.go#L2403: 		Type:     ElementNode,
		parse.go#L2415: 		if n.Type == ElementNode && n.DataAtom == a.Form {
		render.go#L70: 	switch n.Type {
		render.go#L188: 	if c := n.FirstChild; c != nil && c.Type == TextNode && strings.HasPrefix(c.Data, "\n") {
		render.go#L201: 			if c.Type == TextNode {

	golang.org/x/pkgsite/internal/frontend
		overview.go#L214: 	if n.Type == html.ElementNode && n.DataAtom == atom.Img {

	golang.org/x/pkgsite/internal/testing/htmlcheck
		htmlcheck.go#L161: 	switch n.Type {
		htmlcheck.go#L209: 	fmt.Printf("type %d, data %q, attr %v\n", n.Type, n.Data, n.Attr)

	github.com/andybalholm/cascadia
		selector.go#L178: 	return n.Type == html.ElementNode && n.Data == t.tag
		selector.go#L249: 	if n.Type != html.ElementNode {
		selector.go#L263: 	if n.Type != html.ElementNode {
		selector.go#L364: 	if n.Type != html.ElementNode {
		selector.go#L397: 		if a.Match(c) || (c.Type == html.ElementNode && hasDescendantMatch(c, a)) {
		selector.go#L458: 	switch n.Type {
		selector.go#L480: 		if c.Type == html.TextNode {
		selector.go#L511: 	if n.Type != html.ElementNode {
		selector.go#L520: 	if parent.Type == html.DocumentNode {
		selector.go#L527: 		if (c.Type != html.ElementNode) || (ofType && c.Data != n.Data) {
		selector.go#L559: 	if n.Type != html.ElementNode {
		selector.go#L568: 	if parent.Type == html.DocumentNode {
		selector.go#L574: 		if c.Type != html.ElementNode || (ofType && c.Data != n.Data) {
		selector.go#L591: 	if n.Type != html.ElementNode {
		selector.go#L600: 	if parent.Type == html.DocumentNode {
		selector.go#L606: 		if c.Type != html.ElementNode || (ofType && c.Data != n.Data) {
		selector.go#L633: 	if n.Type != html.ElementNode {
		selector.go#L642: 	if parent.Type == html.DocumentNode {
		selector.go#L648: 		if (c.Type != html.ElementNode) || (s.ofType && c.Data != n.Data) {
		selector.go#L668: 	return n.Type == html.ElementNode && (n.Data == "input" || n.Data == "select" || n.Data == "textarea" || n.Data == "button")
		selector.go#L679: 	if n.Type != html.ElementNode {
		selector.go#L684: 		switch c.Type {
		selector.go#L701: 	if n.Type != html.ElementNode {
		selector.go#L707: 	return n.Parent.Type == html.DocumentNode
		selector.go#L721: 		return n.Type == html.ElementNode
		selector.go#L795: 			if n.Type == html.TextNode || n.Type == html.CommentNode {