Versions in this module Expand all Collapse all v0 v0.2.1 Feb 9, 2024 Changes in this version + const ANCHOR_HREF_KEY + const CHILDREN_KEY + const CLASS_KEY + const ID_KEY + const MAX_PRETTY_PRINT_COST + const MAX_PRETTY_PRINT_LINE_COUNT + const MAX_WALKING_DEPTH + const MODEL_KEY + const NONCE_ATTRIBUTE_NAME + const S_CHILDREN_ALREADY_PROVIDED_WITH_CHILDREN_PROP + const S_NODE_ALREADY_HAS_A_PARENT + const S_NODE_ALREADY_HAS_SIBLINGS + var ErrSingleNode = errors.New("a single HTML node was expected") + var JSONFORM_ATTR_NAMES []string + var JSONFORM_DATA PseudoHtmxData + var NODE_PATTERN = &core.TypePattern + var PSEUDO_HTMX_ATTR_NAMES []string + var PSEUDO_HTMX_DATA PseudoHtmxData + var PSEUDO_HTMX_DATA_JSON []byte + var PSEUDO_JSONFORM_DATA_JSON []byte + var SHORTEST_JSONFORM_ATTR_NAME_LEN int = 100 + var SHORTEST_PSEUDO_HTMX_ATTR_NAME_LEN int = 100 + var STANDARD_DATA StandardData + var STANDARD_DATA_JSON []byte + var VOID_HTML_TAG_NAMES []string + func EscapeString(ctx *core.Context, s core.StringLike) core.String + func NewHTMLNamespace() *core.Namespace + func Render(ctx *core.Context, v core.Value) *core.ByteSlice + func RenderToString(ctx *core.Context, v core.Value) core.String + type AttributeData struct + Description any + Name string + References []DataReference + ValueSet string + func GetAllTagAttributes(name string) ([]AttributeData, bool) + func GetTagSpecificAttributes(name string) ([]AttributeData, bool) + func (d AttributeData) DescriptionContent() string + func (d AttributeData) DescriptionText() string + type AttributeValueData struct + Description any + Name string + References []DataReference + func (d AttributeValueData) DescriptionContent() string + func (d AttributeValueData) DescriptionText() string + type AttributeValueSet struct + Name string + Values []AttributeValueData + func GetAttributeValueSet(name string, tagName string) (set AttributeValueSet, found bool) + type DataReference struct + Name string + URL string + type HTML5DocumentDescription struct + HtmlTagNode *HTMLNode + type HTMLNode struct + func CreateHTMLNodeFromXMLElement(ctx *core.Context, arg *core.XMLElement) *HTMLNode + func CreateSpanElem(strLike core.StringLike) *HTMLNode + func CreateTextLikeElem(strLike core.StringLike, atom atom.Atom) *HTMLNode + func CreateTextNode(strLike core.StringLike) *HTMLNode + func CreateTimeElem(strLike core.StringLike) *HTMLNode + func NewHTML5DocumentNodeFromGoDescription(desc HTML5DocumentDescription) *HTMLNode + func NewHTMLNode(n *html.Node) *HTMLNode + func NewNode(ctx *core.Context, tag core.String, desc *core.Object) (finalNode *HTMLNode) + func NewNodeFromGoDescription(desc NodeDescription) *HTMLNode + func ParseSingleNodeHTML(nodeHTML string) (*HTMLNode, error) + func (*HTMLNode) SetProp(ctx *core.Context, name string, value core.Value) error + func (n *HTMLNode) AddNonceToScriptTagsNoEvent(nonce string) + func (n *HTMLNode) AppendToAttribute(ctx *core.Context, newAttr html.Attribute) + func (n *HTMLNode) Attr(name string) (string, bool) + func (n *HTMLNode) AttrOrEmpty(name string) string + func (n *HTMLNode) Clone(originState *core.GlobalState, sharableValues *[]core.PotentiallySharable, ...) (core.Value, error) + func (n *HTMLNode) Data() string + func (n *HTMLNode) DiscardCache() + func (n *HTMLNode) Equal(ctx *core.Context, other core.Value, alreadyCompared map[uintptr]uintptr, ...) bool + func (n *HTMLNode) GetGoMethod(name string) (*core.GoFunction, bool) + func (n *HTMLNode) HasId() bool + func (n *HTMLNode) HasNextSibling() bool + func (n *HTMLNode) HasParent() bool + func (n *HTMLNode) HasPrevSibling() bool + func (n *HTMLNode) IsElementWithTag(tag string) bool + func (n *HTMLNode) IsMutable() bool + func (n *HTMLNode) IsRecursivelyRenderable(ctx *core.Context, input core.RenderingInput) bool + func (n *HTMLNode) OnMutation(ctx *core.Context, microtask core.MutationCallbackMicrotask, ...) (core.CallbackHandle, error) + func (n *HTMLNode) PrettyPrint(w *bufio.Writer, config *core.PrettyPrintConfig, depth int, ...) + func (n *HTMLNode) Prop(ctx *core.Context, name string) core.Value + func (n *HTMLNode) PropertyNames(ctx *core.Context) []string + func (n *HTMLNode) RemoveAttribute(ctx *core.Context, name string) + func (n *HTMLNode) RemoveMutationCallback(ctx *core.Context, handle core.CallbackHandle) + func (n *HTMLNode) RemoveMutationCallbackMicrotasks(ctx *core.Context) + func (n *HTMLNode) Render(ctx *core.Context, w io.Writer, config core.RenderingInput) (int, error) + func (n *HTMLNode) ReplaceChildHTML(ctx *core.Context, prevHTMLNode *HTMLNode, child *HTMLNode) + func (n *HTMLNode) SetAttribute(ctx *core.Context, newAttr html.Attribute) + func (n *HTMLNode) SetId(ctx *core.Context, id core.String) + func (n *HTMLNode) ToSymbolicValue(ctx *core.Context, encountered map[uintptr]symbolic.Value) (symbolic.Value, error) + func (n *HTMLNode) Walk(fn func(n *HTMLNode) error) error + func (n *HTMLNode) Watcher(ctx *core.Context, config core.WatcherConfiguration) core.Watcher + func (n *HTMLNode) WriteJSONRepresentation(ctx *core.Context, w *jsoniter.Stream, config core.JSONSerializationConfig, ...) error + func (n *HTMLNode) WriteRepresentation(ctx *core.Context, w io.Writer, config *core.ReprConfig, depth int) error + type HtmxData struct + GlobalAttributes []AttributeData + ValueSets []AttributeValueSet + Version float64 + var HTMX_DATA HtmxData + var HTMX_DATA_JSON []byte + type JSONFormData struct + GlobalAttributes []AttributeData + ValueSets []AttributeValueSet + Version float64 + type NodeDescription struct + Attributes []html.Attribute + Children []*HTMLNode + Class string + Id string + Tag string + type PseudoHtmxData struct + GlobalAttributes []AttributeData + ValueSets []AttributeValueSet + Version float64 + type StandardData struct + GlobalAttributes []AttributeData + Tags []TagData + ValueSets []AttributeValueSet + Version float64 + type TagData struct + Attributes []AttributeData + Description any + Name string + References []DataReference + Void bool + func GetTagData(name string) (TagData, bool) + func (d TagData) DescriptionContent() string + func (d TagData) DescriptionText() string