tipsy / j2html

Java to HTML generator. Enjoy typesafe HTML generation.
https://j2html.com/
Apache License 2.0
765 stars 137 forks source link

Fail to create <generate> and <command> tag #209

Closed Jie1466803079 closed 2 years ago

Jie1466803079 commented 2 years ago

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"); } }

sembler commented 2 years ago

@Jie1466803079 the GenerateTag is a mistake that slipped into commit acf6bff7. 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.

sembler commented 2 years ago

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

sembler commented 2 years ago

The tag has been removed as of #211 .