htmlelements

package module
v0.0.0-...-f878bbf Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2016 License: BSD-3-Clause Imports: 1 Imported by: 0

README

htmlelements

HTML 5 elements distilled http://www.w3.org/TR/html5/

Build Status GoDoc Go Report Card BSD License

HTML elements distilled

  • void
  • raw text elements
  • escapable raw text elements
  • foreign elements
  • normal elements

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EscapableRawTextElements = AtomSlice{
	atom.Textarea, atom.Title,
}

EscapableRawTextElements - can have text and character references, but the text must not contain an ambiguous ampersand. http://www.w3.org/TR/html5/syntax.html#escapable-raw-text-elements

View Source
var ForeignElements = AtomSlice{
	atom.Math, atom.Svg,
}

ForeignElements - whose start tag is marked as self-closing can't have any contents (since, again, as there's no end tag, no content can be put between the start tag and the end tag). Foreign elements whose start tag is not marked as self-closing can have text, character references, CDATA sections, other elements, and comments, but the text must not contain the character '<' (U+003C) or an ambiguous ampersand. http://www.w3.org/TR/html5/syntax.html#foreign-elements

NormalElements - All other allowed HTML elements are normal elements. http://www.w3.org/TR/html5/syntax.html#normal-elements generated;

View Source
var RawTextElements = AtomSlice{
	atom.Script, atom.Style,
}

RawTextElements - can have text http://www.w3.org/TR/html5/syntax.html#raw-text-elements<F37>

VoidElements - HTML elements that are void of has self closing tag http://www.w3.org/TR/html5/syntax.html#void-elements

Functions

This section is empty.

Types

type AtomSlice

type AtomSlice []atom.Atom

AtomSlice - convenience type to host Atom's & iterate through

func (*AtomSlice) Exist

func (atomslice *AtomSlice) Exist(at atom.Atom) bool

Exist - check if given Atom element exist

Directories

Path Synopsis
Godeps
_workspace/src/golang.org/x/net/html/atom
Package atom provides integer codes (also known as atoms) for a fixed set of frequently occurring HTML strings: tag names and attribute keys such as "p" and "id".
Package atom provides integer codes (also known as atoms) for a fixed set of frequently occurring HTML strings: tag names and attribute keys such as "p" and "id".

Jump to

Keyboard shortcuts

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