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

  • Home
  • SEARCH
  • 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 7010201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:57:38+00:00 2026-05-27T21:57:38+00:00

For example, in the following HTML … <form name=outerform> <input type=text name=outer1/> <input type=text

  • 0

For example, in the following HTML …

<form name="outerform">
  <input type="text" name="outer1"/>
  <input type="text" name="outer2"/>

  <div>
    <form name="innerform" method="post" action="#">
      <input type="text" name="inner1"/>
    </form>
  </div>
</form>

Firefox will simply throw away the innerform <form> tag, since forms cannot be nested.

I ran into this while patching some legacy code. Someone had placed a <form> tag covering almost the entire body content. When I added my own, more localized <form>, Firefox stripped out the inner tag and my submits were going to the outer form. Since I was doing some jQuery processing to create my submit URL, I thought it was my error. I realized the problem after viewing the rendered HTML in Firebug’s HTML tab.

If the browser, or Firebug had a tab for “ignored HTML”, or some such method I would have picked it out immediately. I can’t simply do a View-Source and paste it into the W3C’s web-based validation service for the following reasons:

  1. For security reasons, the development computer I’m on is not connected to the public Internet.
  2. Firebug’s HTML tab shows the rendered HTML, so the invalid HTML tag has already been removed.

Finally, the editor (Eclipse) is usually where I catch bugs like this. But we use a lot of included files and the Tiles framework, so you only see a fragment of the final HTML page at a time.

  • 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-27T21:57:39+00:00Added an answer on May 27, 2026 at 9:57 pm

    I found my solution. Thanks to Boris Zbarsky’s comment for pointing me in the right direction. The view-source shows the downloaded HTML, but the Firebug DOM inspector shows the rendered HTML (I was mistaking the two in the question). Solution:

    1. Do a view-source and save the file (File 1)
    2. Open Firebug’s DOM inspector, right-click the top-level element <html>, Copy HTML, and save to file (File 2)
    3. Use a diff tool to compare the two files. In a graphical diff tool, File 2 will show gaps where the browser ignored/removed HTML.

    Reformatting the HTML in the two files might make diffing easier.

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

Sidebar

Related Questions

Given the following HTML fragment: <div class=word> <input type=text name=A /> <input type=text name=n
I have the following HTML dinamically generated: ... <tr> <td><input type=text class=q value=5 name=q[]
I am using the following html page: <html> <head> <title>AJAX Example</title> <meta http-equiv=Content-Type content=text/html;
I am trying to match the value of the following HTML snippet: <input name=example
I have the following HTML <select onchange=this.form.submit() name=name> <option value=9995101E01#17201044055PM>9995101E01#17201044055PM</option> <option value=GRR-Example>GRR-Example</option> <option value=admin>admin</option>
Suppose I have the following HTML snippet: <input type=text id=myinput /> Now I want
Consider the following example : HTML: <div class=wrapper> <div class=left>Some text here</div><div class=right>Hello Stack
I have the following html code: <input type=text id=theInput value=/> <a href=# id=theLink>Click me</a>
Given the following HTML example... <div id='div1'>div one</div> <div id='div2'>div two</div> ...I found that
Given the following HTML: <p>This is text and this is an image <img src=http://www.example.com/image.jpg

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.