set Attribute
Deprecated
Use set() instead
Replace with
set(name, value, namespace)
Content copied to clipboard
Set an attribute of this element. For example a().setAttribute("href", "http://kweb.io")
will create an <a>
element and set it to <a href="http://kweb.io/">
.
Parameters
namespace
If non-null elements will be created with Element.setAttributeNS() with the specified namespace. If null then Kweb will use Element.createElement.
Deprecated
use set() instead
Replace with
set(name, value)
Content copied to clipboard
Deprecated
use set() instead
Replace with
set(name, value)
Content copied to clipboard
Set an attribute to the value in a KVal, if the value changes the attribute value will be updated automatically.