diff options
author | Andrew Dolgov <[email protected]> | 2012-10-28 12:21:21 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-10-28 12:21:21 +0400 |
commit | acccafe3daee1c94064202d38fa244bd5a15c2e7 (patch) | |
tree | 11407af73571632e239e1de01c4a7dfb7664503d /lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tables.php | |
parent | 17525d012750697283a3758b0fe00c0a6945947f (diff) |
replace htmlpurifier with htmlawed
Diffstat (limited to 'lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tables.php')
-rw-r--r-- | lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tables.php | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tables.php b/lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tables.php deleted file mode 100644 index f314ced3f..000000000 --- a/lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tables.php +++ /dev/null @@ -1,66 +0,0 @@ -<?php - -/** - * XHTML 1.1 Tables Module, fully defines accessible table elements. - */ -class HTMLPurifier_HTMLModule_Tables extends HTMLPurifier_HTMLModule -{ - - public $name = 'Tables'; - - public function setup($config) { - - $this->addElement('caption', false, 'Inline', 'Common'); - - $this->addElement('table', 'Block', - new HTMLPurifier_ChildDef_Table(), 'Common', - array( - 'border' => 'Pixels', - 'cellpadding' => 'Length', - 'cellspacing' => 'Length', - 'frame' => 'Enum#void,above,below,hsides,lhs,rhs,vsides,box,border', - 'rules' => 'Enum#none,groups,rows,cols,all', - 'summary' => 'Text', - 'width' => 'Length' - ) - ); - - // common attributes - $cell_align = array( - 'align' => 'Enum#left,center,right,justify,char', - 'charoff' => 'Length', - 'valign' => 'Enum#top,middle,bottom,baseline', - ); - - $cell_t = array_merge( - array( - 'abbr' => 'Text', - 'colspan' => 'Number', - 'rowspan' => 'Number', - ), - $cell_align - ); - $this->addElement('td', false, 'Flow', 'Common', $cell_t); - $this->addElement('th', false, 'Flow', 'Common', $cell_t); - - $this->addElement('tr', false, 'Required: td | th', 'Common', $cell_align); - - $cell_col = array_merge( - array( - 'span' => 'Number', - 'width' => 'MultiLength', - ), - $cell_align - ); - $this->addElement('col', false, 'Empty', 'Common', $cell_col); - $this->addElement('colgroup', false, 'Optional: col', 'Common', $cell_col); - - $this->addElement('tbody', false, 'Required: tr', 'Common', $cell_align); - $this->addElement('thead', false, 'Required: tr', 'Common', $cell_align); - $this->addElement('tfoot', false, 'Required: tr', 'Common', $cell_align); - - } - -} - -// vim: et sw=4 sts=4 |