Text of the following form:
This is foo style="something" bar.
gets filtered into:
This is foo
It seems to happen in most modules (comment, book, ... but not in blog).
Text of the following form:
This is foo style="something" bar.
gets filtered into:
This is foo
It seems to happen in most modules (comment, book, ... but not in blog).
Comments
Comment #1
ax commentedfrom the admin-docs(pages) (admin > settings and filters > content filters):
Allowed HTML tags:
If enabled, optionally specify tags which should not be stripped. 'STYLE' attributes, 'ON' attributes and unclosed tags are always stripped.
Comment #2
(not verified) commentedIs there a reason this is hardcoded? I could see some use for style at least on a site where the people with post access are trusted. Wouldn't this be better as an option?
Comment #3
(not verified) commentedNo feedback so I will try out a few things and see what I can work out.
Comment #4
Steven commentedStyle is a very dangerous attribute, so either we filter it out completely, or we filter the CSS attributes and allow only certain ones. An example:
<p style='position: absolute; top: 0px; left; 0px; width: 10000; height: 10000; background-color: white; z-index: 1000;'></p>
Works with almost every block-element in HTML (B, U, I, ...) in IE6, not sure about other browsers.
The fact that even style="" outside of a tag gets filtered is a nasty bug though, e.g; when discussing CSS.
Comment #5
(not verified) commentedFixed.
Comment #6
(not verified) commented