Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #22713

Re: Duplicating the last row of a Table

Message-ID <40893054.2jCVQOIeXU@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2014-01-19 14:41 +0100
Subject Re: Duplicating the last row of a Table
Newsgroups comp.lang.javascript
References <ZemAs3VzQa2SFwhs@invalid.uk.co.demon.merlyn.invalid> <bju1j4Fjf5sU1@mid.individual.net> <31598702.t5zLgSxMMz@PointedEars.de> <6dadnQbJAYKO5UbPnZ2dnUVZ_vadnZ2d@westnet.com.au>

Show all headers | View raw


RobG wrote:

> On 18/01/2014 9:53 pm, Thomas 'PointedEars' Lahn wrote:
>> I am using “last_row.parentNode” instead of “table” because the parent
>> node may be a “tbody” element node.
> 
> That is a very good idea, since the parent of a TR must be a table
> section element, not a table.
>
> Many browsers allow the use of a table element as if it was a table
> section

How did you get these ideas?

> ([…] appending a row to a table will add it to the last TBODY
> element), though many versions of IE do not (the row must be explicitly
> added to a TBODY, THEAD or TFOOT).

I can confirm this for table.appendChild() vs. tableSection.appendChild() 
and

  - a table with explicit “thead”, “tfoot”, and “tbody” elements in the
    markup (the features table of the ECMAScript Support Matrix [1]), and

  - a dynamically created table (a “tbody” element had to be appended as
    its child explicitly, and the row added to *that*, to be displayed)

in IE 6.0.2800.1106 on Wine XP.  It should not apply for other ways to add 
table rows, and not for any version that supports HTML5.

_________
[1] <http://PointedEars.de/es-matrix#features>
-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Duplicating the last row of a Table Dr J R Stockton <reply1400@merlyn.demon.co.uk.invalid> - 2014-01-17 21:44 +0000
  Re: Duplicating the last row of a Table Zlatko Duric <zladuric@gmail.com> - 2014-01-18 01:52 +0100
    Re: Duplicating the last row of a Table Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-18 12:53 +0100
      Re: Duplicating the last row of a Table RobG <rgqld@iinet.net.au> - 2014-01-19 17:00 +1000
        Re: Duplicating the last row of a Table Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-19 14:41 +0100
  Re: Duplicating the last row of a Table "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-01-18 12:16 +0100
    Re: Duplicating the last row of a Table Dr J R Stockton <reply1400@merlyn.demon.co.uk.invalid> - 2014-01-19 17:00 +0000
  Re: Duplicating the last row of a Table Danny <dann90038@gmail.com> - 2014-01-18 11:32 -0800

csiph-web