`includeTags: ["main"]` that matches nothing still returns the whole page (possible regression of #291)
Possible regression of #291 (closed). Not confirmed that the target page has no <main> element.
Environment
- Self-hosted crw nightly on Node B, images pulled 2026-11-01, MCP
crw_scrape.
Repro
crw_scrapeurl=https://www.jbhifi.com.au/collections/tvs/cheap-tvs?page=2,includeTags: ["main"],maxLength: 0.- Output contains the full page including nav, filter sidebar, footer SEO copy, chat widget, identical to the call without
includeTags.
Expected
Per #291's fix: empty (or near-empty) content plus a selector_no_match warning when the selector matches nothing. Or, if main does exist, only its content.
Actual
Whole page, no warning field in the response.
Frequency
1/1. Not retried with a selector known to exist.
Log excerpt
request: {"url":".../cheap-tvs?page=2","includeTags":["main"],"maxLength":0}
response: creditCost 1, markdown begins "# Cheap TVs - Shop Smart TVs..." with full chrome; no warnings key
Update: this is probably not a bug. The page does have a <main class='main-content' id='MainContent'> element that wraps almost everything, so includeTags: ["main"] correctly returned the whole of it. On stock crw, includeTags: ["main"] on https://example.com (no <main>) returns empty markdown with warnings: ["selector_no_match"], as #291 intended. Closing as my mistake.
Disclosure: this was run on a third-party build, swack-tools/crw-build-aio-mcp, from crw 147c8d6 plus that repo's patches, with non-default renderer settings (RENDERER__MODE=chrome, RENDER_JS_DEFAULT=true, CHROME_INTERCEPT_RESOURCES=false, CHROME_CONTEXT_POOL_ENABLED=false). Sorry for not saying so when filing.