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 6390197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:29:50+00:00 2026-05-25T03:29:50+00:00

I am working on fixing a display bug in a friend’s webpage on Firefox

  • 0

I am working on fixing a display bug in a friend’s webpage on Firefox 3.6. It displays correctly in all other browsers. I have narrowed the problem down to this: in most browsers, the HTML is generated and parsed as so:

<section class="sidebar" style="height: 1106px; "><div class="sidebar-widget"><h3     class="sidebar-widget-title">Shopping Cart</h3><div id="sliding_cart" class="shopping-cart-wrapper">
    <p class="empty">
        Your shopping cart is empty<br>
        <a target="_parent" href="https://underwateraudio.com/products-page/" class="visitshop" title="Visit Shop">Visit the shop</a>   
    </p>

</div> </div></section>

<section id="main-content"> ... </section>

However, in Firefox 3.6, the page displays as if the line </div> </div> </section> was not there at all. I looked at it in Firebug and indeed Firefox is taking out that end tag for some reason. I can’t figure out why Firefox 3.6 is stripping out this tag.

If you want to see the page itself, look at https://underwateraudio.com/underwater-audio-faq/. The home page looks fine but all other pages (reached by clicking on the top bar) are broken.

  • 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-25T03:29:51+00:00Added an answer on May 25, 2026 at 3:29 am

    Your sample does not match your page.

    The problem is that you have insufficient </div> tags. Inside the section with class=”sidebar”, there’s three div start tags

     <div class="sidebar-widget">
     <div id="sliding-cart">
     <div class="wpsc_cart_loading">
    

    but only two end div tags and then the end section tag.

    In this situation, modern browsers like Firefox 4 and later follow the HTML5 parsing rules. The relevant one says that when the parser encounters:

    An end tag whose tag name is one of: “address”, “article”, “aside”,
    “blockquote”, “button”, “center”, “details”, “dir”, “div”, “dl”,
    “fieldset”, “figcaption”, “figure”, “footer”, “header”, “hgroup”,
    “listing”, “menu”, “nav”, “ol”, “pre”, “section”, “summary”, “ul”

    If the stack of open elements does not have an element in scope
    with the same tag name as that of the token, then this is a parse
    error; ignore the token.

    Otherwise, run these steps:

    1. Generate implied end tags.

    2. If the current node is not an element with the same tag name
      as that of the token, then this is a parse error.

    3. Pop elements from the stack of open elements until an element
      with the same tag name as the token has been popped from the stack.

    Step 1 has no effect in this case. Step 2 just indicates that something is wrong, but step 3 says infer that there should have been a </div> tag there and then match the </section> tag with its start tag. That’s why your page is treated as OK by other browsers.

    But Firefox 3.x pre-dates the HTML5 parsing algorithm, which means that you are at the mercy of whatever error recovery the browser had in place. You might get lucky, you might not. In this case the missing end div tag causes Firefox to discard the </section> tag because it was not expecting it.

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

Sidebar

Related Questions

I am currently working on fixing a c# codebase which does not have a
I am working on fixing a bug in VB that is giving this error.
While I was working on a feature_branch I ended up fixing a bug for
Currently the page I am working displays fine in Chrome and Firefox, but in
Working on a project at the moment and we have to implement soft deletion
Working with python interactively, it's sometimes necessary to display a result which is some
I am working on fixing older code for my job. It is currently written
I am working (or fixing bugs) on an application which was developed in VS
Here's my scenario: I'm working on fixing bugs in file1 in a local branch.
I have some terribly written ASP.NET code that is just not working right (go

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.