hyTags
HomeHome DocumentationDocumentation

selection-set-html

Sets the inner HTML content of the selected element.
Parameter
Type
Description
html
String
HTML content to set
return
void
Void
Test Case:Set inner HTML
    <div></div>
    
    <selection-set-html html="<b>bold</b>">
    <selection-get-html>
    <assert-equal value="<b>bold</b>" type="string">
    
    👆 Try to change something!
  • Test succeeded Test failed