Go Back   Velocity Reviews > Newsgroups > XML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

XML - Invisible Background in Firefox.

 
Thread Tools Search this Thread
Old 05-25-2006, 11:34 PM   #1
Default Invisible Background in Firefox.


Take a look at http://www.geocities.com/jamesqian2001/test.xml .
Basically, there is a bug in Firefox that does not display the
background color/picture for the body tag. Is there any possible
workaround for this?



Sneamia
  Reply With Quote
Old 05-25-2006, 11:55 PM   #2
Peter Flynn
 
Posts: n/a
Default Re: Invisible Background in Firefox.

Sneamia wrote:
> Take a look at http://www.geocities.com/jamesqian2001/test.xml .
> Basically, there is a bug in Firefox that does not display the
> background color/picture for the body tag. Is there any possible
> workaround for this?


Replace output type html with xml. Then you get a purple background.

You're trying to do two conflicting things here, and FF is acting
correctly in refusing to be duped.

If you specify output type html then XSLT will create the output
file in SGML -- the original HTML without Null End Tags. You can
test this by using a standalone XSLT processor and examining the
output, which says <br></br> and <link></link>.

If you specify output type xml then it will create XML.

You are specifying html but then giving the Document Type details
as XHTML. So you have an old-style HTML document masquerading as
XML, or vice versa.

If you want to create output HTML with a DocType Declaration, use
HTML 4.xx or something, and code accordingly.

If you want to output valid XHTML, set the output type to xml.

///Peter
--
XML FAQ: http://xml.silmaril.ie/


  Reply With Quote
Old 05-26-2006, 12:18 AM   #3
Sneamia
 
Posts: n/a
Default Re: Invisible Background in Firefox.

I see.
The background is still a bit funny, but its getting there.
Thanks.

  Reply With Quote
Old 05-26-2006, 12:24 AM   #4
Sneamia
 
Posts: n/a
Default Re: Invisible Background in Firefox.

Yea, I changed that, but only the background for the text is purple.
Why is that? Is there anything else I screwed up on?

  Reply With Quote
Old 05-26-2006, 10:07 PM   #5
Peter Flynn
 
Posts: n/a
Default Re: Invisible Background in Firefox.

Sneamia wrote:
> Yea, I changed that, but only the background for the text is purple.
> Why is that? Is there anything else I screwed up on?


What else ought to be purple? Your CSS says any element with the
class value "site".

///Peter
  Reply With Quote
Old 05-28-2006, 05:32 PM   #6
Sneamia
 
Posts: n/a
Default Re: Invisible Background in Firefox.

Well, the body.
I set the body background as purple, and only the background of the
text is purple.

  Reply With Quote
Old 05-28-2006, 07:18 PM   #7
Peter Flynn
 
Posts: n/a
Default Re: Invisible Background in Firefox.

Sneamia wrote:
> Well, the body.
> I set the body background as purple, and only the background of the
> text is purple.


I think we must be at cross-purposes here. Can you screenshot what
you're seeing and post it somewhere we can all view it. I've put
what I see at http://silmaril.ie/downloads/purple.png

What I'm unclear about in your post is that the body *is* the text.
I don't see what you mean when you say *only* the background of the
text is purple. If body is set to background-color:#CC00FF; then
*all* the window background will be purple. If you're seeing something
else, then I think you should try reinstalling the browser first.

///Peter
--
XML FAQ: http://xml.silmaril.ie/

  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump