Skip to content

Commit

Permalink
Added srcset attribute to "source" tag (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
severn-everett authored May 17, 2024
1 parent c73460c commit 5f61eca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 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 @@ -1217,6 +1217,7 @@
<xsd:complexType>
<xsd:attributeGroup ref="commonAttributeGroup"/>
<xsd:attribute name="src" type="xsd:anyURI"/>
<xsd:attribute name="srcset" type="xsd:anyURI"/>
<xsd:attribute name="type"/>
<xsd:attribute name="media"/>
</xsd:complexType>
Expand Down
4 changes: 4 additions & 0 deletions src/commonMain/kotlin/generated/gen-tags-s.kt
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ open class SOURCE(initialAttributes : Map<String, String>, override val consumer
get() = attributeStringString[this, "src"]
set(newValue) {attributeStringString[this, "src"] = newValue}

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

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

0 comments on commit 5f61eca

Please sign in to comment.