Monday, December 29, 2008

Re: HTML 4 specific CakePHP?

I think Adams answer is the only sane one here, that looks to be the
official way to change tag definitions after the app/config/tags.php
was deprecated almost 2 years ago ( https://trac.cakephp.org/ticket/2081
)... No need to override html helper, no need to pass everything
through htmltidy.

For those who need to scratch their HTML vs XHTML itch, follow the
code...

http://api.cakephp.org/form_8php-source.html#l00818
http://api.cakephp.org/html_8php-source.html#l00541
http://api.cakephp.org/html_8php-source.html#l00045

then, maybe using http://api.cakephp.org/html_8php-source.html#l00183
as a starting point, write something that would switch on the possible
doctypes and override the tags that might be throwing validation
errors for html4, write some test cases to prove correctness and
submit it as an enhancement to https://trac.cakephp.org/. No, it's
not built in, no, it's not broken, it just doesn't do exactly what you
want. Go go open source!

- R

On Dec 28, 6:46 pm, Adam Royle <a...@sleekgeek.com.au> wrote:
> Is it possible that you can just overwrite the tag list with your HTML
> equivalents?
>
> http://bakery.cakephp.org/articles/view/overriding-specific-html-tags...
>
> Cheers,
> Adam
>
> On Dec 29, 8:24 am, gearvOsh <mileswjohn...@gmail.com> wrote:
>
> > I have not found any option or setting for using HTML or XHTML.
>
> > All I have seen is that you can set the Doctype, but even if you set
> > the Doctype as HTML, all the tags are in XHTML.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: