HTMLPurifier_ChildDef_Table Klassenreferenz

HTMLPurifier_ChildDef_Table Klassenreferenz
Klassendiagramm für HTMLPurifier_ChildDef_Table:
Zusammengehörigkeiten von HTMLPurifier_ChildDef_Table:

Öffentliche Methoden

 __construct ()
 
 validateChildren ($children, $config, $context)
 
- Öffentliche Methoden geerbt von HTMLPurifier_ChildDef
 getAllowedElements ($config)
 
 validateChildren ($children, $config, $context)
 

Datenfelder

 $allow_empty = false
 
 $type = 'table'
 
 $elements
 
- Datenfelder geerbt von HTMLPurifier_ChildDef
 $type
 
 $allow_empty
 
 $elements = array()
 

Ausführliche Beschreibung

Definition for tables. The general idea is to extract out all of the essential bits, and then reconstruct it later.

This is a bit confusing, because the DTDs and the W3C validators seem to disagree on the appropriate definition. The DTD claims:

 (CAPTION?, (COL*|COLGROUP*), THEAD?, TFOOT?, TBODY+)

But actually, the HTML4 spec then has this to say:

 The TBODY start tag is always required except when the table
 contains only one table body and no table head or foot sections.
 The TBODY end tag may always be safely omitted.

So the DTD is kind of wrong. The validator is, unfortunately, kind of on crack.

The definition changed again in XHTML1.1; and in my opinion, this formulation makes the most sense.

 caption?, ( col* | colgroup* ), (( thead?, tfoot?, tbody+ ) | ( tr+ ))

Essentially, we have two modes: thead/tfoot/tbody mode, and tr mode. If we encounter a thead, tfoot or tbody, we are placed in the former mode, and we must wrap any stray tr segments with a tbody. But if we don't run into any of them, just have tr tags is OK.

Definiert in Zeile 32 der Datei Table.php.

Beschreibung der Konstruktoren und Destruktoren

__construct ( )

Definiert in Zeile 57 der Datei Table.php.

Dokumentation der Elementfunktionen

validateChildren (   $children,
  $config,
  $context 
)
Parameter
array$children
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Rückgabe
array

Definiert in Zeile 67 der Datei Table.php.

Dokumentation der Datenelemente

$allow_empty = false

bool

Definiert in Zeile 37 der Datei Table.php.

$elements
Initialisierung:
= array(
'tr' => true,
'tbody' => true,
'thead' => true,
'tfoot' => true,
'caption' => true,
'colgroup' => true,
'col' => true
)

array

Definiert in Zeile 47 der Datei Table.php.

$type = 'table'

string

Definiert in Zeile 42 der Datei Table.php.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:




Korrekturen, Hinweise und Ergänzungen

Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.