commit c2a9f79f6262dbdba4936d1b6486815047a6071d
parent 99f5d22f58d6645f94c00c8386e7b29d5c3530e4
Author: Lukas Henkel <lh@entf.net>
Date: Sat, 20 Feb 2021 15:52:11 +0100
Fix htmlattr
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/htmlattr/main.go b/cmd/htmlattr/main.go
@@ -30,7 +30,7 @@ func main() {
fmt.Fprintln(os.Stderr, "Document does not contain a body")
os.Exit(1)
}
- values, err := htmltools.Attr(attrs, htmltools.Children(doc)...)
+ values, err := htmltools.Attr(attrs, htmltools.Children(body)...)
if err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
os.Exit(1)