Модуль:HTML/doc

From in.wiki
Jump to navigation Jump to search

This is the documentation page for Модуль:HTML

Источник: https://github.com/soulik/lpeg-grammars


table#1 {
  ["doctype"] = table#2 {
    ["attributes"] = table#3 {
      ["html"] = true,
    },
  },
  ["elements"] = table#4 {
    table#5 {
      ["elementName"] = "html",
      ["elements"] = table#6 {
        table#7 {
          ["elementName"] = "head",
          ["elements"] = table#8 {
            table#9 {
              ["elementName"] = "title",
              ["elements"] = table#10 {
                table#11 {
                  ["text"] = "A sample code",
                  ["type"] = "text",
                },
              },
              ["type"] = "tag",
            },
            table#12 {
              ["attributes"] = table#13 {
                ["charset"] = "UTF-8",
              },
              ["elementName"] = "meta",
              ["type"] = "tag",
            },
          },
          ["type"] = "tag",
        },
        table#14 {
          ["elementName"] = "body",
          ["elements"] = table#15 {
            table#16 {
              ["elementName"] = "h1",
              ["elements"] = table#17 {
                table#18 {
                  ["text"] = "Hello world!",
                  ["type"] = "text",
                },
              },
              ["type"] = "tag",
            },
            table#19 {
              ["elementName"] = "br",
              ["type"] = "tag",
            },
          },
          ["type"] = "tag",
        },
      },
      ["type"] = "tag",
    },
  },
}