Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Inline background-image CSS breaks page HTML

#206

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.

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

State: new
Milestone: none
Assigned to: lux lux

Activity

No comments yet.

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.