createAttribute

fun createAttribute(localName: String): Attr(source)

Creates an attribute object with a specified name.

Parameters

name

String that sets the attribute object's name.

MDN Reference