You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Gunnar Eketrapp <gu...@gmail.com> on 2010/08/31 21:40:05 UTC

T5's closing of meta tags gives browser warnings ....

Hi!

Chrome complains about unmatched </meta> tags.

My .tml file contains meta lines  as ...

     <meta name="description" content="${descriptionTag}" />

... so it must be T5's template processer that splits the <meta /> into
<meta></meta> which seems to be not valid.

Is the any way that I can get rid of these warnings and instruct T5 to do it
differently ?

Thanks in advance!

Gunnar Eketrapp

=======================================================

HTML output ...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta content="Diamondbet hjälper dig att bli en bättre spelare med en
unik pokerskola. Vi skapar vinnare!" name="description"></meta>
    <meta content="Gaming, Poker, Casino, Academy, Delägande, Pokerskola,
Vinnare" name="keywords"></meta>
    ...

Re: T5's closing of meta tags gives browser warnings ....

Posted by Andreas Andreou <an...@di.uoa.gr>.
Well, chrome may complain but what does
http://validator.w3.org/
say ?

On Tue, Aug 31, 2010 at 22:40, Gunnar Eketrapp
<gu...@gmail.com> wrote:
> Hi!
>
> Chrome complains about unmatched </meta> tags.
>
> My .tml file contains meta lines  as ...
>
>     <meta name="description" content="${descriptionTag}" />
>
> ... so it must be T5's template processer that splits the <meta /> into
> <meta></meta> which seems to be not valid.
>
> Is the any way that I can get rid of these warnings and instruct T5 to do it
> differently ?
>
> Thanks in advance!
>
> Gunnar Eketrapp
>
> =======================================================
>
> HTML output ...
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
>    <meta content="Diamondbet hjälper dig att bli en bättre spelare med en
> unik pokerskola. Vi skapar vinnare!" name="description"></meta>
>    <meta content="Gaming, Poker, Casino, Academy, Delägande, Pokerskola,
> Vinnare" name="keywords"></meta>
>    ...
>



-- 
Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
Tapestry PMC / Tacos developer
Open Source / JEE Consulting

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


Re: T5's closing of meta tags gives browser warnings ....

Posted by Inge Solvoll <in...@gmail.com>.
I suppose you could output the meta tags using  MarkupWriter.writeRaw.

void beginRender(MarkupWriter writer) {
writer.writeRaw("<meta name=\"description\" value=\"...\"/>");
}

Put it in a component!

On Tue, Aug 31, 2010 at 9:40 PM, Gunnar Eketrapp
<gu...@gmail.com>wrote:

> Hi!
>
> Chrome complains about unmatched </meta> tags.
>
> My .tml file contains meta lines  as ...
>
>     <meta name="description" content="${descriptionTag}" />
>
> ... so it must be T5's template processer that splits the <meta /> into
> <meta></meta> which seems to be not valid.
>
> Is the any way that I can get rid of these warnings and instruct T5 to do
> it
> differently ?
>
> Thanks in advance!
>
> Gunnar Eketrapp
>
> =======================================================
>
> HTML output ...
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
>    <meta content="Diamondbet hjälper dig att bli en bättre spelare med en
> unik pokerskola. Vi skapar vinnare!" name="description"></meta>
>    <meta content="Gaming, Poker, Casino, Academy, Delägande, Pokerskola,
> Vinnare" name="keywords"></meta>
>    ...
>