You are here: Re: [SMARTY] {strip} smashes DOCTYPE « Smarty Templates Posts « IT news, forums, messages
Re: [SMARTY] {strip} smashes DOCTYPE

Posted by "pobox@verysmall.org" on 09/15/05 12:29

Maximillian Schwanekamp wrote:
> pobox@verysmall.org wrote:
>
> > {strip} smashes it so it looks like that -
> > <!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0
> Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> > Is this a bug or I am doing something wrong?
>
> Since the doctype is metadata, you probably should not be using strip on
> it at all. Better to use it within the <body></body> only, since that
> is where the output is (and typically 99% of the extraneous whitespace).

I see the point and I agree, but I think that's still a bug. Especially
for people who do not have experience with {strip} it might be annoying.
Wouldn't you agree {strip} should be fixed so that people do not have to
think where to put it so that it does not crash something.

I am ready to contribute if this is considered useful.

Iv

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация