htmlio

package
v0.405.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package htmlio writes the small HTML fragments used by standard JaWS widgets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteHTMLInner

func WriteHTMLInner(w io.Writer, jid jid.Jid, htmlTag, typeAttr string, innerHTML template.HTML, attrs ...template.HTMLAttr) (err error)

WriteHTMLInner writes an HTML element with trusted inner HTML.

Singleton tags such as img and input are written without closing tags unless innerHTML is non-empty.

func WriteHTMLInput

func WriteHTMLInput(w io.Writer, jid jid.Jid, typeAttr, valueAttr string, attrs []template.HTMLAttr) (err error)

WriteHTMLInput writes an input start tag with optional id, type, value and raw attribute fragments.

func WriteHTMLTag

func WriteHTMLTag(w io.Writer, jid jid.Jid, htmlTag, typeAttr, valueAttr string, attrs []template.HTMLAttr) (err error)

WriteHTMLTag writes an HTML start tag with optional id, type, value and raw attribute fragments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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