This project is archived and is in readonly mode.

#827 ✓invalid
Adeel Ahmad Khan

In FF tables are stripped from html returned by Request.HTML

Reported by Adeel Ahmad Khan | January 9th, 2010 @ 09:16 AM | in 1.3.0 rc2 (closed)

        var req = new Request.HTML({
          url: './load_files.php',
          method: 'get',
          onSuccess: function(tree) {
            $('table').adopt('html', tree);

The HTML returned by the server contains a table but in Firefox 3 the table/tr/td tags are stripped and substituted by whitespace. It works fine in Safari and Chrome.

Comments and changes to this ticket

  • Adeel Ahmad Khan

    Adeel Ahmad Khan January 9th, 2010 @ 09:34 AM


              onSuccess: function(tree, els, html) {
                $('table').adopt('html', Elements.from(html));
  • fakedarren

    fakedarren February 8th, 2010 @ 01:42 PM

    • State changed from “new” to “open”
    • Assigned user set to “fakedarren”
    • Milestone changed from 2.0 to 1.3.0 rc2

    Tables are odd creatures. Can I ask if you are returning tables with tbody elements?


    If not, technically the HTML is invalid - so Firefox may just cut it out. I'm not sure if it's Request's job to fix this - and unfortunately we cannot have a dependency on Element.From (from -more) in Request.HTML (in -core).

    Also what happens if you use

    onSuccess: function(tree, els, html){
      $('table').set('html', html);
  • fakedarren

    fakedarren February 9th, 2010 @ 09:05 PM

    • State changed from “open” to “invalid”

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket