You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported by @alecpl on 21 May 2012 08:42 UTC as Trac ticket #1488485
I see, while html_textarea and html_select use content quotation, html_table doesn't. For consistency we could add TD content quotation too.
html::quote() doesn't allow "double quotation". While this can be useful for folders list selector (indentated with ) this is problematic when we want "double quoting". I found that "double quoted" content fixes TinyMCE related issue #1488483. This one can be worked around because we have
if (!empty($value) && !preg_match('/mce_editor/', $this->attrib[html_textarea::show() but all of this doesn't look consistent.
[[BR]('class']))
in)]
The proposal is to quote content by default and add a special (bool) attribute 'is_escaped' which will disable quoting. This way we can remove preg_replace call from html::quote().
I see, while html_textarea and html_select use content quotation, html_table doesn't. For consistency we could add TD content quotation too.
While table cells can most likely contain HTML content, textareas and select menus don't. That's why there's a difference.
html::quote() doesn't allow "double quotation". While this can be useful for folders list selector (indentated with ) this is problematic when we want "double quoting".
I don't really see a situation where double quotation is desired.
The proposal is to quote content by default and add a special (bool) attribute 'is_escaped' which will disable quoting. This way we can remove preg_replace call from html::quote().
That would mean we have to add 'is_escaped' to almost every call of a container tag. Veto!
Ok. I still think that the check for 'mce_editor' in class attribute doesn't look right where it is. We should replace it with 'is_escaped' attribute.[also still think that "double quotation" prevention looks redundant. If we know what we put to the class, that it is already quoted, we should just tell the class to not quote again. One simple check would be much faster than html::quote() call. Of course, only html_select and html_textarea are involved.
[[BR]([BR]]
[[BR]]
I)][[BR]]
BTW, it looks like we need "double quotation" for TinyMCE textareas.
Reported by @alecpl on 21 May 2012 08:42 UTC as Trac ticket #1488485
in)]
The proposal is to quote content by default and add a special (bool) attribute 'is_escaped' which will disable quoting. This way we can remove preg_replace call from html::quote().
Keywords: template html quoting
Migrated-From: http://trac.roundcube.net/ticket/1488485
The text was updated successfully, but these errors were encountered: