Re: T5.2.6 HTML 5 validation fails

2011-08-19 Thread Borut Bolčina
Thanks,

with small modifications to XhtmlMarkupModel now the web app is HTML5 valid.


Cheers,
borut

2011/8/18 nillehammer tapestry.nilleham...@winfonet.eu

 Hi Borut,

 You can provide your custom implementation of MarkupModel to do just that.
 As a start look at Tapesty's DefaultMarkupModel for inspiration. And
 there's
 an article in the wiki:
 http://wiki.apache.org/tapestry/Tapestry5HowToXhtml
 It refers to T5.1 though so I don't know whether the code is 100% valid.

 Cheers nillehammer

 -
 http://www.winfonet.eu
 --
 View this message in context:
 http://tapestry.1045711.n5.nabble.com/T5-2-6-HTML-5-validation-fails-tp4712132p4713247.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




T5.2.6 HTML 5 validation fails

2011-08-18 Thread Borut Bolčina
Hello,

just out of curiosity I tried validating one Tapestry 5.2.5 page against
HTML and  some elements get rendered like this

link type=text/css rel=stylesheet
href=/foo-bar/assets/1.0-SNAPSHOT/core/default.css/link
or
meta content=Apache Tapestry Framework (version 5.2.6)
name=generator/meta


To be HTML 5 valid, it should render like this

link type=text/css rel=stylesheet
href=/foo-bar/assets/1.0-SNAPSHOT/core/default.css/
and
meta content=Apache Tapestry Framework (version 5.2.6) name=generator/

The HTML begins with
!DOCTYPE html

I tried validating with Firefox plugin (
https://addons.mozilla.org/sl/firefox/addon/html-validator/) and at
http://validator.w3.org

Is it possible to configure this element closing?

Regards,
Borut


Re: T5.2.6 HTML 5 validation fails

2011-08-18 Thread nillehammer
Hi Borut,

You can provide your custom implementation of MarkupModel to do just that.
As a start look at Tapesty's DefaultMarkupModel for inspiration. And there's
an article in the wiki: http://wiki.apache.org/tapestry/Tapestry5HowToXhtml
It refers to T5.1 though so I don't know whether the code is 100% valid.

Cheers nillehammer

-
http://www.winfonet.eu
--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-2-6-HTML-5-validation-fails-tp4712132p4713247.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org