You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Lenny Primak <lp...@hope.nyc.ny.us> on 2011/10/23 08:00:54 UTC
[T5.3-beta-26] html 5 doctype - does it work?
I am trying to do some HTML5 on my web site.
Here is what I see in the browser (Safari) output:
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
....
I don't think that's correct, is it?
--------------- tml ----------------------------
<!DOCTYPE html>
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd"
xmlns:p="tapestry:parameter" xmlns:f="tapestry-library:flowlogix">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<title>Erase Junk Mail</title>
</head>
<body>
hello
</body>
</html>
---------- Java (blank)
Re: [T5.3-beta-26] html 5 doctype - does it work?
Posted by Lenny Primak <lp...@hope.nyc.ny.us>.
Can't the 'original' doctype be saved in the request object and then restored
default markup writer? Seems like that would be a good default behavior
that preserves the original object's doctype.
On Oct 23, 2011, at 12:11 PM, Howard Lewis Ship wrote:
> I'll have to document this better.
>
> <!doctype html> is expanded to the transitional DTD, to keep the XML
> parser happy (especially about HTML entities) ... but there's no good
> way to filter it out. Also, a missing <!doctype> is treated the same
> as <!doctype html>.
>
> There's a Doctype component that can be used to ensure that the output
> doctype is also <!DOCTYPE html>, which you shoudl probably add to your
> Layout component.
>
> I'll get a FAQ for this put together.
>
> On Sat, Oct 22, 2011 at 11:00 PM, Lenny Primak <lp...@hope.nyc.ny.us> wrote:
>> I am trying to do some HTML5 on my web site.
>>
>> Here is what I see in the browser (Safari) output:
>> !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
>> ....
>>
>> I don't think that's correct, is it?
>>
>> --------------- tml ----------------------------
>> <!DOCTYPE html>
>> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd"
>> xmlns:p="tapestry:parameter" xmlns:f="tapestry-library:flowlogix">
>> <head>
>> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
>> <title>Erase Junk Mail</title>
>> </head>
>> <body>
>> hello
>> </body>
>> </html>
>> ---------- Java (blank)
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5.3-beta-26] html 5 doctype - does it work?
Posted by Howard Lewis Ship <hl...@gmail.com>.
I'll have to document this better.
<!doctype html> is expanded to the transitional DTD, to keep the XML
parser happy (especially about HTML entities) ... but there's no good
way to filter it out. Also, a missing <!doctype> is treated the same
as <!doctype html>.
There's a Doctype component that can be used to ensure that the output
doctype is also <!DOCTYPE html>, which you shoudl probably add to your
Layout component.
I'll get a FAQ for this put together.
On Sat, Oct 22, 2011 at 11:00 PM, Lenny Primak <lp...@hope.nyc.ny.us> wrote:
> I am trying to do some HTML5 on my web site.
>
> Here is what I see in the browser (Safari) output:
> !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
> ....
>
> I don't think that's correct, is it?
>
> --------------- tml ----------------------------
> <!DOCTYPE html>
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd"
> xmlns:p="tapestry:parameter" xmlns:f="tapestry-library:flowlogix">
> <head>
> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
> <title>Erase Junk Mail</title>
> </head>
> <body>
> hello
> </body>
> </html>
> ---------- Java (blank)
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
(971) 678-5210
http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org