HtmlStandards

io.github.frikit.twirlspec.html.HtmlStandards
See theHtmlStandards companion object
class HtmlStandards(attributePrefixes: Set[String]) extends RuleSet

Basic HTML validity, checked without a browser or a 20-dependency validator.

well-formed-html reports what the parser had to repair, which catches a lot but describes the symptom rather than the cause. These read the markup as written and name the element and line responsible.

Value parameters

attributePrefixes

prefixes a project uses for its own attributes, beyond data- and aria-

Attributes

Companion
object
Source
HtmlStandards.scala
Graph
Supertypes
trait RuleSet
class Object
trait Matchable
class Any
Known subtypes
object HtmlStandards

Members list

Value members

Inherited methods

def allExcept(ids: String*): Seq[Rule]

Every rule but the ones with these ids, each of which must be in the set.

Every rule but the ones with these ids, each of which must be in the set.

Attributes

Inherited from:
RuleSet
Source
RuleSet.scala
def expectation(rules: Seq[Rule] = ...): Expectation

This set, or any subset of it, as one expectation.

This set, or any subset of it, as one expectation.

Attributes

Inherited from:
RuleSet
Source
RuleSet.scala
def only(ids: String*): Seq[Rule]

Only the rules with these ids, each of which must be in the set.

Only the rules with these ids, each of which must be in the set.

Attributes

Inherited from:
RuleSet
Source
RuleSet.scala

Concrete fields

lazy val all: Seq[Rule]

Every rule in this set, at its natural severity.

Every rule in this set, at its natural severity.

Attributes

Source
HtmlStandards.scala