martmists
12/03/2021, 1:22 PMa(...) {
attributes["download"] = "..."
}
is what you're looking for I thinkAlex Styl
12/03/2021, 1:22 PMdownload =""
. Which works for sure, but I am not sure if it would work on all browsersAleksei Tirman [JB]
12/06/2021, 8:13 AMif (tag.attributes.isNotEmpty()) {
tag.attributesEntries.forEachIndexed { _, e ->
if (!e.key.isValidXmlAttributeName()) {
throw IllegalArgumentException("Tag ${tag.tagName} has invalid attribute name ${e.key}")
}
out.append(' ')
out.append(e.key)
out.append("=\"")
out.escapeAppend(e.value)
out.append('\"')
}
}
Alex Styl
12/06/2021, 12:03 PMAleksei Tirman [JB]
12/06/2021, 12:10 PM