diff --git a/utils/htmlcheck/html.go b/utils/htmlcheck/html.go index acfa13e..7416a12 100644 --- a/utils/htmlcheck/html.go +++ b/utils/htmlcheck/html.go @@ -22,7 +22,7 @@ func runHTMLTests(html string) ([]Warning, int, error) { } // Almost all <script> is bad - scripts := len(doc.Find("script:not([type=\"application/ld+json\"])").Nodes) + scripts := len(doc.Find("script:not([type=\"application/ld+json\"]):not([type=\"application/json\"])").Nodes) if scripts > 0 { var result = Warning{} result.Title = "<script> element"