Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6697139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:25:28+00:00 2026-05-26T06:25:28+00:00

The following web page will render with unexpected result in Firefox 3.5. The first

  • 0

The following web page will render with unexpected result in Firefox 3.5. The first <address> element will not have a pink background, but the second will. Is this only happening for me? Is my code incorrect? Or is it a bug?

Edit: This also happens in Firefox 3.6

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Firefox 3.5 bug!</title>
    <style>
address
{
    background: pink;
}
    </style>
</head>
<body>

<address>
    <ul>
        <li>This will NOT have a pink background in Firefox 3.5</li>
    </ul>
</address>

<address>
    <p>But this will</p>
</address>

</body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:25:29+00:00Added an answer on May 26, 2026 at 6:25 am

    It’s not really a bug, either in your html or the browser. It’s more that you’re using HTML5 and Firefox 3.x wasn’t sufficiently HTML5 aware.

    In HTML 4.01, the Address element was defined as:

    <!ELEMENT ADDRESS - - (%inline;)* -- information on author -->
    

    so it only allowed inline content. <ul> isn’t inline content, so Firefox 3.x, in its broken markup handling rules decided that it wouldn’t allow the <ul> to be inside the <address>.

    Before HTML5, error handling behaviour wasn’t standardized, and other browsers chose different error handling behaviour which allowed the <ul> to be inside the <address>.

    When HTML5 came along, it changed the validity rules, so in that, the address element is defined as:

    4.4.10 The address element
      Content model:
        Flow content, but with no heading content descendants, no sectioning 
        content descendants, and no header, footer, or address element descendants.
    

    In this <ul> is valid within <address>, so the HTML5 parsing rules were defined such that <ul> will be placed inside an <address> element by the parser.

    Firefox 4 and later uses an HTML5 parser, so your problem doesn’t arise there.

    And the moral of the story is, don’t expect old browsers to support your modern markup.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have seen a web page source code containing the following css declaration at
I have the following textbox server control in my web page: <asp:TextBox ID=txtZip runat=server
I have an application web.xml with the following entry: <error-page> <error-code>404</error-code> <location>/system_files/error/p_notfound.jsp</location> </error-page> However,
I have for example the following URL: index.php?q=Content/Uploads/Images/1.jpg I want so that page will
I have an ASP.NET web page with a databound RadioButtonList. I do not know
I have created a web page which will add an Indian rupee symbol to
Following a MSDN web page, I am trying to manually run mstest within my
I'm using the following in the web page but can't get a response from
I've got the following JavaScript on my web page... 64 var description = new
I'm reloading a web page that has the following code: <label for=showimage>Show Image</label> <input

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.