Forum closed. New forum available at http://community.wymeditor.org/

WYMeditor strips out "0"

Support forum for WYMeditor.

WYMeditor strips out "0"

Postby lareclark on Mon Oct 12, 2009 11:29 pm

We use WYMeditor on a custom CMS admin. When I entered a single 0 (with strong tags around it) on a line, followed by a <br />, WYMeditor stripped the 0 and the strong tags. I tried with a 0 in p tags, and WYWeditor stripped out the 0 and the p tags. After experimenting, a '0' surrounded by single quotes was not stripped.

Any ideas why this might happen?

Here's the relevant page: http://wsm.wsu.edu/s/index.php?id=727
Bottom of the sidebar. Note the '0' in single quotes.
lareclark
 
Posts: 2
Joined: Mon Oct 12, 2009 11:18 pm

Re: WYMeditor strips out "0"

Postby lareclark on Tue Oct 13, 2009 6:26 pm

As a followup, I put a non-breaking space after the 0 and it worked.
lareclark
 
Posts: 2
Joined: Mon Oct 12, 2009 11:18 pm

Re: WYMeditor strips out "0"

Postby mr_lundis on Tue Oct 27, 2009 10:34 pm

Hello!
The cause of this is most likely that the html parser interprets the zero as a boolean which evaluates to false, the same is true for empty elements/strings (they evaluate to false). This isn't normally a problem - not a lot of people write only zeroes, but is still a bug, so I've opened [url]https://trac.wymeditor.org/trac/ticket/190]a ticket[/url] for it.

Cheers! ;)
Jonatan Lundin - designer, developer and forum moderator. You should follow me on Twitter!
mr_lundis
 
Posts: 335
Joined: Sun Dec 02, 2007 10:59 am
Location: Sweden


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron