elements

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package elements implements the generation of the HTML element functions based on the HTML standard.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateElements

func GenerateElements(standardIndicesPage *html.Node, syntaxBody *html.Node)

Types

type Element

type Element struct {
	FuncName string

	IsVoid bool

	// Tag is the name of the element, e.g. "div", "span", "h1", etc.
	Tag string
	// Description is a short description of the element.
	Description string
	// SemanticGroup defines to which broad group the element belongs.
	SemanticGroup string
	// Categories are the categories the element belongs to.
	Categories []string
	// Parents are all possible elements of this element
	Parents []string
	// Children are all possible elements of this element
	Children []string
	// Attributes are all allowed attributes of this element
	Attributes []string

	// DocumentationLink is the link to the documentation of this in the html standard
	DocumentationLink standard.Link
	// Links are all links in the description of this element
	Links []standard.Link
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL