Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing typo in area attribute #271

Merged
merged 3 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion buildSrc/src/main/resources/html_5.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,7 @@
<xsd:element name="area">
<xsd:complexType>
<xsd:attributeGroup ref="commonAttributeGroup"/>
<xsd:attribute name="Shape" default="rect">
<xsd:attribute name="shape" default="rect">
<xsd:simpleType>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="rect"/>
Expand Down
2 changes: 2 additions & 0 deletions src/commonMain/kotlin/generated/gen-attributes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ internal val attributeBooleanBooleanOnOff : Attribute<Boolean> = BooleanAttribut

internal val attributeBooleanTicker : Attribute<Boolean> = TickerAttribute()

internal val attributeAreaShapeEnumAreaShapeValues : Attribute<AreaShape> = EnumAttribute(areaShapeValues)

internal val attributeButtonFormEncTypeEnumButtonFormEncTypeValues : Attribute<ButtonFormEncType> = EnumAttribute(buttonFormEncTypeValues)

internal val attributeButtonFormMethodEnumButtonFormMethodValues : Attribute<ButtonFormMethod> = EnumAttribute(buttonFormMethodValues)
Expand Down
2 changes: 1 addition & 1 deletion src/commonMain/kotlin/generated/gen-consumer-tags.kt
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public inline fun <T, C : TagConsumer<T>> C.area(
crossinline block: AREA.() -> Unit = {},
): T {
contract { callsInPlace(block, InvocationKind.EXACTLY_ONCE) }
return AREA(attributesMapOf("Shape", shape?.enumEncode(),"alt", alt,"class", classes), this)
return AREA(attributesMapOf("shape", shape?.enumEncode(),"alt", alt,"class", classes), this)
.visitAndFinalize(this, block)
}

Expand Down
10 changes: 5 additions & 5 deletions src/commonMain/kotlin/generated/gen-tag-unions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -312,31 +312,31 @@ inline fun FlowOrPhrasingContent.abbr(classes : String? = null, crossinline bloc
@OptIn(ExperimentalContracts::class)
inline fun FlowOrPhrasingContent.area(shape : AreaShape? = null, alt : String? = null, classes : String? = null, crossinline block : AREA.() -> Unit = {}) : Unit {
contract { callsInPlace(block, InvocationKind.EXACTLY_ONCE) }
AREA(attributesMapOf("Shape", shape?.enumEncode(),"alt", alt,"class", classes), consumer).visit(block)
AREA(attributesMapOf("shape", shape?.enumEncode(),"alt", alt,"class", classes), consumer).visit(block)
}
@HtmlTagMarker
@OptIn(ExperimentalContracts::class)
inline fun FlowOrPhrasingContent.rectArea(alt : String? = null, classes : String? = null, crossinline block : AREA.() -> Unit = {}) : Unit {
contract { callsInPlace(block, InvocationKind.EXACTLY_ONCE) }
AREA(attributesMapOf("Shape", AreaShape.rect.realValue,"alt", alt,"class", classes), consumer).visit(block)
AREA(attributesMapOf("shape", AreaShape.rect.realValue,"alt", alt,"class", classes), consumer).visit(block)
}
@HtmlTagMarker
@OptIn(ExperimentalContracts::class)
inline fun FlowOrPhrasingContent.circleArea(alt : String? = null, classes : String? = null, crossinline block : AREA.() -> Unit = {}) : Unit {
contract { callsInPlace(block, InvocationKind.EXACTLY_ONCE) }
AREA(attributesMapOf("Shape", AreaShape.circle.realValue,"alt", alt,"class", classes), consumer).visit(block)
AREA(attributesMapOf("shape", AreaShape.circle.realValue,"alt", alt,"class", classes), consumer).visit(block)
}
@HtmlTagMarker
@OptIn(ExperimentalContracts::class)
inline fun FlowOrPhrasingContent.polyArea(alt : String? = null, classes : String? = null, crossinline block : AREA.() -> Unit = {}) : Unit {
contract { callsInPlace(block, InvocationKind.EXACTLY_ONCE) }
AREA(attributesMapOf("Shape", AreaShape.poly.realValue,"alt", alt,"class", classes), consumer).visit(block)
AREA(attributesMapOf("shape", AreaShape.poly.realValue,"alt", alt,"class", classes), consumer).visit(block)
}
@HtmlTagMarker
@OptIn(ExperimentalContracts::class)
inline fun FlowOrPhrasingContent.defaultArea(alt : String? = null, classes : String? = null, crossinline block : AREA.() -> Unit = {}) : Unit {
contract { callsInPlace(block, InvocationKind.EXACTLY_ONCE) }
AREA(attributesMapOf("Shape", AreaShape.default.realValue,"alt", alt,"class", classes), consumer).visit(block)
AREA(attributesMapOf("shape", AreaShape.default.realValue,"alt", alt,"class", classes), consumer).visit(block)
}

/**
Expand Down
4 changes: 4 additions & 0 deletions src/commonMain/kotlin/generated/gen-tags-a.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ open class ADDRESS(initialAttributes : Map<String, String>, override val consume

@Suppress("unused")
open class AREA(initialAttributes : Map<String, String>, override val consumer : TagConsumer<*>) : HTMLTag("area", consumer, initialAttributes, null, true, true), HtmlBlockInlineTag {
var shape : AreaShape
get() = attributeAreaShapeEnumAreaShapeValues.get(this, "shape")
set(newValue) {attributeAreaShapeEnumAreaShapeValues.set(this, "shape", newValue)}

var coords : String
get() = attributeStringString.get(this, "coords")
set(newValue) {attributeStringString.set(this, "coords", newValue)}
Expand Down
2 changes: 1 addition & 1 deletion src/jsMain/kotlin/generated/gen-consumer-tags-js.kt
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public inline fun TagConsumer<HTMLElement>.area(
crossinline block: AREA.() -> Unit = {},
): HTMLAreaElement {
contract { callsInPlace(block, InvocationKind.EXACTLY_ONCE) }
return AREA(attributesMapOf("Shape", shape?.enumEncode(),"alt", alt,"class", classes), this)
return AREA(attributesMapOf("shape", shape?.enumEncode(),"alt", alt,"class", classes), this)
.visitAndFinalize(this, block) as HTMLAreaElement
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public inline fun TagConsumer<Element>.area(
crossinline block: AREA.() -> Unit = {},
): HTMLAreaElement {
contract { callsInPlace(block, InvocationKind.EXACTLY_ONCE) }
return AREA(attributesMapOf("Shape", shape?.enumEncode(),"alt", alt,"class", classes), this)
return AREA(attributesMapOf("shape", shape?.enumEncode(),"alt", alt,"class", classes), this)
.visitAndFinalize(this, block) as HTMLAreaElement
}

Expand Down
Loading