3 Commits
Author SHA1 Message Date
dualfroz 52ce458d92 Apply the document's parse options to HTML added to it later 2026-09-23 07:01:09 +02:00
dualfroz 3701788802 feat: add NewDocumentFromReaderWithOptions
goquery calls html.Parse, so callers cannot reach the parse options that
golang.org/x/net/html has since grown. The one that matters is
ParseOptionEnableScripting(false): with scripting assumed enabled the
contents of a noscript element are parsed as raw text and no selector
can reach inside it.

Add a constructor taking html.ParseOption values. Existing constructors
are untouched.

Refs #139
2026-09-06 01:24:56 +02:00
upstream 8592be9b0e Upstream PuerkitoBio/goquery state of the touched files before 81f35db25a 2026-09-04 07:54:24 +02:00