Hi,
<table border id="test">
<tr>
<td>Überschrift</td>
</tr>
</table>nun möchte ich per Javascript eine Zeile hinzufügen:
Je nach Browser ist ggf. zu berücksichtigen, daß intern noch ein tbody-Element in der Tabelle steht.
Bei HTML 4.01 ist dieses tbody-Element ggf. implizit gegeben (beide tags des tbody-Elements sind optional).
Siehe Elementdefinition von table:
<!ELEMENT TABLE - -
(CAPTION?, (COL*|COLGROUP*), THEAD?, TFOOT?, TBODY+)>
Erst thead, tfoot und tbody enthalten die Zeilen:
<!ELEMENT THEAD - O (TR)+ -- table header -->
<!ELEMENT TFOOT - O (TR)+ -- table footer -->
<!ELEMENT TBODY O O (TR)+ -- table body -->
wobei thead und tfoot nicht vorhanden sein müssen.
cu,
Andreas
--
Der Optimist: Das Glas ist halbvoll. - Der Pessimist: Das Glas ist halbleer. - Der Ingenieur: Das Glas ist doppelt so groß wie nötig.
http://mud-guard.de/? http://www.andreas-waechter.de/ http://www.helpers.de/
Der Optimist: Das Glas ist halbvoll. - Der Pessimist: Das Glas ist halbleer. - Der Ingenieur: Das Glas ist doppelt so groß wie nötig.
http://mud-guard.de/? http://www.andreas-waechter.de/ http://www.helpers.de/