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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:43:29+00:00 2026-05-21T17:43:29+00:00

OK, I’m asking for it, I know. Please bear with me. I have a

  • 0

OK, I’m asking for it, I know. Please bear with me.

I have a <form> that is embedded in between some table row tags, something like this:

<table>
  <tr>
    <td>foo</td>
  </tr>
  <form>
  <tr>
    <td>bar</td>
  </tr>
  </form>
</table>

I know that is illegal placement of the form tag, but all the browsers I’ve tried will allow it anyhow. I don’t have control over the design of this code, so please bear with me.

When I load this page with JQuery and the JQuery UI.Layout plugin (see http://layout.jquery-dev.net/index.cfm ), the table row(s) that are enclosed by the form tag are no longer rendered. I assume because forms don’t have any display properties themselves that either JQuery or the UI.Layout plugin are forcing those rows to inherit that lack of display.

Firebug shows those rows grayed out and indented one level below the form tag, which corresponds to their (lack of) display I think. Interestingly, when I don’t use any of the JQuery stuff, Firebug shows those rows as NOT indented, but instead at the SAME level as the form tag that encloses them (and of course they are not grayed out) — OH I also just noticed Firebug doesn’t even show a closing form tag at all in this case.

I’m unsure if it’s JQuery, the UI.Layout plugin, or something I’ve done with JavaScript that has caused this, and I’m still digging around, but there’s a lot of code in those libraries, so I’d really appreciate pointers if anyone has any.

Is there a way to prevent this, or possibly force those table rows to have some display? Maybe the form tag needs some display property placed on it so those rows inherit it?

I’m a big advocate of standards-compliant code, but sometimes the boss just won’t listen. So please spare the “fix your code” comments if that’s all you’ve got. I appreciate it, but that’s not what I’m asking here.

  • 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-21T17:43:30+00:00Added an answer on May 21, 2026 at 5:43 pm

    It looks like this issue is caused by the fact that the page is being loaded via a XMLHttpRequest (“AJAX”) instead of being rendered statically (and this may or may not be a Firefox issue only). It seems to be the same as this:

    http://forums.mozillazine.org/viewtopic.php?f=25&t=645220&start=0&st=0&sk=t&sd=a

    That thread also didn’t have any resolution beside resolving the malformed HTML. It’s quite annoying that the browser will render it if it is passed via a “normal” browser page request, but not when requested asynchronously and fed into the DOM via script.

    Ah well, buggy code begets buggy behavior, eh?

    For lack of anything else (well, there are a few JavaScript-based ideas floating around out there (such as http://federmanscripts.com/2010/01/12/form-and-table-row-nesting-workaround/ ), but these don’t suit my context), I’m going with the solution proposed as a comment above by the user “mu is too short”.

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

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
I have a French site that I want to parse, but am running into
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
That's pretty much it. I'm using Nokogiri to scrape a web page what has
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I want to count how many characters a certain string has in PHP, but
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti

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.