{
  "id": "@typed/template#ElementNode",
  "canonicalId": "@typed/template#ElementNode",
  "symbol": {
    "id": "@typed/template#ElementNode",
    "packageName": "@typed/template",
    "moduleName": ".",
    "exportName": "ElementNode",
    "kind": "class",
    "signatures": [
      "export declare class ElementNode {\n    readonly _tag = \"element\";\n    readonly tagName: string;\n    readonly attributes: Array<Attribute>;\n    readonly children: Array<Node>;\n    constructor(tagName: string, attributes: Array<Attribute>, children: Array<Node>);\n}"
    ],
    "summary": "Represents an HTML, SVG, MathML, or foreign-content element with children.",
    "sections": {
      "Why": "Keeping the authored tag, attributes, and children explicit lets DOM\ncompilation apply native namespace rules and SSR preserve author markup.",
      "Ownership and lifetime": "The model owns only parsed arrays and strings, never the eventual Element.",
      "Constructor": "Creates an element AST node.",
      "Constructor: Why": "Renderer tooling can construct native element syntax explicitly.",
      "Constructor: Ownership and lifetime": "Retains supplied data and creates no Element.",
      "Property: _tag": "Element-node discriminant.",
      "Property: _tag: Why": "Enables exhaustive compilation.",
      "Property: _tag: Ownership and lifetime": "Immutable AST metadata.",
      "Property: attributes": "Parsed attributes in author order.",
      "Property: attributes: Why": "Keeps distinct native directive semantics.",
      "Property: attributes: Ownership and lifetime": "Retained AST array; no Attr ownership.",
      "Property: children": "Parsed child structure.",
      "Property: children: Why": "Defines the element's compile-time subtree.",
      "Property: children: Ownership and lifetime": "Retained AST array; no DOM ownership.",
      "Property: tagName": "Authored qualified tag name.",
      "Property: tagName: Why": "Preserves native namespace-sensitive creation.",
      "Property: tagName: Ownership and lifetime": "Retained string metadata."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { ElementNode } from \"@typed/template/Template\"\n\nconst node = new ElementNode(\"section\", [], [])"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/template/src/Template.ts",
      "line": 283
    },
    "since": "1.0.0",
    "category": "Element structure"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/template#ElementNode",
    "packageName": "@typed/template",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/template",
    "exportName": "ElementNode",
    "qualifiedName": "ElementNode",
    "declarationKey": "declaration:c42698122a62d3aed432a5c2",
    "family": "class",
    "signatures": [
      "export declare class ElementNode {\n    readonly _tag = \"element\";\n    readonly tagName: string;\n    readonly attributes: Array<Attribute>;\n    readonly children: Array<Node>;\n    constructor(tagName: string, attributes: Array<Attribute>, children: Array<Node>);\n}"
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 283,
          "column": 1
        },
        "end": {
          "line": 343,
          "column": 2
        }
      },
      {
        "file": "packages/template/dist/Template.d.ts",
        "start": {
          "line": 297,
          "column": 5
        },
        "end": {
          "line": 297,
          "column": 87
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 294,
          "column": 3
        },
        "end": {
          "line": 294,
          "column": 29
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 316,
          "column": 3
        },
        "end": {
          "line": 316,
          "column": 41
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 327,
          "column": 3
        },
        "end": {
          "line": 327,
          "column": 34
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 305,
          "column": 3
        },
        "end": {
          "line": 305,
          "column": 28
        }
      }
    ],
    "aliases": [
      "@typed/template/Template#ElementNode"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:c42698122a62d3aed432a5c2",
    "name": "ElementNode",
    "family": "class",
    "facets": [
      {
        "family": "class",
        "syntaxKind": "ClassDeclaration",
        "signatures": [
          "export declare class ElementNode {\n    readonly _tag = \"element\";\n    readonly tagName: string;\n    readonly attributes: Array<Attribute>;\n    readonly children: Array<Node>;\n    constructor(tagName: string, attributes: Array<Attribute>, children: Array<Node>);\n}"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Template.ts",
            "start": {
              "line": 283,
              "column": 1
            },
            "end": {
              "line": 343,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "constructor",
        "syntaxKind": "Constructor",
        "signatures": [
          "constructor(tagName: string, attributes: Array<Attribute>, children: Array<Node>);"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/dist/Template.d.ts",
            "start": {
              "line": 297,
              "column": 5
            },
            "end": {
              "line": 297,
              "column": 87
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "readonly _tag = \"element\";"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Template.ts",
            "start": {
              "line": 294,
              "column": 3
            },
            "end": {
              "line": 294,
              "column": 29
            }
          }
        ],
        "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": 316,
              "column": 3
            },
            "end": {
              "line": 316,
              "column": 41
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "readonly children: Array<Node>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Template.ts",
            "start": {
              "line": 327,
              "column": 3
            },
            "end": {
              "line": 327,
              "column": 34
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "readonly tagName: string;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Template.ts",
            "start": {
              "line": 305,
              "column": 3
            },
            "end": {
              "line": 305,
              "column": 28
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      }
    ],
    "signatures": [
      "export declare class ElementNode {\n    readonly _tag = \"element\";\n    readonly tagName: string;\n    readonly attributes: Array<Attribute>;\n    readonly children: Array<Node>;\n    constructor(tagName: string, attributes: Array<Attribute>, children: Array<Node>);\n}"
    ],
    "typeParameters": [],
    "summary": "Represents an HTML, SVG, MathML, or foreign-content element with children.",
    "sections": {
      "Why": "Keeping the authored tag, attributes, and children explicit lets DOM\ncompilation apply native namespace rules and SSR preserve author markup.",
      "Ownership and lifetime": "The model owns only parsed arrays and strings, never the eventual Element.",
      "Constructor": "Creates an element AST node.",
      "Constructor: Why": "Renderer tooling can construct native element syntax explicitly.",
      "Constructor: Ownership and lifetime": "Retains supplied data and creates no Element.",
      "Property: _tag": "Element-node discriminant.",
      "Property: _tag: Why": "Enables exhaustive compilation.",
      "Property: _tag: Ownership and lifetime": "Immutable AST metadata.",
      "Property: attributes": "Parsed attributes in author order.",
      "Property: attributes: Why": "Keeps distinct native directive semantics.",
      "Property: attributes: Ownership and lifetime": "Retained AST array; no Attr ownership.",
      "Property: children": "Parsed child structure.",
      "Property: children: Why": "Defines the element's compile-time subtree.",
      "Property: children: Ownership and lifetime": "Retained AST array; no DOM ownership.",
      "Property: tagName": "Authored qualified tag name.",
      "Property: tagName: Why": "Preserves native namespace-sensitive creation.",
      "Property: tagName: Ownership and lifetime": "Retained string metadata."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { ElementNode } from \"@typed/template/Template\"\n\nconst node = new ElementNode(\"section\", [], [])"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 283,
          "column": 1
        },
        "end": {
          "line": 343,
          "column": 2
        }
      },
      {
        "file": "packages/template/dist/Template.d.ts",
        "start": {
          "line": 297,
          "column": 5
        },
        "end": {
          "line": 297,
          "column": 87
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 294,
          "column": 3
        },
        "end": {
          "line": 294,
          "column": 29
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 316,
          "column": 3
        },
        "end": {
          "line": 316,
          "column": 41
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 327,
          "column": 3
        },
        "end": {
          "line": 327,
          "column": 34
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 305,
          "column": 3
        },
        "end": {
          "line": 305,
          "column": 28
        }
      }
    ],
    "since": "1.0.0",
    "category": "Element structure"
  }
}
