#206 new
Jamieson Christian

Inline background-image CSS breaks page HTML

Reported by Jamieson Christian | July 27th, 2011 @ 12:15 PM

When editing a page, if you add "background-image" to the inline style for an element (either through the WYSIWYG or Source view), Sitellite adds double quotes around the URL, which breaks the HTML.

So this...

<p style="background-image:url(background.gif)">

...becomes this...

<p style="background-image:url("background.gif")">

Now that the HTML is invalid, the CMS subsequently tries to "fix" the tag structure, resulting in this:

<p style="background-image:url("></p>background.gif")">

The URL itself, having been ousted from the tag, is now visible on the page as plain text.

Even if the URL is encapsulated in single quotes in Source view, Sitellite immediately replaces the single quotes with double quotes. Thus, there appears to be no workaround to prevent the CMS from mangling the HTML.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Sitellite web content management system.

People watching this ticket

Pages