tipsy / j2html

Java to HTML generator. Enjoy typesafe HTML generation.

Home Page:https://j2html.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fail to create <generate> and <command> tag

Jie1466803079 opened this issue · comments

I'm using version 1.5.1 of j2html which is supposed to support the new tags of HTML5. However, I cannot create the tag. Besides, there is a class named GenerateTag in the tags-specialized package, which means j2html should be allowed to create the tag. However, I cannot create this tag either.

package j2html.tags.specialized;

import j2html.tags.ContainerTag;

public final class GenerateTag extends ContainerTag {
public GenerateTag() {
super("generate");
}
}

@Jie1466803079 the GenerateTag is a mistake that slipped into commit acf6bff. It does not exist in the HTML Standard and is planned for removal.

The <command> element is also not part of the standard. It was only included in drafts, and I cannot find any browsers that support it.

If, for any reason, you need to create elements with these names you can use TagCreator.tag(...) and TagCreator.emptyTag(...) to create custom named elements.

Also, a follow up question. Where did you find version 1.5.1? We have not yet made a release with that version number.

The tag has been removed as of #211 .