hyTags
HomeHome DocumentationDocumentation

attribute-set

Sets the value of an attribute on an element
Parameter
Type
Description
name
String
The name of the attribute to set
value
String
The value to set for the attribute
return
void
No return value
Test Case:Set attribute
    <div></div>
    
    <attribute-set name="title" value="hello">
    <attribute-get name="title">
    <assert-equal value="hello" type="string">
    
    👆 Try to change something!
  • Test succeeded Test failed