jatl icon indicating copy to clipboard operation
jatl copied to clipboard

Extended HtmlBuilder

Open GoogleCodeExporter opened this issue 9 years ago • 5 comments

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

GoogleCodeExporter avatar May 11 '15 02:05 GoogleCodeExporter

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

GoogleCodeExporter avatar May 11 '15 02:05 GoogleCodeExporter

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

GoogleCodeExporter avatar May 11 '15 02:05 GoogleCodeExporter

Perhaps there could be both Html4Builder and Html5Builder?

Original comment by [email protected] on 2 Apr 2012 at 5:55

GoogleCodeExporter avatar May 11 '15 02:05 GoogleCodeExporter

Most likely that will be the case.

Original comment by [email protected] on 2 Apr 2012 at 5:56

GoogleCodeExporter avatar May 11 '15 02:05 GoogleCodeExporter

Original comment by [email protected] on 28 Jun 2012 at 3:50

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

GoogleCodeExporter avatar May 11 '15 02:05 GoogleCodeExporter