update to use new exp/html package

This commit is contained in:
Martin Angers
2012-09-09 18:44:47 -04:00
parent 661a12ade6
commit ab7dea3da3
4 changed files with 18 additions and 14 deletions

View File

@@ -4,6 +4,13 @@ import (
"exp/html"
)
func getChildren(n *html.Node) (result []*html.Node) {
for c := n.FirstChild; c != nil; c = c.NextSibling {
result = append(result, c)
}
return
}
// Loop through all container nodes to search for the target node.
func sliceContains(container []*html.Node, contained *html.Node) bool {
for _, n := range container {