{
  "slug": "playwright-page-and-frame-content-can-include-open-shadow-roots-1c579140290d",
  "title": "Playwright page and frame content can include open shadow roots",
  "tools": [
    "playwright"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-07T20:40:43.000Z",
  "announced_at": "2026-10-07T20:40:43.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When serializing page or frame HTML and you need open shadow roots, call `content({ includeShadow: true })`; Playwright emits them as declarative shadow DOM, and closed roots are never included.",
    "examples": [
      "const html = await page.content({ includeShadow: true });",
      "const html = await frame.content({ includeShadow: true });"
    ],
    "gotchas": [
      "Version: v1.64.0",
      "includeShadow: Boolean option, added in v1.64; when true, includes open shadow root contents as nested `<template shadowrootmode=\"open\">`; defaults to false. Closed roots are never included.",
      "Open shadow roots are serialized as declarative shadow DOM."
    ]
  },
  "why_it_matters": "Serialize page or frame content including its open shadow roots.",
  "sources": [
    "https://github.com/microsoft/playwright/releases/tag/v1.64.0",
    "https://playwright.dev/docs/api/class-page",
    "https://playwright.dev/docs/api/class-frame"
  ],
  "rank": 0.92026,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "gap-20261007",
    "verdict_id": "gap-20261007:gap-20261007-bdf5b973c35fe6e6-8:gate",
    "evidence_hash": "d55d809be2ea27eaa2466c245352f93486b5b4d563d8e70bca21767e52f93303"
  },
  "review": {
    "draft_hash": "62ffd6af7f2df4ce913a039bfc7bfe6a8adb10c70b4f5d27202b2121e0cd6465",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T20:40:43.000Z",
    "decision": "gap-20261007:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.92 >= 0.9; 2 needed) and Jev gave 0.72 (>= 0.6 needed)."
  }
}
