addProperty

fun Element.addProperty(name: String, value: String? = null)(source)

Adds a property with given name and value.