diff --git a/buildSrc/src/main/kotlin/kotlinx/html/generate/attributes.kt b/buildSrc/src/main/kotlin/kotlinx/html/generate/attributes.kt index 5ef288d8..e7fca039 100644 --- a/buildSrc/src/main/kotlin/kotlinx/html/generate/attributes.kt +++ b/buildSrc/src/main/kotlin/kotlinx/html/generate/attributes.kt @@ -33,14 +33,12 @@ fun Appendable.attributeProperty( indent(indent) getter().defineIs(StringBuilder().apply { - receiverDot(request.delegatePropertyName) - functionCall("get", listOf("this", attributeName.quote())) + append(request.delegatePropertyName).append("[this, ${attributeName.quote()}]") }) indent(indent) setter { - receiverDot(request.delegatePropertyName) - functionCall("set", listOf("this", attributeName.quote(), "newValue")) + append(request.delegatePropertyName).append("[this, ${attributeName.quote()}] = newValue") } emptyLine() diff --git a/buildSrc/src/main/kotlin/kotlinx/html/generate/codegen.kt b/buildSrc/src/main/kotlin/kotlinx/html/generate/codegen.kt index 52c11c53..7203d739 100644 --- a/buildSrc/src/main/kotlin/kotlinx/html/generate/codegen.kt +++ b/buildSrc/src/main/kotlin/kotlinx/html/generate/codegen.kt @@ -266,4 +266,4 @@ fun Appendable.suppress(vararg warnings: String) { append("@") functionCall("Suppress", warnings.map { it.quote() }) append("\n") -} \ No newline at end of file +} diff --git a/buildSrc/src/main/kotlin/kotlinx/html/generate/main.kt b/buildSrc/src/main/kotlin/kotlinx/html/generate/main.kt index 66d3f30a..da244678 100644 --- a/buildSrc/src/main/kotlin/kotlinx/html/generate/main.kt +++ b/buildSrc/src/main/kotlin/kotlinx/html/generate/main.kt @@ -277,7 +277,7 @@ private fun generateConsumerTags( yield( consumerBuilder(tag, false) .toBuilder() - .addSuppressAnnotation("DEPRECATION") + .addSuppressAnnotation("DEPRECATION", "DeprecatedCallableAddReplaceWith") .addDeprecatedAnnotation("This tag doesn't support content or requires unsafe (try unsafe {})") .build() ) diff --git a/buildSrc/src/main/kotlin/kotlinx/html/generate/tag-builders.kt b/buildSrc/src/main/kotlin/kotlinx/html/generate/tag-builders.kt index d7cc614d..08b6fac2 100644 --- a/buildSrc/src/main/kotlin/kotlinx/html/generate/tag-builders.kt +++ b/buildSrc/src/main/kotlin/kotlinx/html/generate/tag-builders.kt @@ -29,8 +29,8 @@ fun Appendable.htmlTagBuilders(receiver : String, tag : TagInfo) { if (probablyContentOnly) { htmlTagBuilderMethod(receiver, tag, false) } else if (contentlessTag) { + suppress("DEPRECATION", "DeprecatedCallableAddReplaceWith") deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") - suppress("DEPRECATION") htmlTagBuilderMethod(receiver, tag, false) } @@ -41,11 +41,11 @@ fun Appendable.htmlTagBuilders(receiver : String, tag : TagInfo) { if (probablyContentOnly) { htmlTagEnumBuilderMethod(receiver, tag, false, someEnumAttribute, 0) } else if (contentlessTag) { + suppress("DEPRECATION", "DeprecatedCallableAddReplaceWith") deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") - suppress("DEPRECATION") htmlTagEnumBuilderMethod(receiver, tag, false, someEnumAttribute, 0) } } emptyLine() -} \ No newline at end of file +} diff --git a/buildSrc/src/main/kotlin/kotlinx/html/generate/tagsgen.kt b/buildSrc/src/main/kotlin/kotlinx/html/generate/tagsgen.kt index a870f8c6..2cca3782 100644 --- a/buildSrc/src/main/kotlin/kotlinx/html/generate/tagsgen.kt +++ b/buildSrc/src/main/kotlin/kotlinx/html/generate/tagsgen.kt @@ -82,7 +82,9 @@ fun Appendable.tagClass(repository: Repository, tag: TagInfo, excludeAttributes: fun contentlessTagDeprecation() { indent() - appendLine("@Deprecated(\"This tag most likely doesn't support text content or requires unsafe content (try unsafe {}\")") + appendLine("@Suppress(\"DeprecatedCallableAddReplaceWith\")") + indent() + appendLine("@Deprecated(\"This tag most likely doesn't support text content or requires unsafe content (try unsafe {})\")") } if (tag.name.lowercase() in contentlessTags) { @@ -224,11 +226,10 @@ fun tagConsumer(parameter: TypeName): TypeName = ClassName("kotlinx.html", "TagConsumer") .parameterizedBy(parameter) -fun FunSpec.Builder.addSuppressAnnotation(suppress: String) = +fun FunSpec.Builder.addSuppressAnnotation(vararg suppress: String) = addAnnotation( AnnotationSpec - .builder(Suppress::class) - .addMember("%S", suppress) + .builder(Suppress::class).apply { suppress.forEach { addMember("%S", it) } } .build() ) diff --git a/src/commonMain/kotlin/generated/gen-attr-traits.kt b/src/commonMain/kotlin/generated/gen-attr-traits.kt index a876a03b..94cea9bc 100644 --- a/src/commonMain/kotlin/generated/gen-attr-traits.kt +++ b/src/commonMain/kotlin/generated/gen-attr-traits.kt @@ -11,392 +11,392 @@ import kotlinx.html.impl.* interface CommonAttributeGroupFacade : Tag { } var CommonAttributeGroupFacade.enableTheming : Boolean - get() = attributeBooleanBoolean.get(this, "EnableTheming") - set(newValue) {attributeBooleanBoolean.set(this, "EnableTheming", newValue)} + get() = attributeBooleanBoolean[this, "EnableTheming"] + set(newValue) {attributeBooleanBoolean[this, "EnableTheming"] = newValue} var CommonAttributeGroupFacade.enableViewState : Boolean - get() = attributeBooleanBoolean.get(this, "EnableViewState") - set(newValue) {attributeBooleanBoolean.set(this, "EnableViewState", newValue)} + get() = attributeBooleanBoolean[this, "EnableViewState"] + set(newValue) {attributeBooleanBoolean[this, "EnableViewState"] = newValue} var CommonAttributeGroupFacade.skinID : String - get() = attributeStringString.get(this, "SkinID") - set(newValue) {attributeStringString.set(this, "SkinID", newValue)} + get() = attributeStringString[this, "SkinID"] + set(newValue) {attributeStringString[this, "SkinID"] = newValue} var CommonAttributeGroupFacade.visible : Boolean - get() = attributeBooleanBoolean.get(this, "Visible") - set(newValue) {attributeBooleanBoolean.set(this, "Visible", newValue)} + get() = attributeBooleanBoolean[this, "Visible"] + set(newValue) {attributeBooleanBoolean[this, "Visible"] = newValue} var CommonAttributeGroupFacade.accessKey : String - get() = attributeStringString.get(this, "accesskey") - set(newValue) {attributeStringString.set(this, "accesskey", newValue)} + get() = attributeStringString[this, "accesskey"] + set(newValue) {attributeStringString[this, "accesskey"] = newValue} var CommonAttributeGroupFacade.classes : Set - get() = attributeSetStringStringSet.get(this, "class") - set(newValue) {attributeSetStringStringSet.set(this, "class", newValue)} + get() = attributeSetStringStringSet[this, "class"] + set(newValue) {attributeSetStringStringSet[this, "class"] = newValue} var CommonAttributeGroupFacade.contentEditable : Boolean - get() = attributeBooleanBoolean.get(this, "contenteditable") - set(newValue) {attributeBooleanBoolean.set(this, "contenteditable", newValue)} + get() = attributeBooleanBoolean[this, "contenteditable"] + set(newValue) {attributeBooleanBoolean[this, "contenteditable"] = newValue} var CommonAttributeGroupFacade.contextMenu : String - get() = attributeStringString.get(this, "contextmenu") - set(newValue) {attributeStringString.set(this, "contextmenu", newValue)} + get() = attributeStringString[this, "contextmenu"] + set(newValue) {attributeStringString[this, "contextmenu"] = newValue} var CommonAttributeGroupFacade.dataFolderName : String - get() = attributeStringString.get(this, "data-FolderName") - set(newValue) {attributeStringString.set(this, "data-FolderName", newValue)} + get() = attributeStringString[this, "data-FolderName"] + set(newValue) {attributeStringString[this, "data-FolderName"] = newValue} var CommonAttributeGroupFacade.dataMsgId : String - get() = attributeStringString.get(this, "data-MsgId") - set(newValue) {attributeStringString.set(this, "data-MsgId", newValue)} + get() = attributeStringString[this, "data-MsgId"] + set(newValue) {attributeStringString[this, "data-MsgId"] = newValue} var CommonAttributeGroupFacade.dir : Dir - get() = attributeDirEnumDirValues.get(this, "dir") - set(newValue) {attributeDirEnumDirValues.set(this, "dir", newValue)} + get() = attributeDirEnumDirValues[this, "dir"] + set(newValue) {attributeDirEnumDirValues[this, "dir"] = newValue} var CommonAttributeGroupFacade.draggable : Draggable - get() = attributeDraggableEnumDraggableValues.get(this, "draggable") - set(newValue) {attributeDraggableEnumDraggableValues.set(this, "draggable", newValue)} + get() = attributeDraggableEnumDraggableValues[this, "draggable"] + set(newValue) {attributeDraggableEnumDraggableValues[this, "draggable"] = newValue} var CommonAttributeGroupFacade.hidden : Boolean - get() = attributeBooleanTicker.get(this, "hidden") - set(newValue) {attributeBooleanTicker.set(this, "hidden", newValue)} + get() = attributeBooleanTicker[this, "hidden"] + set(newValue) {attributeBooleanTicker[this, "hidden"] = newValue} var CommonAttributeGroupFacade.id : String - get() = attributeStringString.get(this, "id") - set(newValue) {attributeStringString.set(this, "id", newValue)} + get() = attributeStringString[this, "id"] + set(newValue) {attributeStringString[this, "id"] = newValue} var CommonAttributeGroupFacade.itemProp : String - get() = attributeStringString.get(this, "itemprop") - set(newValue) {attributeStringString.set(this, "itemprop", newValue)} + get() = attributeStringString[this, "itemprop"] + set(newValue) {attributeStringString[this, "itemprop"] = newValue} var CommonAttributeGroupFacade.lang : String - get() = attributeStringString.get(this, "lang") - set(newValue) {attributeStringString.set(this, "lang", newValue)} + get() = attributeStringString[this, "lang"] + set(newValue) {attributeStringString[this, "lang"] = newValue} var CommonAttributeGroupFacade.onAbort : String - get() = attributeStringString.get(this, "onabort") - set(newValue) {attributeStringString.set(this, "onabort", newValue)} + get() = attributeStringString[this, "onabort"] + set(newValue) {attributeStringString[this, "onabort"] = newValue} var CommonAttributeGroupFacade.onBlur : String - get() = attributeStringString.get(this, "onblur") - set(newValue) {attributeStringString.set(this, "onblur", newValue)} + get() = attributeStringString[this, "onblur"] + set(newValue) {attributeStringString[this, "onblur"] = newValue} var CommonAttributeGroupFacade.onCanPlay : String - get() = attributeStringString.get(this, "oncanplay") - set(newValue) {attributeStringString.set(this, "oncanplay", newValue)} + get() = attributeStringString[this, "oncanplay"] + set(newValue) {attributeStringString[this, "oncanplay"] = newValue} var CommonAttributeGroupFacade.onCanPlayThrough : String - get() = attributeStringString.get(this, "oncanplaythrough") - set(newValue) {attributeStringString.set(this, "oncanplaythrough", newValue)} + get() = attributeStringString[this, "oncanplaythrough"] + set(newValue) {attributeStringString[this, "oncanplaythrough"] = newValue} var CommonAttributeGroupFacade.onChange : String - get() = attributeStringString.get(this, "onchange") - set(newValue) {attributeStringString.set(this, "onchange", newValue)} + get() = attributeStringString[this, "onchange"] + set(newValue) {attributeStringString[this, "onchange"] = newValue} var CommonAttributeGroupFacade.onClick : String - get() = attributeStringString.get(this, "onclick") - set(newValue) {attributeStringString.set(this, "onclick", newValue)} + get() = attributeStringString[this, "onclick"] + set(newValue) {attributeStringString[this, "onclick"] = newValue} var CommonAttributeGroupFacade.onContextMenu : String - get() = attributeStringString.get(this, "oncontextmenu") - set(newValue) {attributeStringString.set(this, "oncontextmenu", newValue)} + get() = attributeStringString[this, "oncontextmenu"] + set(newValue) {attributeStringString[this, "oncontextmenu"] = newValue} var CommonAttributeGroupFacade.onDoubleClick : String - get() = attributeStringString.get(this, "ondblclick") - set(newValue) {attributeStringString.set(this, "ondblclick", newValue)} + get() = attributeStringString[this, "ondblclick"] + set(newValue) {attributeStringString[this, "ondblclick"] = newValue} var CommonAttributeGroupFacade.onDrag : String - get() = attributeStringString.get(this, "ondrag") - set(newValue) {attributeStringString.set(this, "ondrag", newValue)} + get() = attributeStringString[this, "ondrag"] + set(newValue) {attributeStringString[this, "ondrag"] = newValue} var CommonAttributeGroupFacade.onDragEnd : String - get() = attributeStringString.get(this, "ondragend") - set(newValue) {attributeStringString.set(this, "ondragend", newValue)} + get() = attributeStringString[this, "ondragend"] + set(newValue) {attributeStringString[this, "ondragend"] = newValue} var CommonAttributeGroupFacade.onDragEnter : String - get() = attributeStringString.get(this, "ondragenter") - set(newValue) {attributeStringString.set(this, "ondragenter", newValue)} + get() = attributeStringString[this, "ondragenter"] + set(newValue) {attributeStringString[this, "ondragenter"] = newValue} var CommonAttributeGroupFacade.onDragLeave : String - get() = attributeStringString.get(this, "ondragleave") - set(newValue) {attributeStringString.set(this, "ondragleave", newValue)} + get() = attributeStringString[this, "ondragleave"] + set(newValue) {attributeStringString[this, "ondragleave"] = newValue} var CommonAttributeGroupFacade.onDragOver : String - get() = attributeStringString.get(this, "ondragover") - set(newValue) {attributeStringString.set(this, "ondragover", newValue)} + get() = attributeStringString[this, "ondragover"] + set(newValue) {attributeStringString[this, "ondragover"] = newValue} var CommonAttributeGroupFacade.onDragStart : String - get() = attributeStringString.get(this, "ondragstart") - set(newValue) {attributeStringString.set(this, "ondragstart", newValue)} + get() = attributeStringString[this, "ondragstart"] + set(newValue) {attributeStringString[this, "ondragstart"] = newValue} var CommonAttributeGroupFacade.onDrop : String - get() = attributeStringString.get(this, "ondrop") - set(newValue) {attributeStringString.set(this, "ondrop", newValue)} + get() = attributeStringString[this, "ondrop"] + set(newValue) {attributeStringString[this, "ondrop"] = newValue} var CommonAttributeGroupFacade.onDurationChange : String - get() = attributeStringString.get(this, "ondurationchange") - set(newValue) {attributeStringString.set(this, "ondurationchange", newValue)} + get() = attributeStringString[this, "ondurationchange"] + set(newValue) {attributeStringString[this, "ondurationchange"] = newValue} var CommonAttributeGroupFacade.onEmptied : String - get() = attributeStringString.get(this, "onemptied") - set(newValue) {attributeStringString.set(this, "onemptied", newValue)} + get() = attributeStringString[this, "onemptied"] + set(newValue) {attributeStringString[this, "onemptied"] = newValue} var CommonAttributeGroupFacade.onEnded : String - get() = attributeStringString.get(this, "onended") - set(newValue) {attributeStringString.set(this, "onended", newValue)} + get() = attributeStringString[this, "onended"] + set(newValue) {attributeStringString[this, "onended"] = newValue} var CommonAttributeGroupFacade.onError : String - get() = attributeStringString.get(this, "onerror") - set(newValue) {attributeStringString.set(this, "onerror", newValue)} + get() = attributeStringString[this, "onerror"] + set(newValue) {attributeStringString[this, "onerror"] = newValue} var CommonAttributeGroupFacade.onFocus : String - get() = attributeStringString.get(this, "onfocus") - set(newValue) {attributeStringString.set(this, "onfocus", newValue)} + get() = attributeStringString[this, "onfocus"] + set(newValue) {attributeStringString[this, "onfocus"] = newValue} var CommonAttributeGroupFacade.onFocusIn : String - get() = attributeStringString.get(this, "onfocusin") - set(newValue) {attributeStringString.set(this, "onfocusin", newValue)} + get() = attributeStringString[this, "onfocusin"] + set(newValue) {attributeStringString[this, "onfocusin"] = newValue} var CommonAttributeGroupFacade.onFocusOut : String - get() = attributeStringString.get(this, "onfocusout") - set(newValue) {attributeStringString.set(this, "onfocusout", newValue)} + get() = attributeStringString[this, "onfocusout"] + set(newValue) {attributeStringString[this, "onfocusout"] = newValue} var CommonAttributeGroupFacade.onFormChange : String - get() = attributeStringString.get(this, "onformchange") - set(newValue) {attributeStringString.set(this, "onformchange", newValue)} + get() = attributeStringString[this, "onformchange"] + set(newValue) {attributeStringString[this, "onformchange"] = newValue} var CommonAttributeGroupFacade.onFormInput : String - get() = attributeStringString.get(this, "onforminput") - set(newValue) {attributeStringString.set(this, "onforminput", newValue)} + get() = attributeStringString[this, "onforminput"] + set(newValue) {attributeStringString[this, "onforminput"] = newValue} var CommonAttributeGroupFacade.onInput : String - get() = attributeStringString.get(this, "oninput") - set(newValue) {attributeStringString.set(this, "oninput", newValue)} + get() = attributeStringString[this, "oninput"] + set(newValue) {attributeStringString[this, "oninput"] = newValue} var CommonAttributeGroupFacade.onInvalid : String - get() = attributeStringString.get(this, "oninvalid") - set(newValue) {attributeStringString.set(this, "oninvalid", newValue)} + get() = attributeStringString[this, "oninvalid"] + set(newValue) {attributeStringString[this, "oninvalid"] = newValue} var CommonAttributeGroupFacade.onKeyDown : String - get() = attributeStringString.get(this, "onkeydown") - set(newValue) {attributeStringString.set(this, "onkeydown", newValue)} + get() = attributeStringString[this, "onkeydown"] + set(newValue) {attributeStringString[this, "onkeydown"] = newValue} var CommonAttributeGroupFacade.onKeyPress : String - get() = attributeStringString.get(this, "onkeypress") - set(newValue) {attributeStringString.set(this, "onkeypress", newValue)} + get() = attributeStringString[this, "onkeypress"] + set(newValue) {attributeStringString[this, "onkeypress"] = newValue} var CommonAttributeGroupFacade.onKeyUp : String - get() = attributeStringString.get(this, "onkeyup") - set(newValue) {attributeStringString.set(this, "onkeyup", newValue)} + get() = attributeStringString[this, "onkeyup"] + set(newValue) {attributeStringString[this, "onkeyup"] = newValue} var CommonAttributeGroupFacade.onLoad : String - get() = attributeStringString.get(this, "onload") - set(newValue) {attributeStringString.set(this, "onload", newValue)} + get() = attributeStringString[this, "onload"] + set(newValue) {attributeStringString[this, "onload"] = newValue} var CommonAttributeGroupFacade.onLoadedData : String - get() = attributeStringString.get(this, "onloadeddata") - set(newValue) {attributeStringString.set(this, "onloadeddata", newValue)} + get() = attributeStringString[this, "onloadeddata"] + set(newValue) {attributeStringString[this, "onloadeddata"] = newValue} var CommonAttributeGroupFacade.onLoadedMetaData : String - get() = attributeStringString.get(this, "onloadedmetadata") - set(newValue) {attributeStringString.set(this, "onloadedmetadata", newValue)} + get() = attributeStringString[this, "onloadedmetadata"] + set(newValue) {attributeStringString[this, "onloadedmetadata"] = newValue} var CommonAttributeGroupFacade.onLoadStart : String - get() = attributeStringString.get(this, "onloadstart") - set(newValue) {attributeStringString.set(this, "onloadstart", newValue)} + get() = attributeStringString[this, "onloadstart"] + set(newValue) {attributeStringString[this, "onloadstart"] = newValue} var CommonAttributeGroupFacade.onMouseDown : String - get() = attributeStringString.get(this, "onmousedown") - set(newValue) {attributeStringString.set(this, "onmousedown", newValue)} + get() = attributeStringString[this, "onmousedown"] + set(newValue) {attributeStringString[this, "onmousedown"] = newValue} var CommonAttributeGroupFacade.onMouseEnter : String - get() = attributeStringString.get(this, "onmouseenter") - set(newValue) {attributeStringString.set(this, "onmouseenter", newValue)} + get() = attributeStringString[this, "onmouseenter"] + set(newValue) {attributeStringString[this, "onmouseenter"] = newValue} var CommonAttributeGroupFacade.onMouseLeave : String - get() = attributeStringString.get(this, "onmouseleave") - set(newValue) {attributeStringString.set(this, "onmouseleave", newValue)} + get() = attributeStringString[this, "onmouseleave"] + set(newValue) {attributeStringString[this, "onmouseleave"] = newValue} var CommonAttributeGroupFacade.onMouseMove : String - get() = attributeStringString.get(this, "onmousemove") - set(newValue) {attributeStringString.set(this, "onmousemove", newValue)} + get() = attributeStringString[this, "onmousemove"] + set(newValue) {attributeStringString[this, "onmousemove"] = newValue} var CommonAttributeGroupFacade.onMouseOut : String - get() = attributeStringString.get(this, "onmouseout") - set(newValue) {attributeStringString.set(this, "onmouseout", newValue)} + get() = attributeStringString[this, "onmouseout"] + set(newValue) {attributeStringString[this, "onmouseout"] = newValue} var CommonAttributeGroupFacade.onMouseOver : String - get() = attributeStringString.get(this, "onmouseover") - set(newValue) {attributeStringString.set(this, "onmouseover", newValue)} + get() = attributeStringString[this, "onmouseover"] + set(newValue) {attributeStringString[this, "onmouseover"] = newValue} var CommonAttributeGroupFacade.onMouseUp : String - get() = attributeStringString.get(this, "onmouseup") - set(newValue) {attributeStringString.set(this, "onmouseup", newValue)} + get() = attributeStringString[this, "onmouseup"] + set(newValue) {attributeStringString[this, "onmouseup"] = newValue} var CommonAttributeGroupFacade.onMouseWheel : String - get() = attributeStringString.get(this, "onmousewheel") - set(newValue) {attributeStringString.set(this, "onmousewheel", newValue)} + get() = attributeStringString[this, "onmousewheel"] + set(newValue) {attributeStringString[this, "onmousewheel"] = newValue} var CommonAttributeGroupFacade.onPause : String - get() = attributeStringString.get(this, "onpause") - set(newValue) {attributeStringString.set(this, "onpause", newValue)} + get() = attributeStringString[this, "onpause"] + set(newValue) {attributeStringString[this, "onpause"] = newValue} var CommonAttributeGroupFacade.onPlay : String - get() = attributeStringString.get(this, "onplay") - set(newValue) {attributeStringString.set(this, "onplay", newValue)} + get() = attributeStringString[this, "onplay"] + set(newValue) {attributeStringString[this, "onplay"] = newValue} var CommonAttributeGroupFacade.onPlaying : String - get() = attributeStringString.get(this, "onplaying") - set(newValue) {attributeStringString.set(this, "onplaying", newValue)} + get() = attributeStringString[this, "onplaying"] + set(newValue) {attributeStringString[this, "onplaying"] = newValue} var CommonAttributeGroupFacade.onProgress : String - get() = attributeStringString.get(this, "onprogress") - set(newValue) {attributeStringString.set(this, "onprogress", newValue)} + get() = attributeStringString[this, "onprogress"] + set(newValue) {attributeStringString[this, "onprogress"] = newValue} var CommonAttributeGroupFacade.onRateChange : String - get() = attributeStringString.get(this, "onratechange") - set(newValue) {attributeStringString.set(this, "onratechange", newValue)} + get() = attributeStringString[this, "onratechange"] + set(newValue) {attributeStringString[this, "onratechange"] = newValue} var CommonAttributeGroupFacade.onReadyStateChange : String - get() = attributeStringString.get(this, "onreadystatechange") - set(newValue) {attributeStringString.set(this, "onreadystatechange", newValue)} + get() = attributeStringString[this, "onreadystatechange"] + set(newValue) {attributeStringString[this, "onreadystatechange"] = newValue} var CommonAttributeGroupFacade.onScroll : String - get() = attributeStringString.get(this, "onscroll") - set(newValue) {attributeStringString.set(this, "onscroll", newValue)} + get() = attributeStringString[this, "onscroll"] + set(newValue) {attributeStringString[this, "onscroll"] = newValue} var CommonAttributeGroupFacade.onSearch : String - get() = attributeStringString.get(this, "onsearch") - set(newValue) {attributeStringString.set(this, "onsearch", newValue)} + get() = attributeStringString[this, "onsearch"] + set(newValue) {attributeStringString[this, "onsearch"] = newValue} var CommonAttributeGroupFacade.onSeeked : String - get() = attributeStringString.get(this, "onseeked") - set(newValue) {attributeStringString.set(this, "onseeked", newValue)} + get() = attributeStringString[this, "onseeked"] + set(newValue) {attributeStringString[this, "onseeked"] = newValue} var CommonAttributeGroupFacade.onSeeking : String - get() = attributeStringString.get(this, "onseeking") - set(newValue) {attributeStringString.set(this, "onseeking", newValue)} + get() = attributeStringString[this, "onseeking"] + set(newValue) {attributeStringString[this, "onseeking"] = newValue} var CommonAttributeGroupFacade.onSelect : String - get() = attributeStringString.get(this, "onselect") - set(newValue) {attributeStringString.set(this, "onselect", newValue)} + get() = attributeStringString[this, "onselect"] + set(newValue) {attributeStringString[this, "onselect"] = newValue} var CommonAttributeGroupFacade.onShow : String - get() = attributeStringString.get(this, "onshow") - set(newValue) {attributeStringString.set(this, "onshow", newValue)} + get() = attributeStringString[this, "onshow"] + set(newValue) {attributeStringString[this, "onshow"] = newValue} var CommonAttributeGroupFacade.onStalled : String - get() = attributeStringString.get(this, "onstalled") - set(newValue) {attributeStringString.set(this, "onstalled", newValue)} + get() = attributeStringString[this, "onstalled"] + set(newValue) {attributeStringString[this, "onstalled"] = newValue} var CommonAttributeGroupFacade.onSubmit : String - get() = attributeStringString.get(this, "onsubmit") - set(newValue) {attributeStringString.set(this, "onsubmit", newValue)} + get() = attributeStringString[this, "onsubmit"] + set(newValue) {attributeStringString[this, "onsubmit"] = newValue} var CommonAttributeGroupFacade.onSuspend : String - get() = attributeStringString.get(this, "onsuspend") - set(newValue) {attributeStringString.set(this, "onsuspend", newValue)} + get() = attributeStringString[this, "onsuspend"] + set(newValue) {attributeStringString[this, "onsuspend"] = newValue} var CommonAttributeGroupFacade.onTimeUpdate : String - get() = attributeStringString.get(this, "ontimeupdate") - set(newValue) {attributeStringString.set(this, "ontimeupdate", newValue)} + get() = attributeStringString[this, "ontimeupdate"] + set(newValue) {attributeStringString[this, "ontimeupdate"] = newValue} var CommonAttributeGroupFacade.onTouchCancel : String - get() = attributeStringString.get(this, "ontouchcancel") - set(newValue) {attributeStringString.set(this, "ontouchcancel", newValue)} + get() = attributeStringString[this, "ontouchcancel"] + set(newValue) {attributeStringString[this, "ontouchcancel"] = newValue} var CommonAttributeGroupFacade.onTouchEnd : String - get() = attributeStringString.get(this, "ontouchend") - set(newValue) {attributeStringString.set(this, "ontouchend", newValue)} + get() = attributeStringString[this, "ontouchend"] + set(newValue) {attributeStringString[this, "ontouchend"] = newValue} var CommonAttributeGroupFacade.onTouchMove : String - get() = attributeStringString.get(this, "ontouchmove") - set(newValue) {attributeStringString.set(this, "ontouchmove", newValue)} + get() = attributeStringString[this, "ontouchmove"] + set(newValue) {attributeStringString[this, "ontouchmove"] = newValue} var CommonAttributeGroupFacade.onTouchStart : String - get() = attributeStringString.get(this, "ontouchstart") - set(newValue) {attributeStringString.set(this, "ontouchstart", newValue)} + get() = attributeStringString[this, "ontouchstart"] + set(newValue) {attributeStringString[this, "ontouchstart"] = newValue} var CommonAttributeGroupFacade.onVolumeChange : String - get() = attributeStringString.get(this, "onvolumechange") - set(newValue) {attributeStringString.set(this, "onvolumechange", newValue)} + get() = attributeStringString[this, "onvolumechange"] + set(newValue) {attributeStringString[this, "onvolumechange"] = newValue} var CommonAttributeGroupFacade.onWaiting : String - get() = attributeStringString.get(this, "onwaiting") - set(newValue) {attributeStringString.set(this, "onwaiting", newValue)} + get() = attributeStringString[this, "onwaiting"] + set(newValue) {attributeStringString[this, "onwaiting"] = newValue} var CommonAttributeGroupFacade.onWheel : String - get() = attributeStringString.get(this, "onwheel") - set(newValue) {attributeStringString.set(this, "onwheel", newValue)} + get() = attributeStringString[this, "onwheel"] + set(newValue) {attributeStringString[this, "onwheel"] = newValue} var CommonAttributeGroupFacade.role : String - get() = attributeStringString.get(this, "role") - set(newValue) {attributeStringString.set(this, "role", newValue)} + get() = attributeStringString[this, "role"] + set(newValue) {attributeStringString[this, "role"] = newValue} var CommonAttributeGroupFacade.runAt : RunAt - get() = attributeRunAtEnumRunAtValues.get(this, "runat") - set(newValue) {attributeRunAtEnumRunAtValues.set(this, "runat", newValue)} + get() = attributeRunAtEnumRunAtValues[this, "runat"] + set(newValue) {attributeRunAtEnumRunAtValues[this, "runat"] = newValue} var CommonAttributeGroupFacade.spellCheck : Boolean - get() = attributeBooleanBoolean.get(this, "spellcheck") - set(newValue) {attributeBooleanBoolean.set(this, "spellcheck", newValue)} + get() = attributeBooleanBoolean[this, "spellcheck"] + set(newValue) {attributeBooleanBoolean[this, "spellcheck"] = newValue} var CommonAttributeGroupFacade.style : String - get() = attributeStringString.get(this, "style") - set(newValue) {attributeStringString.set(this, "style", newValue)} + get() = attributeStringString[this, "style"] + set(newValue) {attributeStringString[this, "style"] = newValue} var CommonAttributeGroupFacade.subject : String - get() = attributeStringString.get(this, "subject") - set(newValue) {attributeStringString.set(this, "subject", newValue)} + get() = attributeStringString[this, "subject"] + set(newValue) {attributeStringString[this, "subject"] = newValue} var CommonAttributeGroupFacade.tabIndex : String - get() = attributeStringString.get(this, "tabIndex") - set(newValue) {attributeStringString.set(this, "tabIndex", newValue)} + get() = attributeStringString[this, "tabIndex"] + set(newValue) {attributeStringString[this, "tabIndex"] = newValue} var CommonAttributeGroupFacade.title : String - get() = attributeStringString.get(this, "title") - set(newValue) {attributeStringString.set(this, "title", newValue)} + get() = attributeStringString[this, "title"] + set(newValue) {attributeStringString[this, "title"] = newValue} interface FormServerAttributeGroupFacade : Tag { } var FormServerAttributeGroupFacade.defaultButton : String - get() = attributeStringString.get(this, "DefaultButton") - set(newValue) {attributeStringString.set(this, "DefaultButton", newValue)} + get() = attributeStringString[this, "DefaultButton"] + set(newValue) {attributeStringString[this, "DefaultButton"] = newValue} var FormServerAttributeGroupFacade.defaultFocus : String - get() = attributeStringString.get(this, "DefaultFocus") - set(newValue) {attributeStringString.set(this, "DefaultFocus", newValue)} + get() = attributeStringString[this, "DefaultFocus"] + set(newValue) {attributeStringString[this, "DefaultFocus"] = newValue} var FormServerAttributeGroupFacade.submitDisabledControls : Boolean - get() = attributeBooleanBoolean.get(this, "SubmitDisabledControls") - set(newValue) {attributeBooleanBoolean.set(this, "SubmitDisabledControls", newValue)} + get() = attributeBooleanBoolean[this, "SubmitDisabledControls"] + set(newValue) {attributeBooleanBoolean[this, "SubmitDisabledControls"] = newValue} interface InputServerAttributeGroupFacade : Tag { } var InputServerAttributeGroupFacade.causesValidation : Boolean - get() = attributeBooleanBoolean.get(this, "CausesValidation") - set(newValue) {attributeBooleanBoolean.set(this, "CausesValidation", newValue)} + get() = attributeBooleanBoolean[this, "CausesValidation"] + set(newValue) {attributeBooleanBoolean[this, "CausesValidation"] = newValue} var InputServerAttributeGroupFacade.validationGroup : String - get() = attributeStringString.get(this, "ValidationGroup") - set(newValue) {attributeStringString.set(this, "ValidationGroup", newValue)} + get() = attributeStringString[this, "ValidationGroup"] + set(newValue) {attributeStringString[this, "ValidationGroup"] = newValue} interface SelectServerAttributeGroupFacade : Tag { } var SelectServerAttributeGroupFacade.dataSourceID : String - get() = attributeStringString.get(this, "DataSourceID") - set(newValue) {attributeStringString.set(this, "DataSourceID", newValue)} + get() = attributeStringString[this, "DataSourceID"] + set(newValue) {attributeStringString[this, "DataSourceID"] = newValue} var SelectServerAttributeGroupFacade.dataTextField : String - get() = attributeStringString.get(this, "DataTextField") - set(newValue) {attributeStringString.set(this, "DataTextField", newValue)} + get() = attributeStringString[this, "DataTextField"] + set(newValue) {attributeStringString[this, "DataTextField"] = newValue} var SelectServerAttributeGroupFacade.dataValueField : String - get() = attributeStringString.get(this, "DataValueField") - set(newValue) {attributeStringString.set(this, "DataValueField", newValue)} + get() = attributeStringString[this, "DataValueField"] + set(newValue) {attributeStringString[this, "DataValueField"] = newValue} diff --git a/src/commonMain/kotlin/generated/gen-consumer-tags.kt b/src/commonMain/kotlin/generated/gen-consumer-tags.kt index 514ffb00..a669c630 100644 --- a/src/commonMain/kotlin/generated/gen-consumer-tags.kt +++ b/src/commonMain/kotlin/generated/gen-consumer-tags.kt @@ -711,7 +711,10 @@ public inline fun > C.h6(classes: String? = null, crossinl * Document head */ @HtmlTagMarker -@Suppress("DEPRECATION") +@Suppress( + "DEPRECATION", + "DeprecatedCallableAddReplaceWith", +) @Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") public fun > C.head(content: String = ""): T = HEAD(emptyMap, this) .visitAndFinalize(this, {+content}) @@ -764,7 +767,10 @@ public inline fun > C.hr(classes: String? = null, crossinl * Document root element */ @HtmlTagMarker -@Suppress("DEPRECATION") +@Suppress( + "DEPRECATION", + "DeprecatedCallableAddReplaceWith", +) @Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") public fun > C.html(content: String = "", namespace: String? = null): T = HTML(emptyMap, this, namespace) @@ -1274,7 +1280,10 @@ public inline fun > C.samp(classes: String? = null, crossi * Script statements */ @HtmlTagMarker -@Suppress("DEPRECATION") +@Suppress( + "DEPRECATION", + "DeprecatedCallableAddReplaceWith", +) @Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") public fun > C.script( type: String? = null, @@ -1387,7 +1396,10 @@ public inline fun > C.strong(classes: String? = null, cros * Style info */ @HtmlTagMarker -@Suppress("DEPRECATION") +@Suppress( + "DEPRECATION", + "DeprecatedCallableAddReplaceWith", +) @Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") public fun > C.style(type: String? = null, content: String = ""): T = STYLE(attributesMapOf("type", type), this) diff --git a/src/commonMain/kotlin/generated/gen-tag-unions.kt b/src/commonMain/kotlin/generated/gen-tag-unions.kt index f78a15dc..2d588d8a 100644 --- a/src/commonMain/kotlin/generated/gen-tag-unions.kt +++ b/src/commonMain/kotlin/generated/gen-tag-unions.kt @@ -171,8 +171,8 @@ inline fun FlowOrMetaDataOrPhrasingContent.script(type : String? = null, src : S contract { callsInPlace(block, InvocationKind.EXACTLY_ONCE) } SCRIPT(attributesMapOf("type", type,"src", src,"crossorigin", crossorigin?.enumEncode()), consumer).visit(block) } +@Suppress("DEPRECATION", "DeprecatedCallableAddReplaceWith") @Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -@Suppress("DEPRECATION") /** * Script statements */ @@ -190,8 +190,8 @@ inline fun FlowOrMetaDataOrPhrasingContent.useCredentialsScript(type : String? = contract { callsInPlace(block, InvocationKind.EXACTLY_ONCE) } SCRIPT(attributesMapOf("type", type,"src", src,"crossorigin", ScriptCrossorigin.useCredentials.realValue), consumer).visit(block) } +@Suppress("DEPRECATION", "DeprecatedCallableAddReplaceWith") @Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -@Suppress("DEPRECATION") @HtmlTagMarker fun FlowOrMetaDataOrPhrasingContent.anonymousScript(type : String? = null, src : String? = null, content : String = "") : Unit = SCRIPT(attributesMapOf("type", type,"src", src,"crossorigin", ScriptCrossorigin.anonymous.realValue), consumer).visit({+content}) @HtmlTagMarker @@ -275,8 +275,8 @@ inline fun FlowOrMetaDataContent.style(type : String? = null, crossinline block contract { callsInPlace(block, InvocationKind.EXACTLY_ONCE) } STYLE(attributesMapOf("type", type), consumer).visit(block) } +@Suppress("DEPRECATION", "DeprecatedCallableAddReplaceWith") @Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -@Suppress("DEPRECATION") /** * Style info */ diff --git a/src/commonMain/kotlin/generated/gen-tags-a.kt b/src/commonMain/kotlin/generated/gen-tags-a.kt index bc67fccd..faa91845 100644 --- a/src/commonMain/kotlin/generated/gen-tags-a.kt +++ b/src/commonMain/kotlin/generated/gen-tags-a.kt @@ -15,40 +15,40 @@ import kotlinx.html.attributes.* @Suppress("unused") open class A(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("a", consumer, initialAttributes, null, true, false), CommonAttributeGroupFacadeFlowInteractivePhrasingContent { var href : String - get() = attributeStringString.get(this, "href") - set(newValue) {attributeStringString.set(this, "href", newValue)} + get() = attributeStringString[this, "href"] + set(newValue) {attributeStringString[this, "href"] = newValue} var target : String - get() = attributeStringString.get(this, "target") - set(newValue) {attributeStringString.set(this, "target", newValue)} + get() = attributeStringString[this, "target"] + set(newValue) {attributeStringString[this, "target"] = newValue} var ping : String - get() = attributeStringString.get(this, "ping") - set(newValue) {attributeStringString.set(this, "ping", newValue)} + get() = attributeStringString[this, "ping"] + set(newValue) {attributeStringString[this, "ping"] = newValue} var rel : String - get() = attributeStringString.get(this, "rel") - set(newValue) {attributeStringString.set(this, "rel", newValue)} + get() = attributeStringString[this, "rel"] + set(newValue) {attributeStringString[this, "rel"] = newValue} var hrefLang : String - get() = attributeStringString.get(this, "hreflang") - set(newValue) {attributeStringString.set(this, "hreflang", newValue)} + get() = attributeStringString[this, "hreflang"] + set(newValue) {attributeStringString[this, "hreflang"] = newValue} var type : String - get() = attributeStringString.get(this, "type") - set(newValue) {attributeStringString.set(this, "type", newValue)} + get() = attributeStringString[this, "type"] + set(newValue) {attributeStringString[this, "type"] = newValue} var referrerPolicy : AReferrerPolicy - get() = attributeAReferrerPolicyEnumAReferrerPolicyValues.get(this, "referrerpolicy") - set(newValue) {attributeAReferrerPolicyEnumAReferrerPolicyValues.set(this, "referrerpolicy", newValue)} + get() = attributeAReferrerPolicyEnumAReferrerPolicyValues[this, "referrerpolicy"] + set(newValue) {attributeAReferrerPolicyEnumAReferrerPolicyValues[this, "referrerpolicy"] = newValue} var media : String - get() = attributeStringString.get(this, "media") - set(newValue) {attributeStringString.set(this, "media", newValue)} + get() = attributeStringString[this, "media"] + set(newValue) {attributeStringString[this, "media"] = newValue} var downLoad : String - get() = attributeStringString.get(this, "download") - set(newValue) {attributeStringString.set(this, "download", newValue)} + get() = attributeStringString[this, "download"] + set(newValue) {attributeStringString[this, "download"] = newValue} } @@ -81,44 +81,44 @@ open class ADDRESS(initialAttributes : Map, override val consume @Suppress("unused") open class AREA(initialAttributes : Map, 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)} + get() = attributeAreaShapeEnumAreaShapeValues[this, "shape"] + set(newValue) {attributeAreaShapeEnumAreaShapeValues[this, "shape"] = newValue} var coords : String - get() = attributeStringString.get(this, "coords") - set(newValue) {attributeStringString.set(this, "coords", newValue)} + get() = attributeStringString[this, "coords"] + set(newValue) {attributeStringString[this, "coords"] = newValue} var href : String - get() = attributeStringString.get(this, "href") - set(newValue) {attributeStringString.set(this, "href", newValue)} + get() = attributeStringString[this, "href"] + set(newValue) {attributeStringString[this, "href"] = newValue} var hrefLang : String - get() = attributeStringString.get(this, "hreflang") - set(newValue) {attributeStringString.set(this, "hreflang", newValue)} + get() = attributeStringString[this, "hreflang"] + set(newValue) {attributeStringString[this, "hreflang"] = newValue} var alt : String - get() = attributeStringString.get(this, "alt") - set(newValue) {attributeStringString.set(this, "alt", newValue)} + get() = attributeStringString[this, "alt"] + set(newValue) {attributeStringString[this, "alt"] = newValue} var target : String - get() = attributeStringString.get(this, "target") - set(newValue) {attributeStringString.set(this, "target", newValue)} + get() = attributeStringString[this, "target"] + set(newValue) {attributeStringString[this, "target"] = newValue} var media : String - get() = attributeStringString.get(this, "media") - set(newValue) {attributeStringString.set(this, "media", newValue)} + get() = attributeStringString[this, "media"] + set(newValue) {attributeStringString[this, "media"] = newValue} var rel : String - get() = attributeStringString.get(this, "rel") - set(newValue) {attributeStringString.set(this, "rel", newValue)} + get() = attributeStringString[this, "rel"] + set(newValue) {attributeStringString[this, "rel"] = newValue} var ping : String - get() = attributeStringString.get(this, "ping") - set(newValue) {attributeStringString.set(this, "ping", newValue)} + get() = attributeStringString[this, "ping"] + set(newValue) {attributeStringString[this, "ping"] = newValue} var type : String - get() = attributeStringString.get(this, "type") - set(newValue) {attributeStringString.set(this, "type", newValue)} + get() = attributeStringString[this, "type"] + set(newValue) {attributeStringString[this, "type"] = newValue} } @@ -154,24 +154,24 @@ val ASIDE.asSectioningContent : SectioningContent @Suppress("unused") open class AUDIO(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("audio", consumer, initialAttributes, null, false, false), CommonAttributeGroupFacadeFlowInteractivePhrasingContent { var src : String - get() = attributeStringString.get(this, "src") - set(newValue) {attributeStringString.set(this, "src", newValue)} + get() = attributeStringString[this, "src"] + set(newValue) {attributeStringString[this, "src"] = newValue} var autoBuffer : Boolean - get() = attributeBooleanTicker.get(this, "autobuffer") - set(newValue) {attributeBooleanTicker.set(this, "autobuffer", newValue)} + get() = attributeBooleanTicker[this, "autobuffer"] + set(newValue) {attributeBooleanTicker[this, "autobuffer"] = newValue} var autoPlay : Boolean - get() = attributeBooleanTicker.get(this, "autoplay") - set(newValue) {attributeBooleanTicker.set(this, "autoplay", newValue)} + get() = attributeBooleanTicker[this, "autoplay"] + set(newValue) {attributeBooleanTicker[this, "autoplay"] = newValue} var loop : Boolean - get() = attributeBooleanTicker.get(this, "loop") - set(newValue) {attributeBooleanTicker.set(this, "loop", newValue)} + get() = attributeBooleanTicker[this, "loop"] + set(newValue) {attributeBooleanTicker[this, "loop"] = newValue} var controls : Boolean - get() = attributeBooleanTicker.get(this, "controls") - set(newValue) {attributeBooleanTicker.set(this, "controls", newValue)} + get() = attributeBooleanTicker[this, "controls"] + set(newValue) {attributeBooleanTicker[this, "controls"] = newValue} } diff --git a/src/commonMain/kotlin/generated/gen-tags-b.kt b/src/commonMain/kotlin/generated/gen-tags-b.kt index 1cb53792..04ba50f4 100644 --- a/src/commonMain/kotlin/generated/gen-tags-b.kt +++ b/src/commonMain/kotlin/generated/gen-tags-b.kt @@ -26,12 +26,12 @@ val B.asPhrasingContent : PhrasingContent @Suppress("unused") open class BASE(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("base", consumer, initialAttributes, null, true, true), HtmlHeadTag { var href : String - get() = attributeStringString.get(this, "href") - set(newValue) {attributeStringString.set(this, "href", newValue)} + get() = attributeStringString[this, "href"] + set(newValue) {attributeStringString[this, "href"] = newValue} var target : String - get() = attributeStringString.get(this, "target") - set(newValue) {attributeStringString.set(this, "target", newValue)} + get() = attributeStringString[this, "target"] + set(newValue) {attributeStringString[this, "target"] = newValue} } @@ -61,8 +61,8 @@ val BDO.asPhrasingContent : PhrasingContent @Suppress("unused") open class BLOCKQUOTE(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("blockquote", consumer, initialAttributes, null, false, false), HtmlBlockTag { var cite : String - get() = attributeStringString.get(this, "cite") - set(newValue) {attributeStringString.set(this, "cite", newValue)} + get() = attributeStringString[this, "cite"] + set(newValue) {attributeStringString[this, "cite"] = newValue} } @@ -70,56 +70,56 @@ open class BLOCKQUOTE(initialAttributes : Map, override val cons @Suppress("unused") open class BODY(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("body", consumer, initialAttributes, null, false, false), HtmlBlockTag { var onAfterprint : String - get() = attributeStringString.get(this, "onafterprint") - set(newValue) {attributeStringString.set(this, "onafterprint", newValue)} + get() = attributeStringString[this, "onafterprint"] + set(newValue) {attributeStringString[this, "onafterprint"] = newValue} var onBeforeprint : String - get() = attributeStringString.get(this, "onbeforeprint") - set(newValue) {attributeStringString.set(this, "onbeforeprint", newValue)} + get() = attributeStringString[this, "onbeforeprint"] + set(newValue) {attributeStringString[this, "onbeforeprint"] = newValue} var onBeforeunLoad : String - get() = attributeStringString.get(this, "onbeforeunload") - set(newValue) {attributeStringString.set(this, "onbeforeunload", newValue)} + get() = attributeStringString[this, "onbeforeunload"] + set(newValue) {attributeStringString[this, "onbeforeunload"] = newValue} var onHashChange : String - get() = attributeStringString.get(this, "onhashchange") - set(newValue) {attributeStringString.set(this, "onhashchange", newValue)} + get() = attributeStringString[this, "onhashchange"] + set(newValue) {attributeStringString[this, "onhashchange"] = newValue} var onMessage : String - get() = attributeStringString.get(this, "onmessage") - set(newValue) {attributeStringString.set(this, "onmessage", newValue)} + get() = attributeStringString[this, "onmessage"] + set(newValue) {attributeStringString[this, "onmessage"] = newValue} var onOffline : String - get() = attributeStringString.get(this, "onoffline") - set(newValue) {attributeStringString.set(this, "onoffline", newValue)} + get() = attributeStringString[this, "onoffline"] + set(newValue) {attributeStringString[this, "onoffline"] = newValue} var onOnline : String - get() = attributeStringString.get(this, "ononline") - set(newValue) {attributeStringString.set(this, "ononline", newValue)} + get() = attributeStringString[this, "ononline"] + set(newValue) {attributeStringString[this, "ononline"] = newValue} var onPopstate : String - get() = attributeStringString.get(this, "onpopstate") - set(newValue) {attributeStringString.set(this, "onpopstate", newValue)} + get() = attributeStringString[this, "onpopstate"] + set(newValue) {attributeStringString[this, "onpopstate"] = newValue} var onRedo : String - get() = attributeStringString.get(this, "onredo") - set(newValue) {attributeStringString.set(this, "onredo", newValue)} + get() = attributeStringString[this, "onredo"] + set(newValue) {attributeStringString[this, "onredo"] = newValue} var onResize : String - get() = attributeStringString.get(this, "onresize") - set(newValue) {attributeStringString.set(this, "onresize", newValue)} + get() = attributeStringString[this, "onresize"] + set(newValue) {attributeStringString[this, "onresize"] = newValue} var onStorage : String - get() = attributeStringString.get(this, "onstorage") - set(newValue) {attributeStringString.set(this, "onstorage", newValue)} + get() = attributeStringString[this, "onstorage"] + set(newValue) {attributeStringString[this, "onstorage"] = newValue} var onUndo : String - get() = attributeStringString.get(this, "onundo") - set(newValue) {attributeStringString.set(this, "onundo", newValue)} + get() = attributeStringString[this, "onundo"] + set(newValue) {attributeStringString[this, "onundo"] = newValue} var onUnLoad : String - get() = attributeStringString.get(this, "onunload") - set(newValue) {attributeStringString.set(this, "onunload", newValue)} + get() = attributeStringString[this, "onunload"] + set(newValue) {attributeStringString[this, "onunload"] = newValue} } @@ -138,48 +138,48 @@ val BR.asPhrasingContent : PhrasingContent @Suppress("unused") open class BUTTON(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("button", consumer, initialAttributes, null, true, false), CommonAttributeGroupFacadeFlowInteractivePhrasingContent { var autoFocus : Boolean - get() = attributeBooleanTicker.get(this, "autofocus") - set(newValue) {attributeBooleanTicker.set(this, "autofocus", newValue)} + get() = attributeBooleanTicker[this, "autofocus"] + set(newValue) {attributeBooleanTicker[this, "autofocus"] = newValue} var disabled : Boolean - get() = attributeBooleanTicker.get(this, "disabled") - set(newValue) {attributeBooleanTicker.set(this, "disabled", newValue)} + get() = attributeBooleanTicker[this, "disabled"] + set(newValue) {attributeBooleanTicker[this, "disabled"] = newValue} var form : String - get() = attributeStringString.get(this, "form") - set(newValue) {attributeStringString.set(this, "form", newValue)} + get() = attributeStringString[this, "form"] + set(newValue) {attributeStringString[this, "form"] = newValue} var formAction : String - get() = attributeStringString.get(this, "formaction") - set(newValue) {attributeStringString.set(this, "formaction", newValue)} + get() = attributeStringString[this, "formaction"] + set(newValue) {attributeStringString[this, "formaction"] = newValue} var formEncType : ButtonFormEncType - get() = attributeButtonFormEncTypeEnumButtonFormEncTypeValues.get(this, "formenctype") - set(newValue) {attributeButtonFormEncTypeEnumButtonFormEncTypeValues.set(this, "formenctype", newValue)} + get() = attributeButtonFormEncTypeEnumButtonFormEncTypeValues[this, "formenctype"] + set(newValue) {attributeButtonFormEncTypeEnumButtonFormEncTypeValues[this, "formenctype"] = newValue} var formMethod : ButtonFormMethod - get() = attributeButtonFormMethodEnumButtonFormMethodValues.get(this, "formmethod") - set(newValue) {attributeButtonFormMethodEnumButtonFormMethodValues.set(this, "formmethod", newValue)} + get() = attributeButtonFormMethodEnumButtonFormMethodValues[this, "formmethod"] + set(newValue) {attributeButtonFormMethodEnumButtonFormMethodValues[this, "formmethod"] = newValue} var formNovalidate : Boolean - get() = attributeBooleanTicker.get(this, "formnovalidate") - set(newValue) {attributeBooleanTicker.set(this, "formnovalidate", newValue)} + get() = attributeBooleanTicker[this, "formnovalidate"] + set(newValue) {attributeBooleanTicker[this, "formnovalidate"] = newValue} var formTarget : String - get() = attributeStringString.get(this, "formtarget") - set(newValue) {attributeStringString.set(this, "formtarget", newValue)} + get() = attributeStringString[this, "formtarget"] + set(newValue) {attributeStringString[this, "formtarget"] = newValue} var name : String - get() = attributeStringString.get(this, "name") - set(newValue) {attributeStringString.set(this, "name", newValue)} + get() = attributeStringString[this, "name"] + set(newValue) {attributeStringString[this, "name"] = newValue} var value : String - get() = attributeStringString.get(this, "value") - set(newValue) {attributeStringString.set(this, "value", newValue)} + get() = attributeStringString[this, "value"] + set(newValue) {attributeStringString[this, "value"] = newValue} var type : ButtonType - get() = attributeButtonTypeEnumButtonTypeValues.get(this, "type") - set(newValue) {attributeButtonTypeEnumButtonTypeValues.set(this, "type", newValue)} + get() = attributeButtonTypeEnumButtonTypeValues[this, "type"] + set(newValue) {attributeButtonTypeEnumButtonTypeValues[this, "type"] = newValue} } diff --git a/src/commonMain/kotlin/generated/gen-tags-c.kt b/src/commonMain/kotlin/generated/gen-tags-c.kt index 38f5c552..55f25f7d 100644 --- a/src/commonMain/kotlin/generated/gen-tags-c.kt +++ b/src/commonMain/kotlin/generated/gen-tags-c.kt @@ -15,12 +15,12 @@ import kotlinx.html.attributes.* @Suppress("unused") open class CANVAS(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("canvas", consumer, initialAttributes, null, false, false), HtmlBlockInlineTag { var width : String - get() = attributeStringString.get(this, "width") - set(newValue) {attributeStringString.set(this, "width", newValue)} + get() = attributeStringString[this, "width"] + set(newValue) {attributeStringString[this, "width"] = newValue} var height : String - get() = attributeStringString.get(this, "height") - set(newValue) {attributeStringString.set(this, "height", newValue)} + get() = attributeStringString[this, "height"] + set(newValue) {attributeStringString[this, "height"] = newValue} } @@ -61,8 +61,8 @@ val CODE.asPhrasingContent : PhrasingContent @Suppress("unused") open class COL(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("col", consumer, initialAttributes, null, false, true), CommonAttributeGroupFacade { var span : String - get() = attributeStringString.get(this, "span") - set(newValue) {attributeStringString.set(this, "span", newValue)} + get() = attributeStringString[this, "span"] + set(newValue) {attributeStringString[this, "span"] = newValue} } @@ -70,8 +70,8 @@ open class COL(initialAttributes : Map, override val consumer : @Suppress("unused") open class COLGROUP(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("colgroup", consumer, initialAttributes, null, false, false), CommonAttributeGroupFacade { var span : String - get() = attributeStringString.get(this, "span") - set(newValue) {attributeStringString.set(this, "span", newValue)} + get() = attributeStringString[this, "span"] + set(newValue) {attributeStringString[this, "span"] = newValue} } @@ -89,28 +89,28 @@ inline fun COLGROUP.col(classes : String? = null, crossinline block : COL.() -> @Suppress("unused") open class COMMAND(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("command", consumer, initialAttributes, null, true, true), CommonAttributeGroupFacadeFlowMetaDataPhrasingContent { var type : CommandType - get() = attributeCommandTypeEnumCommandTypeValues.get(this, "type") - set(newValue) {attributeCommandTypeEnumCommandTypeValues.set(this, "type", newValue)} + get() = attributeCommandTypeEnumCommandTypeValues[this, "type"] + set(newValue) {attributeCommandTypeEnumCommandTypeValues[this, "type"] = newValue} var label : String - get() = attributeStringString.get(this, "label") - set(newValue) {attributeStringString.set(this, "label", newValue)} + get() = attributeStringString[this, "label"] + set(newValue) {attributeStringString[this, "label"] = newValue} var icon : String - get() = attributeStringString.get(this, "icon") - set(newValue) {attributeStringString.set(this, "icon", newValue)} + get() = attributeStringString[this, "icon"] + set(newValue) {attributeStringString[this, "icon"] = newValue} var disabled : Boolean - get() = attributeBooleanTicker.get(this, "disabled") - set(newValue) {attributeBooleanTicker.set(this, "disabled", newValue)} + get() = attributeBooleanTicker[this, "disabled"] + set(newValue) {attributeBooleanTicker[this, "disabled"] = newValue} var checked : Boolean - get() = attributeBooleanTicker.get(this, "checked") - set(newValue) {attributeBooleanTicker.set(this, "checked", newValue)} + get() = attributeBooleanTicker[this, "checked"] + set(newValue) {attributeBooleanTicker[this, "checked"] = newValue} var radioGroup : String - get() = attributeStringString.get(this, "radiogroup") - set(newValue) {attributeStringString.set(this, "radiogroup", newValue)} + get() = attributeStringString[this, "radiogroup"] + set(newValue) {attributeStringString[this, "radiogroup"] = newValue} } diff --git a/src/commonMain/kotlin/generated/gen-tags-d.kt b/src/commonMain/kotlin/generated/gen-tags-d.kt index 1d72ae00..5cc1b3fa 100644 --- a/src/commonMain/kotlin/generated/gen-tags-d.kt +++ b/src/commonMain/kotlin/generated/gen-tags-d.kt @@ -46,12 +46,12 @@ open class DD(initialAttributes : Map, override val consumer : T @Suppress("unused") open class DEL(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("del", consumer, initialAttributes, null, false, false), HtmlBlockInlineTag { var cite : String - get() = attributeStringString.get(this, "cite") - set(newValue) {attributeStringString.set(this, "cite", newValue)} + get() = attributeStringString[this, "cite"] + set(newValue) {attributeStringString[this, "cite"] = newValue} var dateTime : String - get() = attributeStringString.get(this, "datetime") - set(newValue) {attributeStringString.set(this, "datetime", newValue)} + get() = attributeStringString[this, "datetime"] + set(newValue) {attributeStringString[this, "datetime"] = newValue} } @@ -65,8 +65,8 @@ val DEL.asPhrasingContent : PhrasingContent @Suppress("unused") open class DETAILS(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("details", consumer, initialAttributes, null, false, false), CommonAttributeGroupFacadeFlowInteractiveContent { var open : Boolean - get() = attributeBooleanTicker.get(this, "open") - set(newValue) {attributeBooleanTicker.set(this, "open", newValue)} + get() = attributeBooleanTicker[this, "open"] + set(newValue) {attributeBooleanTicker[this, "open"] = newValue} } diff --git a/src/commonMain/kotlin/generated/gen-tags-e.kt b/src/commonMain/kotlin/generated/gen-tags-e.kt index b89e2444..9a2504a2 100644 --- a/src/commonMain/kotlin/generated/gen-tags-e.kt +++ b/src/commonMain/kotlin/generated/gen-tags-e.kt @@ -26,20 +26,20 @@ val EM.asPhrasingContent : PhrasingContent @Suppress("unused") open class EMBED(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("embed", consumer, initialAttributes, null, true, true), CommonAttributeGroupFacadeFlowInteractivePhrasingContent { var src : String - get() = attributeStringString.get(this, "src") - set(newValue) {attributeStringString.set(this, "src", newValue)} + get() = attributeStringString[this, "src"] + set(newValue) {attributeStringString[this, "src"] = newValue} var height : String - get() = attributeStringString.get(this, "height") - set(newValue) {attributeStringString.set(this, "height", newValue)} + get() = attributeStringString[this, "height"] + set(newValue) {attributeStringString[this, "height"] = newValue} var width : String - get() = attributeStringString.get(this, "width") - set(newValue) {attributeStringString.set(this, "width", newValue)} + get() = attributeStringString[this, "width"] + set(newValue) {attributeStringString[this, "width"] = newValue} var type : String - get() = attributeStringString.get(this, "type") - set(newValue) {attributeStringString.set(this, "type", newValue)} + get() = attributeStringString[this, "type"] + set(newValue) {attributeStringString[this, "type"] = newValue} } diff --git a/src/commonMain/kotlin/generated/gen-tags-f.kt b/src/commonMain/kotlin/generated/gen-tags-f.kt index 02a97578..0d576db8 100644 --- a/src/commonMain/kotlin/generated/gen-tags-f.kt +++ b/src/commonMain/kotlin/generated/gen-tags-f.kt @@ -15,16 +15,16 @@ import kotlinx.html.attributes.* @Suppress("unused") open class FIELDSET(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("fieldset", consumer, initialAttributes, null, false, false), HtmlBlockTag { var disabled : Boolean - get() = attributeBooleanTicker.get(this, "disabled") - set(newValue) {attributeBooleanTicker.set(this, "disabled", newValue)} + get() = attributeBooleanTicker[this, "disabled"] + set(newValue) {attributeBooleanTicker[this, "disabled"] = newValue} var form : String - get() = attributeStringString.get(this, "form") - set(newValue) {attributeStringString.set(this, "form", newValue)} + get() = attributeStringString[this, "form"] + set(newValue) {attributeStringString[this, "form"] = newValue} var name : String - get() = attributeStringString.get(this, "name") - set(newValue) {attributeStringString.set(this, "name", newValue)} + get() = attributeStringString[this, "name"] + set(newValue) {attributeStringString[this, "name"] = newValue} } @@ -77,36 +77,36 @@ open class FOOTER(initialAttributes : Map, override val consumer @Suppress("unused") open class FORM(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("form", consumer, initialAttributes, null, false, false), HtmlBlockTag { var acceptCharset : String - get() = attributeStringString.get(this, "accept-charset") - set(newValue) {attributeStringString.set(this, "accept-charset", newValue)} + get() = attributeStringString[this, "accept-charset"] + set(newValue) {attributeStringString[this, "accept-charset"] = newValue} var action : String - get() = attributeStringString.get(this, "action") - set(newValue) {attributeStringString.set(this, "action", newValue)} + get() = attributeStringString[this, "action"] + set(newValue) {attributeStringString[this, "action"] = newValue} var autoComplete : Boolean - get() = attributeBooleanBooleanOnOff.get(this, "autocomplete") - set(newValue) {attributeBooleanBooleanOnOff.set(this, "autocomplete", newValue)} + get() = attributeBooleanBooleanOnOff[this, "autocomplete"] + set(newValue) {attributeBooleanBooleanOnOff[this, "autocomplete"] = newValue} var encType : FormEncType - get() = attributeFormEncTypeEnumFormEncTypeValues.get(this, "enctype") - set(newValue) {attributeFormEncTypeEnumFormEncTypeValues.set(this, "enctype", newValue)} + get() = attributeFormEncTypeEnumFormEncTypeValues[this, "enctype"] + set(newValue) {attributeFormEncTypeEnumFormEncTypeValues[this, "enctype"] = newValue} var method : FormMethod - get() = attributeFormMethodEnumFormMethodValues.get(this, "method") - set(newValue) {attributeFormMethodEnumFormMethodValues.set(this, "method", newValue)} + get() = attributeFormMethodEnumFormMethodValues[this, "method"] + set(newValue) {attributeFormMethodEnumFormMethodValues[this, "method"] = newValue} var name : String - get() = attributeStringString.get(this, "name") - set(newValue) {attributeStringString.set(this, "name", newValue)} + get() = attributeStringString[this, "name"] + set(newValue) {attributeStringString[this, "name"] = newValue} var novalidate : Boolean - get() = attributeBooleanTicker.get(this, "novalidate") - set(newValue) {attributeBooleanTicker.set(this, "novalidate", newValue)} + get() = attributeBooleanTicker[this, "novalidate"] + set(newValue) {attributeBooleanTicker[this, "novalidate"] = newValue} var target : String - get() = attributeStringString.get(this, "target") - set(newValue) {attributeStringString.set(this, "target", newValue)} + get() = attributeStringString[this, "target"] + set(newValue) {attributeStringString[this, "target"] = newValue} } diff --git a/src/commonMain/kotlin/generated/gen-tags-h.kt b/src/commonMain/kotlin/generated/gen-tags-h.kt index 6bbe5217..5c8c9df0 100644 --- a/src/commonMain/kotlin/generated/gen-tags-h.kt +++ b/src/commonMain/kotlin/generated/gen-tags-h.kt @@ -44,27 +44,32 @@ open class H6(initialAttributes : Map, override val consumer : T @Suppress("unused") open class HEAD(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("head", consumer, initialAttributes, null, false, false), HtmlHeadTag { - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override operator fun Entities.unaryPlus() : Unit { @Suppress("DEPRECATION") entity(this) } - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override operator fun String.unaryPlus() : Unit { @Suppress("DEPRECATION") text(this) } - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override fun text(s : String) : Unit { super.text(s) } - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override fun text(n : Number) : Unit { super.text(n) } - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override fun entity(e : Entities) : Unit { super.entity(e) } @@ -155,30 +160,35 @@ open class HR(initialAttributes : Map, override val consumer : T @Suppress("unused") open class HTML(initialAttributes : Map, override val consumer : TagConsumer<*>, namespace : String? = null) : HTMLTag("html", consumer, initialAttributes, namespace, false, false), CommonAttributeGroupFacade { var manifest : String - get() = attributeStringString.get(this, "manifest") - set(newValue) {attributeStringString.set(this, "manifest", newValue)} + get() = attributeStringString[this, "manifest"] + set(newValue) {attributeStringString[this, "manifest"] = newValue} - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override operator fun Entities.unaryPlus() : Unit { @Suppress("DEPRECATION") entity(this) } - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override operator fun String.unaryPlus() : Unit { @Suppress("DEPRECATION") text(this) } - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override fun text(s : String) : Unit { super.text(s) } - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override fun text(n : Number) : Unit { super.text(n) } - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override fun entity(e : Entities) : Unit { super.entity(e) } @@ -203,8 +213,8 @@ inline fun HTML.head(crossinline block : HEAD.() -> Unit = {}) : Unit { contract { callsInPlace(block, InvocationKind.EXACTLY_ONCE) } HEAD(emptyMap, consumer).visit(block) } +@Suppress("DEPRECATION", "DeprecatedCallableAddReplaceWith") @Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -@Suppress("DEPRECATION") /** * Document head */ diff --git a/src/commonMain/kotlin/generated/gen-tags-i.kt b/src/commonMain/kotlin/generated/gen-tags-i.kt index 4bb080a2..ec8a1434 100644 --- a/src/commonMain/kotlin/generated/gen-tags-i.kt +++ b/src/commonMain/kotlin/generated/gen-tags-i.kt @@ -26,28 +26,28 @@ val I.asPhrasingContent : PhrasingContent @Suppress("unused") open class IFRAME(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("iframe", consumer, initialAttributes, null, true, false), CommonAttributeGroupFacadeFlowInteractivePhrasingContent { var name : String - get() = attributeStringString.get(this, "name") - set(newValue) {attributeStringString.set(this, "name", newValue)} + get() = attributeStringString[this, "name"] + set(newValue) {attributeStringString[this, "name"] = newValue} var src : String - get() = attributeStringString.get(this, "src") - set(newValue) {attributeStringString.set(this, "src", newValue)} + get() = attributeStringString[this, "src"] + set(newValue) {attributeStringString[this, "src"] = newValue} var height : String - get() = attributeStringString.get(this, "height") - set(newValue) {attributeStringString.set(this, "height", newValue)} + get() = attributeStringString[this, "height"] + set(newValue) {attributeStringString[this, "height"] = newValue} var width : String - get() = attributeStringString.get(this, "width") - set(newValue) {attributeStringString.set(this, "width", newValue)} + get() = attributeStringString[this, "width"] + set(newValue) {attributeStringString[this, "width"] = newValue} var sandbox : IframeSandbox - get() = attributeIframeSandboxEnumIframeSandboxValues.get(this, "sandbox") - set(newValue) {attributeIframeSandboxEnumIframeSandboxValues.set(this, "sandbox", newValue)} + get() = attributeIframeSandboxEnumIframeSandboxValues[this, "sandbox"] + set(newValue) {attributeIframeSandboxEnumIframeSandboxValues[this, "sandbox"] = newValue} var seamless : Boolean - get() = attributeBooleanTicker.get(this, "seamless") - set(newValue) {attributeBooleanTicker.set(this, "seamless", newValue)} + get() = attributeBooleanTicker[this, "seamless"] + set(newValue) {attributeBooleanTicker[this, "seamless"] = newValue} } @@ -64,32 +64,32 @@ val IFRAME.asPhrasingContent : PhrasingContent @Suppress("unused") open class IMG(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("img", consumer, initialAttributes, null, true, true), CommonAttributeGroupFacadeFlowInteractivePhrasingContent { var alt : String - get() = attributeStringString.get(this, "alt") - set(newValue) {attributeStringString.set(this, "alt", newValue)} + get() = attributeStringString[this, "alt"] + set(newValue) {attributeStringString[this, "alt"] = newValue} var src : String - get() = attributeStringString.get(this, "src") - set(newValue) {attributeStringString.set(this, "src", newValue)} + get() = attributeStringString[this, "src"] + set(newValue) {attributeStringString[this, "src"] = newValue} var height : String - get() = attributeStringString.get(this, "height") - set(newValue) {attributeStringString.set(this, "height", newValue)} + get() = attributeStringString[this, "height"] + set(newValue) {attributeStringString[this, "height"] = newValue} var width : String - get() = attributeStringString.get(this, "width") - set(newValue) {attributeStringString.set(this, "width", newValue)} + get() = attributeStringString[this, "width"] + set(newValue) {attributeStringString[this, "width"] = newValue} var usemap : String - get() = attributeStringString.get(this, "usemap") - set(newValue) {attributeStringString.set(this, "usemap", newValue)} + get() = attributeStringString[this, "usemap"] + set(newValue) {attributeStringString[this, "usemap"] = newValue} var ismap : Boolean - get() = attributeBooleanTicker.get(this, "ismap") - set(newValue) {attributeBooleanTicker.set(this, "ismap", newValue)} + get() = attributeBooleanTicker[this, "ismap"] + set(newValue) {attributeBooleanTicker[this, "ismap"] = newValue} var loading : ImgLoading - get() = attributeImgLoadingEnumImgLoadingValues.get(this, "loading") - set(newValue) {attributeImgLoadingEnumImgLoadingValues.set(this, "loading", newValue)} + get() = attributeImgLoadingEnumImgLoadingValues[this, "loading"] + set(newValue) {attributeImgLoadingEnumImgLoadingValues[this, "loading"] = newValue} } @@ -106,128 +106,128 @@ val IMG.asPhrasingContent : PhrasingContent @Suppress("unused") open class INPUT(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("input", consumer, initialAttributes, null, true, true), CommonAttributeGroupFacadeFlowInteractivePhrasingContent { var type : InputType - get() = attributeInputTypeEnumInputTypeValues.get(this, "type") - set(newValue) {attributeInputTypeEnumInputTypeValues.set(this, "type", newValue)} + get() = attributeInputTypeEnumInputTypeValues[this, "type"] + set(newValue) {attributeInputTypeEnumInputTypeValues[this, "type"] = newValue} var accept : String - get() = attributeStringString.get(this, "accept") - set(newValue) {attributeStringString.set(this, "accept", newValue)} + get() = attributeStringString[this, "accept"] + set(newValue) {attributeStringString[this, "accept"] = newValue} var alt : String - get() = attributeStringString.get(this, "alt") - set(newValue) {attributeStringString.set(this, "alt", newValue)} + get() = attributeStringString[this, "alt"] + set(newValue) {attributeStringString[this, "alt"] = newValue} var autoFocus : Boolean - get() = attributeBooleanTicker.get(this, "autofocus") - set(newValue) {attributeBooleanTicker.set(this, "autofocus", newValue)} + get() = attributeBooleanTicker[this, "autofocus"] + set(newValue) {attributeBooleanTicker[this, "autofocus"] = newValue} var autoComplete : Boolean - get() = attributeBooleanBooleanOnOff.get(this, "autocomplete") - set(newValue) {attributeBooleanBooleanOnOff.set(this, "autocomplete", newValue)} + get() = attributeBooleanBooleanOnOff[this, "autocomplete"] + set(newValue) {attributeBooleanBooleanOnOff[this, "autocomplete"] = newValue} var checked : Boolean - get() = attributeBooleanTicker.get(this, "checked") - set(newValue) {attributeBooleanTicker.set(this, "checked", newValue)} + get() = attributeBooleanTicker[this, "checked"] + set(newValue) {attributeBooleanTicker[this, "checked"] = newValue} var disabled : Boolean - get() = attributeBooleanTicker.get(this, "disabled") - set(newValue) {attributeBooleanTicker.set(this, "disabled", newValue)} + get() = attributeBooleanTicker[this, "disabled"] + set(newValue) {attributeBooleanTicker[this, "disabled"] = newValue} var form : String - get() = attributeStringString.get(this, "form") - set(newValue) {attributeStringString.set(this, "form", newValue)} + get() = attributeStringString[this, "form"] + set(newValue) {attributeStringString[this, "form"] = newValue} var formAction : String - get() = attributeStringString.get(this, "formaction") - set(newValue) {attributeStringString.set(this, "formaction", newValue)} + get() = attributeStringString[this, "formaction"] + set(newValue) {attributeStringString[this, "formaction"] = newValue} var formEncType : InputFormEncType - get() = attributeInputFormEncTypeEnumInputFormEncTypeValues.get(this, "formenctype") - set(newValue) {attributeInputFormEncTypeEnumInputFormEncTypeValues.set(this, "formenctype", newValue)} + get() = attributeInputFormEncTypeEnumInputFormEncTypeValues[this, "formenctype"] + set(newValue) {attributeInputFormEncTypeEnumInputFormEncTypeValues[this, "formenctype"] = newValue} var formMethod : InputFormMethod - get() = attributeInputFormMethodEnumInputFormMethodValues.get(this, "formmethod") - set(newValue) {attributeInputFormMethodEnumInputFormMethodValues.set(this, "formmethod", newValue)} + get() = attributeInputFormMethodEnumInputFormMethodValues[this, "formmethod"] + set(newValue) {attributeInputFormMethodEnumInputFormMethodValues[this, "formmethod"] = newValue} var formNovalidate : Boolean - get() = attributeBooleanTicker.get(this, "formnovalidate") - set(newValue) {attributeBooleanTicker.set(this, "formnovalidate", newValue)} + get() = attributeBooleanTicker[this, "formnovalidate"] + set(newValue) {attributeBooleanTicker[this, "formnovalidate"] = newValue} var formTarget : String - get() = attributeStringString.get(this, "formtarget") - set(newValue) {attributeStringString.set(this, "formtarget", newValue)} + get() = attributeStringString[this, "formtarget"] + set(newValue) {attributeStringString[this, "formtarget"] = newValue} var height : String - get() = attributeStringString.get(this, "height") - set(newValue) {attributeStringString.set(this, "height", newValue)} + get() = attributeStringString[this, "height"] + set(newValue) {attributeStringString[this, "height"] = newValue} var list : String - get() = attributeStringString.get(this, "list") - set(newValue) {attributeStringString.set(this, "list", newValue)} + get() = attributeStringString[this, "list"] + set(newValue) {attributeStringString[this, "list"] = newValue} var max : String - get() = attributeStringString.get(this, "max") - set(newValue) {attributeStringString.set(this, "max", newValue)} + get() = attributeStringString[this, "max"] + set(newValue) {attributeStringString[this, "max"] = newValue} var maxLength : String - get() = attributeStringString.get(this, "maxlength") - set(newValue) {attributeStringString.set(this, "maxlength", newValue)} + get() = attributeStringString[this, "maxlength"] + set(newValue) {attributeStringString[this, "maxlength"] = newValue} var minLength : String - get() = attributeStringString.get(this, "minlength") - set(newValue) {attributeStringString.set(this, "minlength", newValue)} + get() = attributeStringString[this, "minlength"] + set(newValue) {attributeStringString[this, "minlength"] = newValue} var min : String - get() = attributeStringString.get(this, "min") - set(newValue) {attributeStringString.set(this, "min", newValue)} + get() = attributeStringString[this, "min"] + set(newValue) {attributeStringString[this, "min"] = newValue} var multiple : Boolean - get() = attributeBooleanTicker.get(this, "multiple") - set(newValue) {attributeBooleanTicker.set(this, "multiple", newValue)} + get() = attributeBooleanTicker[this, "multiple"] + set(newValue) {attributeBooleanTicker[this, "multiple"] = newValue} var pattern : String - get() = attributeStringString.get(this, "pattern") - set(newValue) {attributeStringString.set(this, "pattern", newValue)} + get() = attributeStringString[this, "pattern"] + set(newValue) {attributeStringString[this, "pattern"] = newValue} var placeholder : String - get() = attributeStringString.get(this, "placeholder") - set(newValue) {attributeStringString.set(this, "placeholder", newValue)} + get() = attributeStringString[this, "placeholder"] + set(newValue) {attributeStringString[this, "placeholder"] = newValue} var readonly : Boolean - get() = attributeBooleanTicker.get(this, "readonly") - set(newValue) {attributeBooleanTicker.set(this, "readonly", newValue)} + get() = attributeBooleanTicker[this, "readonly"] + set(newValue) {attributeBooleanTicker[this, "readonly"] = newValue} var required : Boolean - get() = attributeBooleanTicker.get(this, "required") - set(newValue) {attributeBooleanTicker.set(this, "required", newValue)} + get() = attributeBooleanTicker[this, "required"] + set(newValue) {attributeBooleanTicker[this, "required"] = newValue} var size : String - get() = attributeStringString.get(this, "size") - set(newValue) {attributeStringString.set(this, "size", newValue)} + get() = attributeStringString[this, "size"] + set(newValue) {attributeStringString[this, "size"] = newValue} var src : String - get() = attributeStringString.get(this, "src") - set(newValue) {attributeStringString.set(this, "src", newValue)} + get() = attributeStringString[this, "src"] + set(newValue) {attributeStringString[this, "src"] = newValue} var step : String - get() = attributeStringString.get(this, "step") - set(newValue) {attributeStringString.set(this, "step", newValue)} + get() = attributeStringString[this, "step"] + set(newValue) {attributeStringString[this, "step"] = newValue} var width : String - get() = attributeStringString.get(this, "width") - set(newValue) {attributeStringString.set(this, "width", newValue)} + get() = attributeStringString[this, "width"] + set(newValue) {attributeStringString[this, "width"] = newValue} var files : String - get() = attributeStringString.get(this, "files") - set(newValue) {attributeStringString.set(this, "files", newValue)} + get() = attributeStringString[this, "files"] + set(newValue) {attributeStringString[this, "files"] = newValue} var value : String - get() = attributeStringString.get(this, "value") - set(newValue) {attributeStringString.set(this, "value", newValue)} + get() = attributeStringString[this, "value"] + set(newValue) {attributeStringString[this, "value"] = newValue} var name : String - get() = attributeStringString.get(this, "name") - set(newValue) {attributeStringString.set(this, "name", newValue)} + get() = attributeStringString[this, "name"] + set(newValue) {attributeStringString[this, "name"] = newValue} } @@ -244,12 +244,12 @@ val INPUT.asPhrasingContent : PhrasingContent @Suppress("unused") open class INS(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("ins", consumer, initialAttributes, null, false, false), HtmlBlockInlineTag { var cite : String - get() = attributeStringString.get(this, "cite") - set(newValue) {attributeStringString.set(this, "cite", newValue)} + get() = attributeStringString[this, "cite"] + set(newValue) {attributeStringString[this, "cite"] = newValue} var dateTime : String - get() = attributeStringString.get(this, "datetime") - set(newValue) {attributeStringString.set(this, "datetime", newValue)} + get() = attributeStringString[this, "datetime"] + set(newValue) {attributeStringString[this, "datetime"] = newValue} } diff --git a/src/commonMain/kotlin/generated/gen-tags-k.kt b/src/commonMain/kotlin/generated/gen-tags-k.kt index e4902126..f227c415 100644 --- a/src/commonMain/kotlin/generated/gen-tags-k.kt +++ b/src/commonMain/kotlin/generated/gen-tags-k.kt @@ -26,28 +26,28 @@ val KBD.asPhrasingContent : PhrasingContent @Suppress("unused") open class KEYGEN(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("keygen", consumer, initialAttributes, null, true, true), CommonAttributeGroupFacadeFlowInteractivePhrasingContent { var autoFocus : Boolean - get() = attributeBooleanTicker.get(this, "autofocus") - set(newValue) {attributeBooleanTicker.set(this, "autofocus", newValue)} + get() = attributeBooleanTicker[this, "autofocus"] + set(newValue) {attributeBooleanTicker[this, "autofocus"] = newValue} var challenge : String - get() = attributeStringString.get(this, "challenge") - set(newValue) {attributeStringString.set(this, "challenge", newValue)} + get() = attributeStringString[this, "challenge"] + set(newValue) {attributeStringString[this, "challenge"] = newValue} var disabled : Boolean - get() = attributeBooleanTicker.get(this, "disabled") - set(newValue) {attributeBooleanTicker.set(this, "disabled", newValue)} + get() = attributeBooleanTicker[this, "disabled"] + set(newValue) {attributeBooleanTicker[this, "disabled"] = newValue} var form : String - get() = attributeStringString.get(this, "form") - set(newValue) {attributeStringString.set(this, "form", newValue)} + get() = attributeStringString[this, "form"] + set(newValue) {attributeStringString[this, "form"] = newValue} var keyType : KeyGenKeyType - get() = attributeKeyGenKeyTypeEnumKeyGenKeyTypeValues.get(this, "keytype") - set(newValue) {attributeKeyGenKeyTypeEnumKeyGenKeyTypeValues.set(this, "keytype", newValue)} + get() = attributeKeyGenKeyTypeEnumKeyGenKeyTypeValues[this, "keytype"] + set(newValue) {attributeKeyGenKeyTypeEnumKeyGenKeyTypeValues[this, "keytype"] = newValue} var name : String - get() = attributeStringString.get(this, "name") - set(newValue) {attributeStringString.set(this, "name", newValue)} + get() = attributeStringString[this, "name"] + set(newValue) {attributeStringString[this, "name"] = newValue} } diff --git a/src/commonMain/kotlin/generated/gen-tags-l.kt b/src/commonMain/kotlin/generated/gen-tags-l.kt index 587d3477..290d148a 100644 --- a/src/commonMain/kotlin/generated/gen-tags-l.kt +++ b/src/commonMain/kotlin/generated/gen-tags-l.kt @@ -15,12 +15,12 @@ import kotlinx.html.attributes.* @Suppress("unused") open class LABEL(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("label", consumer, initialAttributes, null, true, false), CommonAttributeGroupFacadeFlowInteractivePhrasingContent { var form : String - get() = attributeStringString.get(this, "form") - set(newValue) {attributeStringString.set(this, "form", newValue)} + get() = attributeStringString[this, "form"] + set(newValue) {attributeStringString[this, "form"] = newValue} var htmlFor : String - get() = attributeStringString.get(this, "for") - set(newValue) {attributeStringString.set(this, "for", newValue)} + get() = attributeStringString[this, "for"] + set(newValue) {attributeStringString[this, "for"] = newValue} } @@ -48,8 +48,8 @@ val LEGEND.asPhrasingContent : PhrasingContent @Suppress("unused") open class LI(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("li", consumer, initialAttributes, null, false, false), HtmlBlockTag { var value : String - get() = attributeStringString.get(this, "value") - set(newValue) {attributeStringString.set(this, "value", newValue)} + get() = attributeStringString[this, "value"] + set(newValue) {attributeStringString[this, "value"] = newValue} } @@ -57,36 +57,36 @@ open class LI(initialAttributes : Map, override val consumer : T @Suppress("unused") open class LINK(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("link", consumer, initialAttributes, null, false, true), CommonAttributeGroupFacadeFlowMetaDataPhrasingContent { var href : String - get() = attributeStringString.get(this, "href") - set(newValue) {attributeStringString.set(this, "href", newValue)} + get() = attributeStringString[this, "href"] + set(newValue) {attributeStringString[this, "href"] = newValue} var hrefLang : String - get() = attributeStringString.get(this, "hreflang") - set(newValue) {attributeStringString.set(this, "hreflang", newValue)} + get() = attributeStringString[this, "hreflang"] + set(newValue) {attributeStringString[this, "hreflang"] = newValue} var rel : String - get() = attributeStringString.get(this, "rel") - set(newValue) {attributeStringString.set(this, "rel", newValue)} + get() = attributeStringString[this, "rel"] + set(newValue) {attributeStringString[this, "rel"] = newValue} var media : String - get() = attributeStringString.get(this, "media") - set(newValue) {attributeStringString.set(this, "media", newValue)} + get() = attributeStringString[this, "media"] + set(newValue) {attributeStringString[this, "media"] = newValue} var type : String - get() = attributeStringString.get(this, "type") - set(newValue) {attributeStringString.set(this, "type", newValue)} + get() = attributeStringString[this, "type"] + set(newValue) {attributeStringString[this, "type"] = newValue} var sizes : String - get() = attributeStringString.get(this, "sizes") - set(newValue) {attributeStringString.set(this, "sizes", newValue)} + get() = attributeStringString[this, "sizes"] + set(newValue) {attributeStringString[this, "sizes"] = newValue} var integrity : String - get() = attributeStringString.get(this, "integrity") - set(newValue) {attributeStringString.set(this, "integrity", newValue)} + get() = attributeStringString[this, "integrity"] + set(newValue) {attributeStringString[this, "integrity"] = newValue} var htmlAs : LinkAs - get() = attributeLinkAsEnumLinkAsValues.get(this, "as") - set(newValue) {attributeLinkAsEnumLinkAsValues.set(this, "as", newValue)} + get() = attributeLinkAsEnumLinkAsValues[this, "as"] + set(newValue) {attributeLinkAsEnumLinkAsValues[this, "as"] = newValue} } diff --git a/src/commonMain/kotlin/generated/gen-tags-m.kt b/src/commonMain/kotlin/generated/gen-tags-m.kt index b16c1038..ec7cb79c 100644 --- a/src/commonMain/kotlin/generated/gen-tags-m.kt +++ b/src/commonMain/kotlin/generated/gen-tags-m.kt @@ -20,8 +20,8 @@ open class MAIN(initialAttributes : Map, override val consumer : @Suppress("unused") open class MAP(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("map", consumer, initialAttributes, null, true, false), HtmlBlockInlineTag { var name : String - get() = attributeStringString.get(this, "name") - set(newValue) {attributeStringString.set(this, "name", newValue)} + get() = attributeStringString[this, "name"] + set(newValue) {attributeStringString[this, "name"] = newValue} } @@ -62,20 +62,20 @@ open class MATHML(initialAttributes : Map, override val consumer @Suppress("unused") open class META(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("meta", consumer, initialAttributes, null, false, true), CommonAttributeGroupFacadeFlowMetaDataPhrasingContent { var httpEquiv : String - get() = attributeStringString.get(this, "http-equiv") - set(newValue) {attributeStringString.set(this, "http-equiv", newValue)} + get() = attributeStringString[this, "http-equiv"] + set(newValue) {attributeStringString[this, "http-equiv"] = newValue} var name : String - get() = attributeStringString.get(this, "name") - set(newValue) {attributeStringString.set(this, "name", newValue)} + get() = attributeStringString[this, "name"] + set(newValue) {attributeStringString[this, "name"] = newValue} var content : String - get() = attributeStringString.get(this, "content") - set(newValue) {attributeStringString.set(this, "content", newValue)} + get() = attributeStringString[this, "content"] + set(newValue) {attributeStringString[this, "content"] = newValue} var charset : String - get() = attributeStringString.get(this, "charset") - set(newValue) {attributeStringString.set(this, "charset", newValue)} + get() = attributeStringString[this, "charset"] + set(newValue) {attributeStringString[this, "charset"] = newValue} } @@ -92,28 +92,28 @@ val META.asPhrasingContent : PhrasingContent @Suppress("unused") open class METER(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("meter", consumer, initialAttributes, null, true, false), HtmlBlockInlineTag { var value : String - get() = attributeStringString.get(this, "value") - set(newValue) {attributeStringString.set(this, "value", newValue)} + get() = attributeStringString[this, "value"] + set(newValue) {attributeStringString[this, "value"] = newValue} var min : String - get() = attributeStringString.get(this, "min") - set(newValue) {attributeStringString.set(this, "min", newValue)} + get() = attributeStringString[this, "min"] + set(newValue) {attributeStringString[this, "min"] = newValue} var max : String - get() = attributeStringString.get(this, "max") - set(newValue) {attributeStringString.set(this, "max", newValue)} + get() = attributeStringString[this, "max"] + set(newValue) {attributeStringString[this, "max"] = newValue} var low : String - get() = attributeStringString.get(this, "low") - set(newValue) {attributeStringString.set(this, "low", newValue)} + get() = attributeStringString[this, "low"] + set(newValue) {attributeStringString[this, "low"] = newValue} var high : String - get() = attributeStringString.get(this, "high") - set(newValue) {attributeStringString.set(this, "high", newValue)} + get() = attributeStringString[this, "high"] + set(newValue) {attributeStringString[this, "high"] = newValue} var optimum : String - get() = attributeStringString.get(this, "optimum") - set(newValue) {attributeStringString.set(this, "optimum", newValue)} + get() = attributeStringString[this, "optimum"] + set(newValue) {attributeStringString[this, "optimum"] = newValue} } diff --git a/src/commonMain/kotlin/generated/gen-tags-o.kt b/src/commonMain/kotlin/generated/gen-tags-o.kt index 73e1f0e3..01193d2b 100644 --- a/src/commonMain/kotlin/generated/gen-tags-o.kt +++ b/src/commonMain/kotlin/generated/gen-tags-o.kt @@ -15,36 +15,36 @@ import kotlinx.html.attributes.* @Suppress("unused") open class OBJECT(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("object", consumer, initialAttributes, null, true, false), CommonAttributeGroupFacadeFlowInteractivePhrasingContent { var data : String - get() = attributeStringString.get(this, "data") - set(newValue) {attributeStringString.set(this, "data", newValue)} + get() = attributeStringString[this, "data"] + set(newValue) {attributeStringString[this, "data"] = newValue} var type : String - get() = attributeStringString.get(this, "type") - set(newValue) {attributeStringString.set(this, "type", newValue)} + get() = attributeStringString[this, "type"] + set(newValue) {attributeStringString[this, "type"] = newValue} var height : String - get() = attributeStringString.get(this, "height") - set(newValue) {attributeStringString.set(this, "height", newValue)} + get() = attributeStringString[this, "height"] + set(newValue) {attributeStringString[this, "height"] = newValue} var width : String - get() = attributeStringString.get(this, "width") - set(newValue) {attributeStringString.set(this, "width", newValue)} + get() = attributeStringString[this, "width"] + set(newValue) {attributeStringString[this, "width"] = newValue} var usemap : String - get() = attributeStringString.get(this, "usemap") - set(newValue) {attributeStringString.set(this, "usemap", newValue)} + get() = attributeStringString[this, "usemap"] + set(newValue) {attributeStringString[this, "usemap"] = newValue} var name : String - get() = attributeStringString.get(this, "name") - set(newValue) {attributeStringString.set(this, "name", newValue)} + get() = attributeStringString[this, "name"] + set(newValue) {attributeStringString[this, "name"] = newValue} var form : String - get() = attributeStringString.get(this, "form") - set(newValue) {attributeStringString.set(this, "form", newValue)} + get() = attributeStringString[this, "form"] + set(newValue) {attributeStringString[this, "form"] = newValue} var classId : String - get() = attributeStringString.get(this, "classid") - set(newValue) {attributeStringString.set(this, "classid", newValue)} + get() = attributeStringString[this, "classid"] + set(newValue) {attributeStringString[this, "classid"] = newValue} } @@ -71,12 +71,12 @@ val OBJECT.asPhrasingContent : PhrasingContent @Suppress("unused") open class OL(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("ol", consumer, initialAttributes, null, false, false), HtmlBlockTag { var start : String - get() = attributeStringString.get(this, "start") - set(newValue) {attributeStringString.set(this, "start", newValue)} + get() = attributeStringString[this, "start"] + set(newValue) {attributeStringString[this, "start"] = newValue} var reversed : Boolean - get() = attributeBooleanTicker.get(this, "reversed") - set(newValue) {attributeBooleanTicker.set(this, "reversed", newValue)} + get() = attributeBooleanTicker[this, "reversed"] + set(newValue) {attributeBooleanTicker[this, "reversed"] = newValue} } @@ -94,12 +94,12 @@ inline fun OL.li(classes : String? = null, crossinline block : LI.() -> Unit = { @Suppress("unused") open class OPTGROUP(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("optgroup", consumer, initialAttributes, null, true, false), CommonAttributeGroupFacade { var disabled : Boolean - get() = attributeBooleanTicker.get(this, "disabled") - set(newValue) {attributeBooleanTicker.set(this, "disabled", newValue)} + get() = attributeBooleanTicker[this, "disabled"] + set(newValue) {attributeBooleanTicker[this, "disabled"] = newValue} var label : String - get() = attributeStringString.get(this, "label") - set(newValue) {attributeStringString.set(this, "label", newValue)} + get() = attributeStringString[this, "label"] + set(newValue) {attributeStringString[this, "label"] = newValue} } @@ -122,20 +122,20 @@ fun OPTGROUP.option(classes : String? = null, content : String = "") : Unit = OP @Suppress("unused") open class OPTION(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("option", consumer, initialAttributes, null, true, false), CommonAttributeGroupFacade { var disabled : Boolean - get() = attributeBooleanTicker.get(this, "disabled") - set(newValue) {attributeBooleanTicker.set(this, "disabled", newValue)} + get() = attributeBooleanTicker[this, "disabled"] + set(newValue) {attributeBooleanTicker[this, "disabled"] = newValue} var selected : Boolean - get() = attributeBooleanTicker.get(this, "selected") - set(newValue) {attributeBooleanTicker.set(this, "selected", newValue)} + get() = attributeBooleanTicker[this, "selected"] + set(newValue) {attributeBooleanTicker[this, "selected"] = newValue} var label : String - get() = attributeStringString.get(this, "label") - set(newValue) {attributeStringString.set(this, "label", newValue)} + get() = attributeStringString[this, "label"] + set(newValue) {attributeStringString[this, "label"] = newValue} var value : String - get() = attributeStringString.get(this, "value") - set(newValue) {attributeStringString.set(this, "value", newValue)} + get() = attributeStringString[this, "value"] + set(newValue) {attributeStringString[this, "value"] = newValue} } @@ -143,16 +143,16 @@ open class OPTION(initialAttributes : Map, override val consumer @Suppress("unused") open class OUTPUT(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("output", consumer, initialAttributes, null, true, false), HtmlBlockInlineTag { var htmlFor : String - get() = attributeStringString.get(this, "for") - set(newValue) {attributeStringString.set(this, "for", newValue)} + get() = attributeStringString[this, "for"] + set(newValue) {attributeStringString[this, "for"] = newValue} var form : String - get() = attributeStringString.get(this, "form") - set(newValue) {attributeStringString.set(this, "form", newValue)} + get() = attributeStringString[this, "form"] + set(newValue) {attributeStringString[this, "form"] = newValue} var name : String - get() = attributeStringString.get(this, "name") - set(newValue) {attributeStringString.set(this, "name", newValue)} + get() = attributeStringString[this, "name"] + set(newValue) {attributeStringString[this, "name"] = newValue} } diff --git a/src/commonMain/kotlin/generated/gen-tags-p.kt b/src/commonMain/kotlin/generated/gen-tags-p.kt index ef9257f0..a87358be 100644 --- a/src/commonMain/kotlin/generated/gen-tags-p.kt +++ b/src/commonMain/kotlin/generated/gen-tags-p.kt @@ -26,12 +26,12 @@ val P.asPhrasingContent : PhrasingContent @Suppress("unused") open class PARAM(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("param", consumer, initialAttributes, null, true, true) { var name : String - get() = attributeStringString.get(this, "name") - set(newValue) {attributeStringString.set(this, "name", newValue)} + get() = attributeStringString[this, "name"] + set(newValue) {attributeStringString[this, "name"] = newValue} var value : String - get() = attributeStringString.get(this, "value") - set(newValue) {attributeStringString.set(this, "value", newValue)} + get() = attributeStringString[this, "value"] + set(newValue) {attributeStringString[this, "value"] = newValue} } @@ -96,12 +96,12 @@ val PRE.asPhrasingContent : PhrasingContent @Suppress("unused") open class PROGRESS(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("progress", consumer, initialAttributes, null, true, false), HtmlBlockInlineTag { var value : String - get() = attributeStringString.get(this, "value") - set(newValue) {attributeStringString.set(this, "value", newValue)} + get() = attributeStringString[this, "value"] + set(newValue) {attributeStringString[this, "value"] = newValue} var max : String - get() = attributeStringString.get(this, "max") - set(newValue) {attributeStringString.set(this, "max", newValue)} + get() = attributeStringString[this, "max"] + set(newValue) {attributeStringString[this, "max"] = newValue} } diff --git a/src/commonMain/kotlin/generated/gen-tags-q.kt b/src/commonMain/kotlin/generated/gen-tags-q.kt index 1eb0519b..92dfcfef 100644 --- a/src/commonMain/kotlin/generated/gen-tags-q.kt +++ b/src/commonMain/kotlin/generated/gen-tags-q.kt @@ -15,8 +15,8 @@ import kotlinx.html.attributes.* @Suppress("unused") open class Q(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("q", consumer, initialAttributes, null, true, false), HtmlBlockInlineTag { var cite : String - get() = attributeStringString.get(this, "cite") - set(newValue) {attributeStringString.set(this, "cite", newValue)} + get() = attributeStringString[this, "cite"] + set(newValue) {attributeStringString[this, "cite"] = newValue} } diff --git a/src/commonMain/kotlin/generated/gen-tags-s.kt b/src/commonMain/kotlin/generated/gen-tags-s.kt index 6be14c8d..c51eccae 100644 --- a/src/commonMain/kotlin/generated/gen-tags-s.kt +++ b/src/commonMain/kotlin/generated/gen-tags-s.kt @@ -37,58 +37,63 @@ val SAMP.asPhrasingContent : PhrasingContent @Suppress("unused") open class SCRIPT(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("script", consumer, initialAttributes, null, false, false), FlowMetaDataPhrasingContent { var charset : String - get() = attributeStringString.get(this, "charset") - set(newValue) {attributeStringString.set(this, "charset", newValue)} + get() = attributeStringString[this, "charset"] + set(newValue) {attributeStringString[this, "charset"] = newValue} var type : String - get() = attributeStringString.get(this, "type") - set(newValue) {attributeStringString.set(this, "type", newValue)} + get() = attributeStringString[this, "type"] + set(newValue) {attributeStringString[this, "type"] = newValue} var src : String - get() = attributeStringString.get(this, "src") - set(newValue) {attributeStringString.set(this, "src", newValue)} + get() = attributeStringString[this, "src"] + set(newValue) {attributeStringString[this, "src"] = newValue} var defer : Boolean - get() = attributeBooleanTicker.get(this, "defer") - set(newValue) {attributeBooleanTicker.set(this, "defer", newValue)} + get() = attributeBooleanTicker[this, "defer"] + set(newValue) {attributeBooleanTicker[this, "defer"] = newValue} var async : Boolean - get() = attributeBooleanTicker.get(this, "async") - set(newValue) {attributeBooleanTicker.set(this, "async", newValue)} + get() = attributeBooleanTicker[this, "async"] + set(newValue) {attributeBooleanTicker[this, "async"] = newValue} var nonce : String - get() = attributeStringString.get(this, "nonce") - set(newValue) {attributeStringString.set(this, "nonce", newValue)} + get() = attributeStringString[this, "nonce"] + set(newValue) {attributeStringString[this, "nonce"] = newValue} var integrity : String - get() = attributeStringString.get(this, "integrity") - set(newValue) {attributeStringString.set(this, "integrity", newValue)} + get() = attributeStringString[this, "integrity"] + set(newValue) {attributeStringString[this, "integrity"] = newValue} var crossorigin : ScriptCrossorigin - get() = attributeScriptCrossoriginEnumScriptCrossoriginValues.get(this, "crossorigin") - set(newValue) {attributeScriptCrossoriginEnumScriptCrossoriginValues.set(this, "crossorigin", newValue)} + get() = attributeScriptCrossoriginEnumScriptCrossoriginValues[this, "crossorigin"] + set(newValue) {attributeScriptCrossoriginEnumScriptCrossoriginValues[this, "crossorigin"] = newValue} - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override operator fun Entities.unaryPlus() : Unit { @Suppress("DEPRECATION") entity(this) } - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override operator fun String.unaryPlus() : Unit { @Suppress("DEPRECATION") text(this) } - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override fun text(s : String) : Unit { super.text(s) } - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override fun text(n : Number) : Unit { super.text(n) } - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override fun entity(e : Entities) : Unit { super.entity(e) } @@ -118,32 +123,32 @@ val SECTION.asSectioningContent : SectioningContent @Suppress("unused") open class SELECT(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("select", consumer, initialAttributes, null, true, false), CommonAttributeGroupFacadeFlowInteractivePhrasingContent { var autoFocus : Boolean - get() = attributeBooleanTicker.get(this, "autofocus") - set(newValue) {attributeBooleanTicker.set(this, "autofocus", newValue)} + get() = attributeBooleanTicker[this, "autofocus"] + set(newValue) {attributeBooleanTicker[this, "autofocus"] = newValue} var disabled : Boolean - get() = attributeBooleanTicker.get(this, "disabled") - set(newValue) {attributeBooleanTicker.set(this, "disabled", newValue)} + get() = attributeBooleanTicker[this, "disabled"] + set(newValue) {attributeBooleanTicker[this, "disabled"] = newValue} var form : String - get() = attributeStringString.get(this, "form") - set(newValue) {attributeStringString.set(this, "form", newValue)} + get() = attributeStringString[this, "form"] + set(newValue) {attributeStringString[this, "form"] = newValue} var multiple : Boolean - get() = attributeBooleanTicker.get(this, "multiple") - set(newValue) {attributeBooleanTicker.set(this, "multiple", newValue)} + get() = attributeBooleanTicker[this, "multiple"] + set(newValue) {attributeBooleanTicker[this, "multiple"] = newValue} var name : String - get() = attributeStringString.get(this, "name") - set(newValue) {attributeStringString.set(this, "name", newValue)} + get() = attributeStringString[this, "name"] + set(newValue) {attributeStringString[this, "name"] = newValue} var size : String - get() = attributeStringString.get(this, "size") - set(newValue) {attributeStringString.set(this, "size", newValue)} + get() = attributeStringString[this, "size"] + set(newValue) {attributeStringString[this, "size"] = newValue} var required : Boolean - get() = attributeBooleanTicker.get(this, "required") - set(newValue) {attributeBooleanTicker.set(this, "required", newValue)} + get() = attributeBooleanTicker[this, "required"] + set(newValue) {attributeBooleanTicker[this, "required"] = newValue} } @@ -185,8 +190,8 @@ val SELECT.asPhrasingContent : PhrasingContent @Suppress("unused") open class SLOT(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("slot", consumer, initialAttributes, null, false, false), HtmlInlineTag { var name : String - get() = attributeStringString.get(this, "name") - set(newValue) {attributeStringString.set(this, "name", newValue)} + get() = attributeStringString[this, "name"] + set(newValue) {attributeStringString[this, "name"] = newValue} } @@ -205,16 +210,16 @@ val SMALL.asPhrasingContent : PhrasingContent @Suppress("unused") open class SOURCE(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("source", consumer, initialAttributes, null, true, true), CommonAttributeGroupFacade { var src : String - get() = attributeStringString.get(this, "src") - set(newValue) {attributeStringString.set(this, "src", newValue)} + get() = attributeStringString[this, "src"] + set(newValue) {attributeStringString[this, "src"] = newValue} var type : String - get() = attributeStringString.get(this, "type") - set(newValue) {attributeStringString.set(this, "type", newValue)} + get() = attributeStringString[this, "type"] + set(newValue) {attributeStringString[this, "type"] = newValue} var media : String - get() = attributeStringString.get(this, "media") - set(newValue) {attributeStringString.set(this, "media", newValue)} + get() = attributeStringString[this, "media"] + set(newValue) {attributeStringString[this, "media"] = newValue} } @@ -244,42 +249,47 @@ val STRONG.asPhrasingContent : PhrasingContent @Suppress("unused") open class STYLE(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("style", consumer, initialAttributes, null, false, false), CommonAttributeGroupFacadeFlowMetaDataContent { var type : String - get() = attributeStringString.get(this, "type") - set(newValue) {attributeStringString.set(this, "type", newValue)} + get() = attributeStringString[this, "type"] + set(newValue) {attributeStringString[this, "type"] = newValue} var media : String - get() = attributeStringString.get(this, "media") - set(newValue) {attributeStringString.set(this, "media", newValue)} + get() = attributeStringString[this, "media"] + set(newValue) {attributeStringString[this, "media"] = newValue} var scoped : Boolean - get() = attributeBooleanTicker.get(this, "scoped") - set(newValue) {attributeBooleanTicker.set(this, "scoped", newValue)} + get() = attributeBooleanTicker[this, "scoped"] + set(newValue) {attributeBooleanTicker[this, "scoped"] = newValue} var nonce : String - get() = attributeStringString.get(this, "nonce") - set(newValue) {attributeStringString.set(this, "nonce", newValue)} + get() = attributeStringString[this, "nonce"] + set(newValue) {attributeStringString[this, "nonce"] = newValue} - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override operator fun Entities.unaryPlus() : Unit { @Suppress("DEPRECATION") entity(this) } - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override operator fun String.unaryPlus() : Unit { @Suppress("DEPRECATION") text(this) } - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override fun text(s : String) : Unit { super.text(s) } - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override fun text(n : Number) : Unit { super.text(n) } - @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {}") + @Suppress("DeprecatedCallableAddReplaceWith") + @Deprecated("This tag most likely doesn't support text content or requires unsafe content (try unsafe {})") override fun entity(e : Entities) : Unit { super.entity(e) } diff --git a/src/commonMain/kotlin/generated/gen-tags-t.kt b/src/commonMain/kotlin/generated/gen-tags-t.kt index a99a678d..9a54097f 100644 --- a/src/commonMain/kotlin/generated/gen-tags-t.kt +++ b/src/commonMain/kotlin/generated/gen-tags-t.kt @@ -15,8 +15,8 @@ import kotlinx.html.attributes.* @Suppress("unused") open class TABLE(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("table", consumer, initialAttributes, null, false, false), HtmlBlockTag { var summary : String - get() = attributeStringString.get(this, "summary") - set(newValue) {attributeStringString.set(this, "summary", newValue)} + get() = attributeStringString[this, "summary"] + set(newValue) {attributeStringString[this, "summary"] = newValue} } @@ -99,16 +99,16 @@ inline fun TBODY.tr(classes : String? = null, crossinline block : TR.() -> Unit @Suppress("unused") open class TD(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("td", consumer, initialAttributes, null, false, false), HtmlBlockTag { var headers : String - get() = attributeStringString.get(this, "headers") - set(newValue) {attributeStringString.set(this, "headers", newValue)} + get() = attributeStringString[this, "headers"] + set(newValue) {attributeStringString[this, "headers"] = newValue} var rowSpan : String - get() = attributeStringString.get(this, "rowspan") - set(newValue) {attributeStringString.set(this, "rowspan", newValue)} + get() = attributeStringString[this, "rowspan"] + set(newValue) {attributeStringString[this, "rowspan"] = newValue} var colSpan : String - get() = attributeStringString.get(this, "colspan") - set(newValue) {attributeStringString.set(this, "colspan", newValue)} + get() = attributeStringString[this, "colspan"] + set(newValue) {attributeStringString[this, "colspan"] = newValue} } @@ -127,52 +127,52 @@ val TEMPLATE.asPhrasingContent : PhrasingContent @Suppress("unused") open class TEXTAREA(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("textarea", consumer, initialAttributes, null, true, false), CommonAttributeGroupFacadeFlowInteractivePhrasingContent { var autoFocus : Boolean - get() = attributeBooleanTicker.get(this, "autofocus") - set(newValue) {attributeBooleanTicker.set(this, "autofocus", newValue)} + get() = attributeBooleanTicker[this, "autofocus"] + set(newValue) {attributeBooleanTicker[this, "autofocus"] = newValue} var disabled : Boolean - get() = attributeBooleanTicker.get(this, "disabled") - set(newValue) {attributeBooleanTicker.set(this, "disabled", newValue)} + get() = attributeBooleanTicker[this, "disabled"] + set(newValue) {attributeBooleanTicker[this, "disabled"] = newValue} var form : String - get() = attributeStringString.get(this, "form") - set(newValue) {attributeStringString.set(this, "form", newValue)} + get() = attributeStringString[this, "form"] + set(newValue) {attributeStringString[this, "form"] = newValue} var maxLength : String - get() = attributeStringString.get(this, "maxlength") - set(newValue) {attributeStringString.set(this, "maxlength", newValue)} + get() = attributeStringString[this, "maxlength"] + set(newValue) {attributeStringString[this, "maxlength"] = newValue} var minLength : String - get() = attributeStringString.get(this, "minlength") - set(newValue) {attributeStringString.set(this, "minlength", newValue)} + get() = attributeStringString[this, "minlength"] + set(newValue) {attributeStringString[this, "minlength"] = newValue} var name : String - get() = attributeStringString.get(this, "name") - set(newValue) {attributeStringString.set(this, "name", newValue)} + get() = attributeStringString[this, "name"] + set(newValue) {attributeStringString[this, "name"] = newValue} var placeholder : String - get() = attributeStringString.get(this, "placeholder") - set(newValue) {attributeStringString.set(this, "placeholder", newValue)} + get() = attributeStringString[this, "placeholder"] + set(newValue) {attributeStringString[this, "placeholder"] = newValue} var readonly : Boolean - get() = attributeBooleanTicker.get(this, "readonly") - set(newValue) {attributeBooleanTicker.set(this, "readonly", newValue)} + get() = attributeBooleanTicker[this, "readonly"] + set(newValue) {attributeBooleanTicker[this, "readonly"] = newValue} var required : Boolean - get() = attributeBooleanTicker.get(this, "required") - set(newValue) {attributeBooleanTicker.set(this, "required", newValue)} + get() = attributeBooleanTicker[this, "required"] + set(newValue) {attributeBooleanTicker[this, "required"] = newValue} var rows : String - get() = attributeStringString.get(this, "rows") - set(newValue) {attributeStringString.set(this, "rows", newValue)} + get() = attributeStringString[this, "rows"] + set(newValue) {attributeStringString[this, "rows"] = newValue} var cols : String - get() = attributeStringString.get(this, "cols") - set(newValue) {attributeStringString.set(this, "cols", newValue)} + get() = attributeStringString[this, "cols"] + set(newValue) {attributeStringString[this, "cols"] = newValue} var wrap : TextAreaWrap - get() = attributeTextAreaWrapEnumTextAreaWrapValues.get(this, "wrap") - set(newValue) {attributeTextAreaWrapEnumTextAreaWrapValues.set(this, "wrap", newValue)} + get() = attributeTextAreaWrapEnumTextAreaWrapValues[this, "wrap"] + set(newValue) {attributeTextAreaWrapEnumTextAreaWrapValues[this, "wrap"] = newValue} } @@ -204,20 +204,20 @@ inline fun TFOOT.tr(classes : String? = null, crossinline block : TR.() -> Unit @Suppress("unused") open class TH(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("th", consumer, initialAttributes, null, false, false), HtmlInlineTag { var headers : String - get() = attributeStringString.get(this, "headers") - set(newValue) {attributeStringString.set(this, "headers", newValue)} + get() = attributeStringString[this, "headers"] + set(newValue) {attributeStringString[this, "headers"] = newValue} var rowSpan : String - get() = attributeStringString.get(this, "rowspan") - set(newValue) {attributeStringString.set(this, "rowspan", newValue)} + get() = attributeStringString[this, "rowspan"] + set(newValue) {attributeStringString[this, "rowspan"] = newValue} var colSpan : String - get() = attributeStringString.get(this, "colspan") - set(newValue) {attributeStringString.set(this, "colspan", newValue)} + get() = attributeStringString[this, "colspan"] + set(newValue) {attributeStringString[this, "colspan"] = newValue} var scope : ThScope - get() = attributeThScopeEnumThScopeValues.get(this, "scope") - set(newValue) {attributeThScopeEnumThScopeValues.set(this, "scope", newValue)} + get() = attributeThScopeEnumThScopeValues[this, "scope"] + set(newValue) {attributeThScopeEnumThScopeValues[this, "scope"] = newValue} } @@ -240,8 +240,8 @@ inline fun THEAD.tr(classes : String? = null, crossinline block : TR.() -> Unit @Suppress("unused") open class TIME(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("time", consumer, initialAttributes, null, true, false), HtmlBlockInlineTag { var dateTime : String - get() = attributeStringString.get(this, "datetime") - set(newValue) {attributeStringString.set(this, "datetime", newValue)} + get() = attributeStringString[this, "datetime"] + set(newValue) {attributeStringString[this, "datetime"] = newValue} } diff --git a/src/commonMain/kotlin/generated/gen-tags-v.kt b/src/commonMain/kotlin/generated/gen-tags-v.kt index 5dc042fa..92ecfe41 100644 --- a/src/commonMain/kotlin/generated/gen-tags-v.kt +++ b/src/commonMain/kotlin/generated/gen-tags-v.kt @@ -26,36 +26,36 @@ val VAR.asPhrasingContent : PhrasingContent @Suppress("unused") open class VIDEO(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("video", consumer, initialAttributes, null, false, false), CommonAttributeGroupFacadeFlowInteractivePhrasingContent { var src : String - get() = attributeStringString.get(this, "src") - set(newValue) {attributeStringString.set(this, "src", newValue)} + get() = attributeStringString[this, "src"] + set(newValue) {attributeStringString[this, "src"] = newValue} var autoBuffer : Boolean - get() = attributeBooleanTicker.get(this, "autobuffer") - set(newValue) {attributeBooleanTicker.set(this, "autobuffer", newValue)} + get() = attributeBooleanTicker[this, "autobuffer"] + set(newValue) {attributeBooleanTicker[this, "autobuffer"] = newValue} var autoPlay : Boolean - get() = attributeBooleanTicker.get(this, "autoplay") - set(newValue) {attributeBooleanTicker.set(this, "autoplay", newValue)} + get() = attributeBooleanTicker[this, "autoplay"] + set(newValue) {attributeBooleanTicker[this, "autoplay"] = newValue} var loop : Boolean - get() = attributeBooleanTicker.get(this, "loop") - set(newValue) {attributeBooleanTicker.set(this, "loop", newValue)} + get() = attributeBooleanTicker[this, "loop"] + set(newValue) {attributeBooleanTicker[this, "loop"] = newValue} var controls : Boolean - get() = attributeBooleanTicker.get(this, "controls") - set(newValue) {attributeBooleanTicker.set(this, "controls", newValue)} + get() = attributeBooleanTicker[this, "controls"] + set(newValue) {attributeBooleanTicker[this, "controls"] = newValue} var width : String - get() = attributeStringString.get(this, "width") - set(newValue) {attributeStringString.set(this, "width", newValue)} + get() = attributeStringString[this, "width"] + set(newValue) {attributeStringString[this, "width"] = newValue} var height : String - get() = attributeStringString.get(this, "height") - set(newValue) {attributeStringString.set(this, "height", newValue)} + get() = attributeStringString[this, "height"] + set(newValue) {attributeStringString[this, "height"] = newValue} var poster : String - get() = attributeStringString.get(this, "poster") - set(newValue) {attributeStringString.set(this, "poster", newValue)} + get() = attributeStringString[this, "poster"] + set(newValue) {attributeStringString[this, "poster"] = newValue} } diff --git a/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt b/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt index cfa60235..8484b187 100644 --- a/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt +++ b/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt @@ -763,7 +763,10 @@ public inline fun TagConsumer.h6(classes: String? = null, crossinli * Document head */ @HtmlTagMarker -@Suppress("DEPRECATION") +@Suppress( + "DEPRECATION", + "DeprecatedCallableAddReplaceWith", +) @Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") public fun TagConsumer.head(content: String = ""): HTMLHeadElement = HEAD(emptyMap, this) @@ -818,7 +821,10 @@ public inline fun TagConsumer.hr(classes: String? = null, crossinli * Document root element */ @HtmlTagMarker -@Suppress("DEPRECATION") +@Suppress( + "DEPRECATION", + "DeprecatedCallableAddReplaceWith", +) @Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") public fun TagConsumer.html(content: String = "", namespace: String? = null): HTMLHtmlElement = HTML(emptyMap, this, namespace) @@ -1329,7 +1335,10 @@ public inline fun TagConsumer.samp(classes: String? = null, crossin * Script statements */ @HtmlTagMarker -@Suppress("DEPRECATION") +@Suppress( + "DEPRECATION", + "DeprecatedCallableAddReplaceWith", +) @Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") public fun TagConsumer.script( type: String? = null, @@ -1442,7 +1451,10 @@ public inline fun TagConsumer.strong(classes: String? = null, cross * Style info */ @HtmlTagMarker -@Suppress("DEPRECATION") +@Suppress( + "DEPRECATION", + "DeprecatedCallableAddReplaceWith", +) @Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") public fun TagConsumer.style(type: String? = null, content: String = ""): HTMLStyleElement = STYLE(attributesMapOf("type", type), this) diff --git a/src/wasmJsMain/kotlin/generated/gen-consumer-tags-wasm-js.kt b/src/wasmJsMain/kotlin/generated/gen-consumer-tags-wasm-js.kt index f5f52074..fc2872dd 100644 --- a/src/wasmJsMain/kotlin/generated/gen-consumer-tags-wasm-js.kt +++ b/src/wasmJsMain/kotlin/generated/gen-consumer-tags-wasm-js.kt @@ -763,7 +763,10 @@ public inline fun TagConsumer.h6(classes: String? = null, crossinline b * Document head */ @HtmlTagMarker -@Suppress("DEPRECATION") +@Suppress( + "DEPRECATION", + "DeprecatedCallableAddReplaceWith", +) @Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") public fun TagConsumer.head(content: String = ""): HTMLHeadElement = HEAD(emptyMap, this) .visitAndFinalize(this, {+content}) as HTMLHeadElement @@ -817,7 +820,10 @@ public inline fun TagConsumer.hr(classes: String? = null, crossinline b * Document root element */ @HtmlTagMarker -@Suppress("DEPRECATION") +@Suppress( + "DEPRECATION", + "DeprecatedCallableAddReplaceWith", +) @Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") public fun TagConsumer.html(content: String = "", namespace: String? = null): HTMLHtmlElement = HTML(emptyMap, this, namespace) @@ -1328,7 +1334,10 @@ public inline fun TagConsumer.samp(classes: String? = null, crossinline * Script statements */ @HtmlTagMarker -@Suppress("DEPRECATION") +@Suppress( + "DEPRECATION", + "DeprecatedCallableAddReplaceWith", +) @Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") public fun TagConsumer.script( type: String? = null, @@ -1441,7 +1450,10 @@ public inline fun TagConsumer.strong(classes: String? = null, crossinli * Style info */ @HtmlTagMarker -@Suppress("DEPRECATION") +@Suppress( + "DEPRECATION", + "DeprecatedCallableAddReplaceWith", +) @Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") public fun TagConsumer.style(type: String? = null, content: String = ""): HTMLStyleElement = STYLE(attributesMapOf("type", type), this)