Skip to content

Commit

Permalink
Added "auto" value for "dir" attribute (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
severn-everett authored May 17, 2024
1 parent 5f61eca commit bc9ec34
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions buildSrc/src/main/resources/html_5.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="ltr"/>
<xsd:enumeration value="rtl"/>
<xsd:enumeration value="auto"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
Expand Down
3 changes: 2 additions & 1 deletion src/commonMain/kotlin/generated/gen-enums.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import kotlinx.html.*
@Suppress("unused", "EnumEntryName")
enum class Dir(override val realValue : String) : AttributeEnum {
ltr("ltr"),
rtl("rtl")
rtl("rtl"),
auto("auto")
}

internal val dirValues : Map<String, Dir> = Dir.entries.associateBy { it.realValue }
Expand Down
4 changes: 2 additions & 2 deletions src/commonMain/kotlin/generated/gen-tags-s.kt
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ open class SOURCE(initialAttributes : Map<String, String>, override val consumer
set(newValue) {attributeStringString[this, "src"] = newValue}

var srcset : String
get() = attributeStringString.get(this, "srcset")
set(newValue) {attributeStringString.set(this, "srcset", newValue)}
get() = attributeStringString[this, "srcset"]
set(newValue) {attributeStringString[this, "srcset"] = newValue}

var type : String
get() = attributeStringString[this, "type"]
Expand Down

0 comments on commit bc9ec34

Please sign in to comment.