Skip to content

Commit

Permalink
Add figcaption element
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Mashkov committed Feb 20, 2016
1 parent f0e5a43 commit 1a1f252
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
11 changes: 11 additions & 0 deletions generate/src/main/resources/html_5.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@

<xsd:element ref="fieldset"/>
<xsd:element ref="figure"/>
<xsd:element ref="figcaption"/>
<xsd:element ref="footer"/>
<xsd:element ref="form"/>

Expand Down Expand Up @@ -901,6 +902,16 @@
<xsd:choice>
<xsd:group ref="flowContent"/>
<xsd:element ref="legend" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="figcaption" minOccurs="0" maxOccurs="1"/>
</xsd:choice>
<xsd:attributeGroup ref="commonAttributeGroup"/>
</xsd:complexType>
</xsd:element>

<xsd:element name="figcaption">
<xsd:complexType mixed="true">
<xsd:choice>
<xsd:group ref="flowContent"/>
</xsd:choice>
<xsd:attributeGroup ref="commonAttributeGroup"/>
</xsd:complexType>
Expand Down
2 changes: 2 additions & 0 deletions js/src/main/kotlin/generated/gen-consumer-tags.kt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ public fun TagConsumer<HTMLElement>.embed(classes : String? = null, block : EMBE

public fun TagConsumer<HTMLElement>.fieldSet(classes : String? = null, block : FIELDSET.() -> Unit = {}) : HTMLFieldSetElement = FIELDSET(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLFieldSetElement

public fun TagConsumer<HTMLElement>.figcaption(classes : String? = null, block : FIGCAPTION.() -> Unit = {}) : HTMLElement = FIGCAPTION(attributesMapOf("class", classes), this).visitAndFinalize(this, block)

public fun TagConsumer<HTMLElement>.figure(classes : String? = null, block : FIGURE.() -> Unit = {}) : HTMLElement = FIGURE(attributesMapOf("class", classes), this).visitAndFinalize(this, block)

public fun TagConsumer<HTMLElement>.footer(classes : String? = null, block : FOOTER.() -> Unit = {}) : HTMLElement = FOOTER(attributesMapOf("class", classes), this).visitAndFinalize(this, block)
Expand Down
2 changes: 2 additions & 0 deletions shared/src/main/kotlin/generated/gen-consumer-tags.kt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ fun <T, C : TagConsumer<T>> C.embed(classes : String? = null, block : EMBED.() -

fun <T, C : TagConsumer<T>> C.fieldSet(classes : String? = null, block : FIELDSET.() -> Unit = {}) : T = FIELDSET(attributesMapOf("class", classes), this).visitAndFinalize(this, block)

fun <T, C : TagConsumer<T>> C.figcaption(classes : String? = null, block : FIGCAPTION.() -> Unit = {}) : T = FIGCAPTION(attributesMapOf("class", classes), this).visitAndFinalize(this, block)

fun <T, C : TagConsumer<T>> C.figure(classes : String? = null, block : FIGURE.() -> Unit = {}) : T = FIGURE(attributesMapOf("class", classes), this).visitAndFinalize(this, block)

fun <T, C : TagConsumer<T>> C.footer(classes : String? = null, block : FOOTER.() -> Unit = {}) : T = FOOTER(attributesMapOf("class", classes), this).visitAndFinalize(this, block)
Expand Down
2 changes: 2 additions & 0 deletions shared/src/main/kotlin/generated/gen-tag-groups.kt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ fun FlowContent.fieldSet(classes : String? = null, block : FIELDSET.() -> Unit =

fun FlowContent.figure(classes : String? = null, block : FIGURE.() -> Unit = {}) : Unit = FIGURE(attributesMapOf("class", classes), consumer).visit(block)

fun FlowContent.figcaption(classes : String? = null, block : FIGCAPTION.() -> Unit = {}) : Unit = FIGCAPTION(attributesMapOf("class", classes), consumer).visit(block)

fun FlowContent.footer(classes : String? = null, block : FOOTER.() -> Unit = {}) : Unit = FOOTER(attributesMapOf("class", classes), consumer).visit(block)

fun FlowContent.form(action : String? = null, encType : FormEncType? = null, method : FormMethod? = null, classes : String? = null, block : FORM.() -> Unit = {}) : Unit = FORM(attributesMapOf("action", action,"enctype", encType?.enumEncode(),"method", method?.enumEncode(),"class", classes), consumer).visit(block)
Expand Down
7 changes: 7 additions & 0 deletions shared/src/main/kotlin/generated/gen-tags-f.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,19 @@ open class FIELDSET(initialAttributes : Map<String, String>, override val consum
fun FIELDSET.legEnd(classes : String? = null, block : LEGEND.() -> Unit = {}) : Unit = LEGEND(attributesMapOf("class", classes), consumer).visit(block)


@Suppress("unused")
open class FIGCAPTION(initialAttributes : Map<String, String>, override val consumer : TagConsumer<*>) : HTMLTag("figcaption", consumer, initialAttributes, null, false, false), HtmlBlockTag {

}

@Suppress("unused")
open class FIGURE(initialAttributes : Map<String, String>, override val consumer : TagConsumer<*>) : HTMLTag("figure", consumer, initialAttributes, null, false, false), HtmlBlockTag {

}
fun FIGURE.legEnd(classes : String? = null, block : LEGEND.() -> Unit = {}) : Unit = LEGEND(attributesMapOf("class", classes), consumer).visit(block)

fun FIGURE.figcaption(classes : String? = null, block : FIGCAPTION.() -> Unit = {}) : Unit = FIGCAPTION(attributesMapOf("class", classes), consumer).visit(block)


@Suppress("unused")
open class FOOTER(initialAttributes : Map<String, String>, override val consumer : TagConsumer<*>) : HTMLTag("footer", consumer, initialAttributes, null, false, false), HtmlBlockTag {
Expand Down

0 comments on commit 1a1f252

Please sign in to comment.