Skip to content

Commit bc9ec34

Browse files
Added "auto" value for "dir" attribute (#275)
1 parent 5f61eca commit bc9ec34

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

buildSrc/src/main/resources/html_5.xsd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
<xsd:restriction base="xsd:NMTOKEN">
9595
<xsd:enumeration value="ltr"/>
9696
<xsd:enumeration value="rtl"/>
97+
<xsd:enumeration value="auto"/>
9798
</xsd:restriction>
9899
</xsd:simpleType>
99100
</xsd:attribute>

src/commonMain/kotlin/generated/gen-enums.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import kotlinx.html.*
1010
@Suppress("unused", "EnumEntryName")
1111
enum class Dir(override val realValue : String) : AttributeEnum {
1212
ltr("ltr"),
13-
rtl("rtl")
13+
rtl("rtl"),
14+
auto("auto")
1415
}
1516

1617
internal val dirValues : Map<String, Dir> = Dir.entries.associateBy { it.realValue }

src/commonMain/kotlin/generated/gen-tags-s.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ open class SOURCE(initialAttributes : Map<String, String>, override val consumer
214214
set(newValue) {attributeStringString[this, "src"] = newValue}
215215

216216
var srcset : String
217-
get() = attributeStringString.get(this, "srcset")
218-
set(newValue) {attributeStringString.set(this, "srcset", newValue)}
217+
get() = attributeStringString[this, "srcset"]
218+
set(newValue) {attributeStringString[this, "srcset"] = newValue}
219219

220220
var type : String
221221
get() = attributeStringString[this, "type"]

0 commit comments

Comments
 (0)