standard

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: 15 Imported by: 0

Documentation

Overview

Package standard loads the html-standard, either from the stored file or refreshes it from the web.

Index

Constants

View Source
const HTMLStandardURL = `https://html.spec.whatwg.org/dev/`

Variables

This section is empty.

Functions

func FindNodeWithId

func FindNodeWithId(node *html.Node, id string) *html.Node

func FindTBody

func FindTBody(table *html.Node) *html.Node

func FindTableWithCaption

func FindTableWithCaption(page *html.Node, caption string) (*html.Node, bool)

func LoadStandardForWebDevsIndices

func LoadStandardForWebDevsIndices(reload bool) *html.Node

func LoadStandardForWebDevsInput

func LoadStandardForWebDevsInput(reload bool) *html.Node

func LoadStandardForWebDevsSyntax

func LoadStandardForWebDevsSyntax(reload bool) *html.Node

func Path

func Path(node *html.Node) string

Types

type Link struct {
	Name string
	Url  string
}

func DistinguishLinkDuplicates

func DistinguishLinkDuplicates(text string, links []Link) (string, []Link)
func EliminateExactSameLinks(links []Link) []Link

func ExtractText

func ExtractText(data *html.Node) (string, []Link)

Jump to

Keyboard shortcuts

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