HTMLPurifier_Strategy_FixNesting Klassenreferenz

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

Öffentliche Methoden

 execute ($tokens, $config, $context)
 
- Öffentliche Methoden geerbt von HTMLPurifier_Strategy
 execute ($tokens, $config, $context)
 

Ausführliche Beschreibung

Takes a well formed list of tokens and fixes their nesting.

HTML elements dictate which elements are allowed to be their children, for example, you can't have a p tag in a span tag. Other elements have much more rigorous definitions: tables, for instance, require a specific order for their elements. There are also constraints not expressible by document type definitions, such as the chameleon nature of ins/del tags and global child exclusions.

The first major objective of this strategy is to iterate through all the nodes and determine whether or not their children conform to the element's definition. If they do not, the child definition may optionally supply an amended list of elements that is valid or require that the entire node be deleted (and the previous node rescanned).

The second objective is to ensure that explicitly excluded elements of an element do not appear in its children. Code that accomplishes this task is pervasive through the strategy, though the two are distinct tasks and could, theoretically, be seperated (although it's not recommended).

Zu beachten
Whether or not unrecognized children are silently dropped or translated into text depends on the child definitions.
Noch zu erledigen:
Enable nodes to be bubbled out of the structure. This is easier with our new algorithm.

Definiert in Zeile 32 der Datei FixNesting.php.

Dokumentation der Elementfunktionen

execute (   $tokens,
  $config,
  $context 
)
Parameter
HTMLPurifier_Token[]$tokens
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Rückgabe
array|HTMLPurifier_Token[]

Definiert in Zeile 41 der Datei FixNesting.php.

Benutzt HTMLPurifier_Arborize\arborize() und HTMLPurifier_Arborize\flatten().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:


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.