Adds the specified cssClass
to the existing class
attribute of an Elem or creates the class attribute with that class
if it does not exist.
Adds the specified cssClass
to the existing class
attribute of an Elem or creates the class attribute with that class
if it does not exist.
Adds the specified cssClass
to the existing class
attribute of an Elem or create the class attribute with that
class if it does not exist.
Adds the specified cssClass
to the existing class
attribute of an Elem or create the class attribute with that
class if it does not exist.
If cssClass
is not Full
, returns the
passed Elem unchanged.
For a list of NodeSeq, ensure that the the id of all Elems are unique, recursively.
For a list of NodeSeq, ensure that the the id of all Elems are unique, recursively. If there's a duplicate, that Elem will be returned without an id.
Ensure that the first Element has the specified ID
For a list of NodeSeq, ensure that the the id of the root Elems are unique.
For a list of NodeSeq, ensure that the the id of the root Elems are unique. If there's a duplicate, that Elem will be returned without an id
Given a NodeSeq and a function that returns a Box[T], return the first value found in which the function evaluates to Full
Finds the first Elem
in the NodeSeq (or any children)
that has an ID attribute and return the value of that attribute.
Given an id value, find the Elem with the specified id
Given a NodeSeq and a function that returns an Option[T], return the first value found in which the function evaluates to Some
Make a MetaData instance from a key and a value.
Make a MetaData instance from a key and a value. If key contains a colon, this method will generate a PrefixedAttribute with the text before the colon used as the prefix. Otherwise, it will produce an UnprefixedAttribute.
Convert a list of strings into a MetaData of attributes.
Convert a list of strings into a MetaData of attributes.
The strings in the list must be in the format of key=value.
Remove an attribute from the specified list of existing attributes.
Remove an attribute from the specified list of existing attributes.
the name of the attribute to remove
a list of existing attributes
the attributes list sans the named attribute
Remove an attribute from the specified element.
Remove an attribute from the specified element.
the name of the attribute to remove
the element sans the named attribute
Remove all the <head> elements, just leaving their child elements.