> Try to use such url in the first place and your problem should be solved.
I did use a quoted url in the first place !
=> background-image: url('rack a.jpg')
On 14 Feb, 00:02, Klaus Hartl <[email protected]> wrote:
> Go ahead and file a bug at Mozilla. This has nothing to do with
> jQuery.
>
> The CSS spec requires to escape a space for unquoted urls and a quick
> test in FF3 revealed that the following works fine:
>
> style="background-image: url(load\ ing.gif)"
>
> Try to use such url in the first place and your problem should be
> solved.
>
> --Klaus
>
> On 13 Feb., 23:30, weepy <[email protected]> wrote:
>
> > Here's an example that breaks in Firefox :
>
> > <div id=b>
> > <div id=a style="width:100px; height: 100px; background-image: url
> > ('rack a.jpg') "></div>
> > </div>
>
> > <script>
> > window.onload = function() {
> > var x = document.getElementById("b")
> > // image visible
> > x.innerHTML = x.innerHTML
> > // image not visible}
>
> > </script>
>
> > On 13 Feb, 21:55, "[email protected]" <[email protected]> wrote:
>
> > > As Klaus said, it isn't a bug. It is just how a browser will
> > > 'normalize' the html. And actually, we're talking about CSS. CSS 2.1
> > > to be exact, and as I pointed out, the W3C specifically states that
> > > quotes are optional. Therefore, a browser can normalize the quotes
> > > however they want. That being said, it can really suck when a browser
> > > - *cough*, IE - does that . When returning the inner html (.html
> > > ()/.innerHTML) of an element, IE won't return valid HTML in accordance
> > > to the given doctype. It will return html with tags represented in all
> > > caps and no quotes around attribute values.
>
> > > -Trey
>
> > > On Feb 13, 6:38 pm, Klaus Hartl <[email protected]> wrote:
>
> > > > On 13 Feb., 01:03, weepy <[email protected]> wrote:
>
> > > > > I would still expect that the string you get back from the dom would
> > > > > be valid html.
>
> > > > Where is that invalid HTML?
>
> > > > --Klaus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---