{
  "id": "@typed/template/Template#TextOnlyElement",
  "canonicalId": "@typed/template#TextOnlyElement",
  "symbol": {
    "id": "@typed/template/Template#TextOnlyElement",
    "packageName": "@typed/template",
    "moduleName": "Template",
    "exportName": "TextOnlyElement",
    "kind": "class",
    "signatures": [
      "export declare class TextOnlyElement {\n    readonly _tag = \"text-only-element\";\n    readonly tagName: string;\n    readonly attributes: Array<Attribute>;\n    readonly textContent: Text | null;\n    constructor(tagName: string, attributes: Array<Attribute>, textContent: Text | null);\n}"
    ],
    "summary": "Represents an element that contains only text (e.g. `<script>`, `<style>`).",
    "sections": {
      "Why": "Script, style, textarea, title, and related contexts require dedicated parsing\nand context-aware closing-tag neutralization during SSR.",
      "Ownership and lifetime": "This is parsed data; it owns no live element or executable script.",
      "Constructor": "Creates a text-only element AST node.",
      "Constructor: Why": "Renderer tooling can model special text contexts.",
      "Constructor: Ownership and lifetime": "Retains parsed data and creates no DOM.",
      "Property: _tag": "Text-only-element discriminant.",
      "Property: _tag: Why": "Selects special parsing and escaping.",
      "Property: _tag: Ownership and lifetime": "Immutable metadata.",
      "Property: attributes": "Parsed attributes.",
      "Property: attributes: Why": "Preserves native attribute semantics.",
      "Property: attributes: Ownership and lifetime": "Retained AST array.",
      "Property: tagName": "Authored tag name.",
      "Property: tagName: Why": "Determines script/style/textarea/title serialization rules.",
      "Property: tagName: Ownership and lifetime": "Retained string metadata.",
      "Property: textContent": "Parsed text content or absence.",
      "Property: textContent: Why": "Keeps text-only context distinct from child nodes.",
      "Property: textContent: Ownership and lifetime": "Retained AST value."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { TextOnlyElement } from \"@typed/template/Template\"\n\nconst node = new TextOnlyElement(\"style\", [], null)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/template/src/Template.ts",
      "line": 501
    },
    "since": "1.0.0",
    "category": "Text contexts"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/template/Template#TextOnlyElement",
    "packageName": "@typed/template",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": "Template",
    "consumerSpecifier": "@typed/template/Template",
    "exportName": "TextOnlyElement",
    "qualifiedName": "TextOnlyElement",
    "declarationKey": "declaration:23a5656d753d19e6227c06e6",
    "family": "class",
    "signatures": [
      "export declare class TextOnlyElement {\n    readonly _tag = \"text-only-element\";\n    readonly tagName: string;\n    readonly attributes: Array<Attribute>;\n    readonly textContent: Text | null;\n    constructor(tagName: string, attributes: Array<Attribute>, textContent: Text | null);\n}"
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 501,
          "column": 1
        },
        "end": {
          "line": 562,
          "column": 2
        }
      },
      {
        "file": "packages/template/dist/Template.d.ts",
        "start": {
          "line": 503,
          "column": 5
        },
        "end": {
          "line": 503,
          "column": 90
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 512,
          "column": 3
        },
        "end": {
          "line": 512,
          "column": 39
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 535,
          "column": 3
        },
        "end": {
          "line": 535,
          "column": 41
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 524,
          "column": 3
        },
        "end": {
          "line": 524,
          "column": 28
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 546,
          "column": 3
        },
        "end": {
          "line": 546,
          "column": 37
        }
      }
    ],
    "aliases": [
      "@typed/template#TextOnlyElement"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:23a5656d753d19e6227c06e6",
    "name": "TextOnlyElement",
    "family": "class",
    "facets": [
      {
        "family": "class",
        "syntaxKind": "ClassDeclaration",
        "signatures": [
          "export declare class TextOnlyElement {\n    readonly _tag = \"text-only-element\";\n    readonly tagName: string;\n    readonly attributes: Array<Attribute>;\n    readonly textContent: Text | null;\n    constructor(tagName: string, attributes: Array<Attribute>, textContent: Text | null);\n}"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Template.ts",
            "start": {
              "line": 501,
              "column": 1
            },
            "end": {
              "line": 562,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "constructor",
        "syntaxKind": "Constructor",
        "signatures": [
          "constructor(tagName: string, attributes: Array<Attribute>, textContent: Text | null);"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/dist/Template.d.ts",
            "start": {
              "line": 503,
              "column": 5
            },
            "end": {
              "line": 503,
              "column": 90
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "readonly _tag = \"text-only-element\";"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Template.ts",
            "start": {
              "line": 512,
              "column": 3
            },
            "end": {
              "line": 512,
              "column": 39
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "readonly attributes: Array<Attribute>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Template.ts",
            "start": {
              "line": 535,
              "column": 3
            },
            "end": {
              "line": 535,
              "column": 41
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "readonly tagName: string;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Template.ts",
            "start": {
              "line": 524,
              "column": 3
            },
            "end": {
              "line": 524,
              "column": 28
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "readonly textContent: Text | null;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Template.ts",
            "start": {
              "line": 546,
              "column": 3
            },
            "end": {
              "line": 546,
              "column": 37
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      }
    ],
    "signatures": [
      "export declare class TextOnlyElement {\n    readonly _tag = \"text-only-element\";\n    readonly tagName: string;\n    readonly attributes: Array<Attribute>;\n    readonly textContent: Text | null;\n    constructor(tagName: string, attributes: Array<Attribute>, textContent: Text | null);\n}"
    ],
    "typeParameters": [],
    "summary": "Represents an element that contains only text (e.g. `<script>`, `<style>`).",
    "sections": {
      "Why": "Script, style, textarea, title, and related contexts require dedicated parsing\nand context-aware closing-tag neutralization during SSR.",
      "Ownership and lifetime": "This is parsed data; it owns no live element or executable script.",
      "Constructor": "Creates a text-only element AST node.",
      "Constructor: Why": "Renderer tooling can model special text contexts.",
      "Constructor: Ownership and lifetime": "Retains parsed data and creates no DOM.",
      "Property: _tag": "Text-only-element discriminant.",
      "Property: _tag: Why": "Selects special parsing and escaping.",
      "Property: _tag: Ownership and lifetime": "Immutable metadata.",
      "Property: attributes": "Parsed attributes.",
      "Property: attributes: Why": "Preserves native attribute semantics.",
      "Property: attributes: Ownership and lifetime": "Retained AST array.",
      "Property: tagName": "Authored tag name.",
      "Property: tagName: Why": "Determines script/style/textarea/title serialization rules.",
      "Property: tagName: Ownership and lifetime": "Retained string metadata.",
      "Property: textContent": "Parsed text content or absence.",
      "Property: textContent: Why": "Keeps text-only context distinct from child nodes.",
      "Property: textContent: Ownership and lifetime": "Retained AST value."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { TextOnlyElement } from \"@typed/template/Template\"\n\nconst node = new TextOnlyElement(\"style\", [], null)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 501,
          "column": 1
        },
        "end": {
          "line": 562,
          "column": 2
        }
      },
      {
        "file": "packages/template/dist/Template.d.ts",
        "start": {
          "line": 503,
          "column": 5
        },
        "end": {
          "line": 503,
          "column": 90
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 512,
          "column": 3
        },
        "end": {
          "line": 512,
          "column": 39
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 535,
          "column": 3
        },
        "end": {
          "line": 535,
          "column": 41
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 524,
          "column": 3
        },
        "end": {
          "line": 524,
          "column": 28
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 546,
          "column": 3
        },
        "end": {
          "line": 546,
          "column": 37
        }
      }
    ],
    "since": "1.0.0",
    "category": "Text contexts"
  }
}
