Item2259: Anything inside HTML tag BIG gets discarded
Current State: Closed
Released In: 1.1.0
Target Release: minor
Any text pasted into the WysiwygPlugin
editor containing the HTML tag BIG
will be discarded.
- create any simple valid XHTML webpage
- include some text inside a
- view the web page with Firefox
- copy the page and paste it into a new wiki page in Foswiki 1.0.7
- save the page
- observe how the text inside the BIG tag is gone bye-bye
In #foswiki irc:
[10:47] <SinnerP> any area inside <big>....</big> gets discarded
[10:48] <MTempest> SinnerP: Ooh - I see. That is nasty. Please create a task for this, if you haven't already
[10:49] <SinnerP> ok
[10:49] <MTempest> Please mark it applicable to the WysiwygPlugin extension.
- 15 Oct 2009
Confirmed, raising to urgent.
- 15 Oct 2009
I do not think pasting in HTML BIG is that normal and for sure we have 100 more html cases that do not survive. It cannot be a release blocker for 1.0.
Downgrading to normal.
- 18 Oct 2009
discards the content of <big> tags. That is what
does. I do not know why this was done, though.
There are several tags that are discarded - contents and all - and I do not think they should be:
| Tag that is discarded
|| Similar or related tags that are not discarded
|| small tt i b
|| thead tbody tfoot
|| frameset frame
|| em strong cite kbd samp dfn
Crawford - what breaks if we change WysiwygPlugin
these tags instead of discarding them?
- 20 Nov 2009
It seems like a mistake. My reaction is that
would be appropriate. Perhaps over the years this is the fragments of an effort to avoid HTML tags in topics, or maybe at some point these tags crashed the WYSIWYG editor of the day?
Moving forward, such efforts should lie in what we're talking about in WysiwygContentPolicies
. I'm sorry I can't offer more clear insight than that.
- 30 Nov 2009
Okay - I changed it to flatten the tag i.e. keep the content but remove the tag itself. If the <big> tag is important, then I suggest the tag should be wrapped in a <literal> or <sticky> block.
Fixed in 1.1
- 26 Jun 2010