Attributes
Members list
Type members
Classlikes
Attributes
Attributes
- Companion
- trait
- Source
- Dom.scala
- Supertypes
- Self type
-
AttributeSeparator.type
Attributes
- Companion
- trait
- Source
- Dom.scala
- Supertypes
- Self type
-
AttributeValue.type
Attributes
A document type declaration node.
A document type declaration node.
Renders as , typically for HTML5 documents. Doctype nodes are always rendered without indentation and are treated as leaf nodes by tree operations.
Value parameters
- value
-
the doctype value (e.g., "html")
Attributes
- Source
- Dom.scala
- Supertypes
-
trait Domtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A sealed trait for HTML elements with a tag, attributes, and children.
A sealed trait for HTML elements with a tag, attributes, and children.
Subtypes include:
- Dom.Element.Generic — standard HTML elements
- Dom.Element.Script — script tags (children rendered without escaping)
- Dom.Element.Style — style tags (children rendered without escaping)
Elements support modifier chaining via apply(effect, ...) and when(condition)(...) for fluent construction.
Import DomModifierConversions._ (or use the zio.blocks.html package object) to enable implicit conversions from String, Dom, Dom.Attribute, etc. to DomModifier.
Attributes
- Companion
- object
- Source
- Dom.scala
- Supertypes
-
trait CssSelectabletrait Domtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
An empty DOM node that renders to nothing.
An empty DOM node that renders to nothing.
Used as a neutral element for filtering and tree operations.
Attributes
- Source
- Dom.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Domtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Self type
-
Empty.type
A text node containing HTML content to be escaped during rendering.
A text node containing HTML content to be escaped during rendering.
Text nodes are automatically HTML-escaped to prevent XSS attacks when rendered (except within Script and Style elements, which are unescaped).
Value parameters
- content
-
the text content (will be HTML-escaped in output)
Attributes
- Source
- Dom.scala
- Supertypes
-
trait Domtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Inherited and Abstract types
The names of the product elements.
The name of the type.