Bump version to 1.2.7, add TestSvg for testing SVG rendering, and remove redundant class attribute handling in ElementExtensions.
Some checks failed
Gradle CI / build (push) Has been cancelled

This commit is contained in:
2025-05-30 12:22:21 +02:00
parent e97b6966ba
commit 177d96975a
3 changed files with 51 additions and 5 deletions

View File

@@ -84,8 +84,6 @@ internal fun Element.setKompAttribute(attributeName: String, value: String?) {
removeAttribute(attributeName)
}
}
} else if (attributeName == "class") {
className = ""
} else {
removeAttribute(attributeName)
}
@@ -105,8 +103,6 @@ internal fun Element.setKompAttribute(attributeName: String, value: String?) {
setAttribute(attributeName, value)
}
}
} else if (attributeName == "class") {
className = value
} else if (this.getAttribute(attributeName) != value) {
setAttribute(attributeName, value)
}