XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence de la classe HTMLPurifier_ChildDef_Table
+ Graphe d'héritage de HTMLPurifier_ChildDef_Table:
+ Graphe de collaboration de HTMLPurifier_ChildDef_Table:

Fonctions membres publiques

 __construct ()
 
 validateChildren ($children, $config, $context)
 
- Fonctions membres publiques hérités de HTMLPurifier_ChildDef
 getAllowedElements ($config)
 

Champs de données

 $allow_empty = false
 
 $type = 'table'
 
 $elements
 
- Champs de données hérités de HTMLPurifier_ChildDef
 $type
 
 $allow_empty
 
 $elements = array()
 

Description détaillée

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.

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( )

Documentation des fonctions membres

◆ validateChildren()

validateChildren (   $children,
  $config,
  $context 
)
Paramètres
array$children
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Renvoie
array

Réimplémentée à partir de HTMLPurifier_ChildDef.

Documentation des champs

◆ $allow_empty

$allow_empty = false

@type bool

◆ $elements

Valeur initiale :
= array(
'tr' => true,
'tbody' => true,
'thead' => true,
'tfoot' => true,
'caption' => true,
'colgroup' => true,
'col' => true
)

@type array

◆ $type

$type = 'table'

@type string


La documentation de cette classe a été générée à partir du fichier suivant :