11 public $type =
'strictblockquote';
29 $result = parent::validateChildren($tokens_of_children, $config, $context);
32 if (
$result ===
false)
return array();
35 $def = $config->getHTMLDefinition();
43 foreach (
$result as $i => $token) {
53 $ret[] = $block_wrap_start;
60 if (isset($this->elements[$token->name])) {
62 $ret[] = $block_wrap_end;
72 if ($is_inline)
$ret[] = $block_wrap_end;
76 private function init($config) {
78 $def = $config->getHTMLDefinition();
81 $this->fake_elements = $def->info_content_sets[
'Flow'];
82 $this->fake_elements[
'#PCDATA'] =
true;
Concrete end token class.
Definition that allows a set of elements, but disallows empty children.
Concrete start token class.
Takes the contents of blockquote when in strict and reformats for validation.
getAllowedElements($config)
Concrete empty token class.
validateChildren($tokens_of_children, $config, $context)
Concrete text token class.
$elements
Lookup table of allowed elements.