HtmlVocabulary

io.github.frikit.twirlspec.html.HtmlVocabulary

The parts of the HTML vocabulary a checker needs to know to tell a mistake from a shorthand.

Attributes

Source
HtmlVocabulary.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def isCustomElementName(name: String): Boolean

Whether a name is a valid custom element name, by HTML's grammar: a lowercase letter first, a hyphen somewhere, and none of the reserved.

Whether a name is a valid custom element name, by HTML's grammar: a lowercase letter first, a hyphen somewhere, and none of the reserved.

Attributes

Source
HtmlVocabulary.scala
def isKnownAttribute(name: String, extraPrefixes: Set[String]): Boolean

data-* and aria-* are open sets by design, and a framework may add its own prefix.

data-* and aria-* are open sets by design, and a framework may add its own prefix.

Attributes

Source
HtmlVocabulary.scala
def isKnownElement(name: String): Boolean

Attributes

Source
HtmlVocabulary.scala

Concrete fields

val elementAttributes: Set[String]

Attributes that belong to particular elements. Kept flat: a checker that knows the name is real catches the typo, and which element it sits on is the content model's business rather than the vocabulary's.

Attributes that belong to particular elements. Kept flat: a checker that knows the name is real catches the typo, and which element it sits on is the content model's business rather than the vocabulary's.

Attributes

Source
HtmlVocabulary.scala
val elements: Set[String]

Every element name in the HTML living standard.

Every element name in the HTML living standard.

Attributes

Source
HtmlVocabulary.scala
val eventHandlerAttributes: Set[String]

The event handler content attributes: those any element may carry, and those a body carries for its window.

The event handler content attributes: those any element may carry, and those a body carries for its window.

Attributes

Source
HtmlVocabulary.scala
val eventHandlerExtensions: Set[String]

The handlers other specifications add to every element: pointer events, CSS animations and transitions, selection and touch.

The handlers other specifications add to every element: pointer events, CSS animations and transitions, selection and touch.

Attributes

Source
HtmlVocabulary.scala
val globalAttributes: Set[String]

Attributes any element may carry.

Attributes any element may carry.

Attributes

Source
HtmlVocabulary.scala
val optionalEndTag: Set[String]

Elements whose end tag the HTML specification allows you to leave out.

Elements whose end tag the HTML specification allows you to leave out.

`

text` is not a mistake: the `` closes the paragraph for you. A checker that does not know this reports half of every page.

Attributes

Source
HtmlVocabulary.scala
val rawText: Set[String]

Elements whose content is text, not markup: a < inside them opens nothing.

Elements whose content is text, not markup: a < inside them opens nothing.

Attributes

Source
HtmlVocabulary.scala
val void: Set[String]

Elements that never have content, so never have an end tag.

Elements that never have content, so never have an end tag.

Attributes

Source
HtmlVocabulary.scala