New issue 190 by goo...@sebastian-joseph.de: Page edit form breaks when
title contains html attributes
http://code.google.com/p/wolfcms/issues/detail?id=190
What steps will reproduce the problem?
1. Allow HTML in titles
2. Insert for example '<abbr title="Content Management System">CMS</abbr>'
as page title
3. Save the page and revisit its edit form.
What is the expected output? What do you see instead?
The expected output is the full string but Wolf seems to forget to quote
the quote-signs, so the page will break.
What version of the product are you using? On what operating system?
Seems to be 0.5.5, but not sure.
Confirmed on 0.6.0.
I do question its usefulness:
what is the point of allowing HTML in the title anyway?
Its not valid to use HTML tags between the <title> tags, not according to
the (X)HTML specification anyway.
And for all other cases one should do:
<foo><?php $this->title(); ?></foo>
I think the option for allowing HTML in page titles should be removed.
It is useful if you want to make your page more user friendly. So if you
use e.g. CMS in the title, you could place an <abbr title="Content
Management System"></abbr> around it. For using in the document title, you
could then filter it with strip_tags. I use the title for display it as
first level headline and so it is a small help. Another possibility is that
you could place small icons in it or something like that. ;)
Comment #4 on issue 190 by martijn....@gmail.com: Page edit form breaks
when title contains html attributes
http://code.google.com/p/wolfcms/issues/detail?id=190
(No comment was entered for this change.)