garden.lexicon.rational-mastodon.html2

chrisshank.com

Documentation

Root of the HTML document or fragment.

main record
2 examples

Root of the HTML document or fragment.

Record Key tid Timestamp-based ID

Properties

View raw schema
{
  "key": "tid",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "children"
    ],
    "properties": {
      "children": {
        "type": "array",
        "items": {
          "refs": [
            "#docType",
            "#element",
            "#text",
            "#comment"
          ],
          "type": "union"
        }
      }
    }
  },
  "description": "Root of the HTML document or fragment."
}
attribute object

An HTML attribute (https://developer.mozilla.org/en-US/docs/Glossary/Attribute)

Properties

name string Required

No description available.

value string Required

No description available.

View raw schema
{
  "type": "object",
  "required": [
    "name",
    "value"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "value": {
      "type": "string"
    }
  },
  "description": "An HTML attribute (https://developer.mozilla.org/en-US/docs/Glossary/Attribute)"
}
comment object

An HTML comment node (https://developer.mozilla.org/en-US/docs/Web/HTML/Guides/Comments)

Properties

value string Required

No description available.

View raw schema
{
  "type": "object",
  "required": [
    "value"
  ],
  "properties": {
    "value": {
      "type": "string"
    }
  },
  "description": "An HTML comment node (https://developer.mozilla.org/en-US/docs/Web/HTML/Guides/Comments)"
}
docType object

An HTML Doctype node (https://developer.mozilla.org/en-US/docs/Glossary/Doctype)

This object has no properties defined.

View raw schema
{
  "type": "object",
  "properties": {},
  "description": "An HTML Doctype node (https://developer.mozilla.org/en-US/docs/Glossary/Doctype)"
}
element object

An HTML element node (https://developer.mozilla.org/en-US/docs/Web/API/Element)

Properties

attributes array of ref#attribute Required

No description available.

tagName string Required

No description available.

View raw schema
{
  "type": "object",
  "required": [
    "tagName",
    "attributes",
    "children"
  ],
  "properties": {
    "tagName": {
      "type": "string"
    },
    "children": {
      "type": "array",
      "items": {
        "refs": [
          "#element",
          "#text",
          "#comment"
        ],
        "type": "union"
      }
    },
    "attributes": {
      "type": "array",
      "items": {
        "ref": "#attribute",
        "type": "ref"
      }
    }
  },
  "description": "An HTML element node (https://developer.mozilla.org/en-US/docs/Web/API/Element)"
}
text object

An HTML text node (https://developer.mozilla.org/en-US/docs/Web/API/Text)

Properties

value string Required

No description available.

View raw schema
{
  "type": "object",
  "required": [
    "value"
  ],
  "properties": {
    "value": {
      "type": "string"
    }
  },
  "description": "An HTML text node (https://developer.mozilla.org/en-US/docs/Web/API/Text)"
}

Lexicon Garden

@