By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,727 Members | 766 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,727 IT Pros & Developers. It's quick & easy.

. FIREFOX nested-marquee bug

P: 5
The following HTML marquee code
works better in Microsoft Internet Explorer,
breaks (in more than one way) in Mozzila Firefox
Expand|Select|Wrap|Line Numbers
  1. <pre>------------------------------------------------- start HTML code ------------------------------
  2.  
  3. <marquee>  
  4.                     <marquee width=100% direction=up>
  5.            <CENTER><marquee width=50% BGCOLOR=ORANGE>INNER 1</marquee> <br>
  6. <CENTER><marquee  width=60% BGCOLOR=BLUE STYLE="text-align:center">INNER  2 </marquee><br>
  7.            <CENTER><marquee width=50% BGCOLOR=ORANGE>INNER 3</marquee><br>
  8.                     </marquee>
  9. </marquee>
  10.  
  11. <pre>
  12.  
  13.  
  14.  
  15.  
  16.  
  17. <img src=http://geometrica.tripod.com/dantelle.png>
  18.  
  19.  
  20.  
  21.  
  22. this is the llllllllllllllllllllllllllllast line
  23.  
---------------------------------------------- end HTML code ------------------------------
Oct 17 '08 #1
Share this Question
Share on Google+
5 Replies


Expert 100+
P: 397
Document content is HTML Proprietary. Validate the markup.
Expand|Select|Wrap|Line Numbers
  1. Warning: <marquee> is not approved by W3C; Warning: missing <!DOCTYPE> declaration; Warning: nested emphasis <marquee>; Warning: trimming empty <marquee>
  2. <marquee>
  3. Warning: <marquee> is not approved by W3C; Warning: inserting implicit <marquee>; Warning: trimming empty <marquee>
  4. <marquee width=100% direction=up>
  5. Warning: <marquee> is not approved by W3C; Warning: missing </center>; Warning: <marquee> attribute "bgcolor" has invalid value "ORANGE"
  6. <CENTER><marquee width=50% BGCOLOR=ORANGE>INNER 1</marquee> <br>
  7. Warning: <marquee> is not approved by W3C; 
  8. Warning: missing </center>
  9. <CENTER><marquee width=60% BGCOLOR=BLUE STYLE="text-align:center">INNER 2 </marquee><br>
  10. Warning: <marquee> is not approved by W3C; Warning: missing </center>; Warning: <marquee> attribute "bgcolor" has invalid value "ORANGE"
  11. <CENTER><marquee width=50% BGCOLOR=ORANGE>INNER 3</marquee><br>
  12. Warning: discarding unexpected </marquee>
  13. </marquee>
  14. Warning: discarding unexpected </marquee>
  15. </marquee> 
  16.  
Oct 17 '08 #2

drhowarddrfine
Expert 5K+
P: 7,435
Well, first of all, the marquee tag is not part of the HTML standard and never has been so I'm not surprised if something doesn't work. iirc, this was a Microsoft invention from the 90s.
Oct 17 '08 #3

Expert 100+
P: 397
All versions of Internet Explorer need a doctype. The doctype they need for proprietary html "marquee" is:
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2. "http://www.w3.org/TR/html4/loose.dtd">
  3.  
Validate to that doctype. Once that is done, or as close to it as you are able to achieve, bring it back if the proprietary html "marquee" does not work (render as intended) in compliant browsers -- among them -- Opera, Safari, and Firefox. Better yet: Remember, not to forget, that this is the year of our Lord 2008-- not 1998. And that, perhaps, you could explore contemporary means to achieve your goal. Or could you?
Oct 18 '08 #4

P: 5
http://www.w3.org/TR/css3-marquee/
Oct 18 '08 #5

drhowarddrfine
Expert 5K+
P: 7,435
First, you are trying to use html. What you linked to is CSS.
Second, that is a Marquee module, not a marquee property, though there is a marquee-style.
Third, that is still in draft form and I'm not sure which browsers support it. Opera does so I think Safari would, too. IE definitely will not.
Oct 18 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.