jatl
jatl copied to clipboard
Extended HtmlBuilder
I've added simpler-to-use attribute setter methods, support for comments and
CData in my clone (http://code.google.com/r/alexeyvromanov-jatl).
Examples:
body().alink(Color.BLACK).vlink(Color.RED).end();
ins().datetime(new Date(0), TimeZone.getTimeZone("UTC")).end();
a().href(new URI("http://example.com/?x=1&y=2")).end();
input(InputType.CHECKBOX).selected().end();
Original issue reported on code.google.com by [email protected]
on 22 Mar 2012 at 12:26
Legal values for attributes were taken from
http://www.w3.org/TR/html4/index/attributes.html
One attribute listed there and absent in GeneratedHtmlBuilder.java is
http://www.w3.org/TR/html4/present/frames.html#adef-noresize
Original comment by [email protected]
on 22 Mar 2012 at 12:33
Alexey,
Thank you for the enhancements. I'm looking to implement better static typing
in version 0.4 . Most likely though I will be use the HTML5 spec (you reference
html4 above).
Thanks again
Original comment by [email protected]
on 2 Apr 2012 at 5:50
Perhaps there could be both Html4Builder and Html5Builder?
Original comment by [email protected]
on 2 Apr 2012 at 5:55
Original comment by [email protected]
on 28 Jun 2012 at 3:50
- Added labels: Type-Enhancement
- Removed labels: Type-Defect