コード例 #1
0
ファイル: Li.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     // "value" attribute for "li" which are children of "ol" elements.
     if ($this->getParent() instanceof Ol) {
         $liAllowedAttributes = array('/^value$/i' => Attribute::INT);
         return array_merge($liAllowedAttributes, parent::getAllowedAttributes());
     }
     return parent::getAllowedAttributes();
 }
コード例 #2
0
ファイル: Details.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $detailsAllowedAttributes = array('/^open$/i' => Attribute::BOOL);
     return array_merge($detailsAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #3
0
ファイル: Body.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $bodyAllowedAttributes = array('/^onafterprint$/i' => Attribute::JS, '/^onbeforeprint$/i' => Attribute::JS, '/^onbeforeunload$/i' => Attribute::JS, '/^onhashchange$/i' => Attribute::JS, '/^onlanguagechange$/i' => Attribute::JS, '/^onmessage$/i' => Attribute::JS, '/^onoffline$/i' => Attribute::JS, '/^ononline$/i' => Attribute::JS, '/^onpagehide$/i' => Attribute::JS, '/^onpageshow$/i' => Attribute::JS, '/^onpopstate$/i' => Attribute::JS, '/^onrejectionhandled$/i' => Attribute::JS, '/^onstorage$/i' => Attribute::JS, '/^onunhandledrejection$/i' => Attribute::JS, '/^onunload$/i' => Attribute::JS);
     return array_merge($bodyAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #4
0
ファイル: Ins.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $insAllowedAttributes = array('/^cite$/i' => Attribute::URI, '/^datetime$/i' => Attribute::CS_STRING);
     return array_merge($insAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #5
0
 protected function getAllowedAttributes()
 {
     $fieldsetAllowedAttributes = array('/^disabled$/i' => Attribute::BOOL, '/^form$/i' => Attribute::CS_STRING, '/^name$/i' => Attribute::CS_STRING);
     return array_merge($fieldsetAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #6
0
ファイル: Script.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $scriptAllowedAttributes = array('/^src$/i' => Attribute::URI, '/^type$/i' => Attribute::CS_STRING, '/^charset$/i' => Attribute::CS_STRING, '/^async$/i' => Attribute::BOOL, '/^defer$/i' => Attribute::BOOL, '/^crossorigin$/i' => Attribute::CS_STRING, '/^nonce$/i' => Attribute::CS_STRING);
     return array_merge($scriptAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #7
0
 protected function getAllowedAttributes()
 {
     $blockquoteAllowedAttributes = array('/^cite$/i' => Attribute::URI);
     return array_merge($blockquoteAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #8
0
ファイル: Audio.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $audioAllowedAttributes = array('/^src$/i' => Attribute::URI, '/^crossorigin$/i' => Attribute::CS_STRING, '/^preload$/i' => Attribute::CI_ENUM . '("","none","metadata","auto"|"")', '/^autoplay$/i' => Attribute::BOOL, '/^mediagroup$/i' => Attribute::CS_STRING, '/^loop$/i' => Attribute::BOOL, '/^muted$/i' => Attribute::BOOL, '/^controls$/i' => Attribute::BOOL);
     return array_merge($audioAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #9
0
ファイル: Meter.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $meterAllowedAttributes = array('/^value$/i' => Attribute::CS_STRING, '/^min$/i' => Attribute::CS_STRING, '/^max$/i' => Attribute::CS_STRING, '/^low$/i' => Attribute::CS_STRING, '/^high$/i' => Attribute::CS_STRING, '/^optimum$/i' => Attribute::CS_STRING);
     return array_merge($meterAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #10
0
ファイル: Label.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $labelAllowedAttributes = array('/^for$/i' => Attribute::CS_STRING);
     return array_merge($labelAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #11
0
ファイル: Form.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $formAllowedAttributes = array('/^accept-charset$/i' => Attribute::CS_STRING, '/^action$/i' => Attribute::URI, '/^autocomplete$/i' => Attribute::CI_ENUM . '("","on","off")', '/^enctype$/i' => Attribute::CS_STRING, '/^method$/i' => Attribute::CI_ENUM . '("","get","post","dialog"|"get")', '/^name$/i' => Attribute::CS_STRING, '/^novalidate$/i' => Attribute::BOOL, '/^target$/i' => Attribute::CS_STRING);
     return array_merge($formAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #12
0
ファイル: Canvas.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $canvasAllowedAttributes = array('/^width$/i' => Attribute::INT, '/^height$/i' => Attribute::INT);
     return array_merge($canvasAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #13
0
ファイル: Object.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $objectAllowedAttributes = array('/^data$/i' => Attribute::CS_STRING, '/^type$/i' => Attribute::CS_STRING, '/^typemustmatch$/i' => Attribute::CS_STRING, '/^name$/i' => Attribute::CS_STRING, '/^usemap$/i' => Attribute::CS_STRING, '/^form$/i' => Attribute::CS_STRING, '/^width$/i' => Attribute::INT, '/^height$/i' => Attribute::INT);
     return array_merge($objectAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #14
0
 protected function getAllowedAttributes()
 {
     $optgroupAllowedAttributes = array('/^disabled$/i' => Attribute::BOOL, '/^label$/i' => Attribute::CS_STRING);
     return array_merge($optgroupAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #15
0
ファイル: Th.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $thAllowedAttributes = array('/^colspan$/i' => Attribute::INT, '/^rowspan$/i' => Attribute::INT, '/^headers$/i' => Attribute::CS_STRING, '/^scope$/i' => Attribute::CS_STRING, '/^abbr$/i' => Attribute::CS_STRING);
     return array_merge($thAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #16
0
ファイル: Button.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $buttonAllowedAttributes = array('/^autofocus$/i' => Attribute::BOOL, '/^disabled$/i' => Attribute::BOOL, '/^form$/i' => Attribute::CS_STRING, '/^formaction$/i' => Attribute::URI, '/^formenctype$/i' => Attribute::CS_STRING, '/^formmethod$/i' => Attribute::CI_ENUM . '("","get","post","dialog"|"get")', '/^formnovalidate$/i' => Attribute::BOOL, '/^formtarget$/i' => Attribute::CS_STRING, '/^menu$/i' => Attribute::CS_STRING, '/^name$/i' => Attribute::CS_STRING, '/^type$/i' => Attribute::CI_ENUM . '("submit","reset","button","menu"|"submit")', '/^value$/i' => Attribute::CS_STRING);
     return array_merge($buttonAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #17
0
ファイル: Ol.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $olAllowedAttributes = array('/^reversed$/i' => Attribute::BOOL, '/^start$/i' => Attribute::INT, '/^type$/i' => Attribute::CS_STRING);
     return array_merge($olAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #18
0
ファイル: Output.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $outputAllowedAttributes = array('/^for$/i' => Attribute::CS_STRING, '/^form$/i' => Attribute::CS_STRING, '/^name$/i' => Attribute::CS_STRING);
     return array_merge($outputAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #19
0
 protected function getAllowedAttributes()
 {
     $menuitemAllowedAttributes = array('/^type$/i' => Attribute::CI_ENUM . '("","command","checkbox","radio"|"command")', '/^label$/i' => Attribute::CS_STRING, '/^icon$/i' => Attribute::CS_STRING, '/^disabled$/i' => Attribute::BOOL, '/^checked$/i' => Attribute::BOOL, '/^radiogroup$/i' => Attribute::CS_STRING, '/^default$/i' => Attribute::CS_STRING);
     return array_merge($menuitemAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #20
0
 protected function getAllowedAttributes()
 {
     $textareaAllowedAttributes = array('/^autocomplete$/i' => Attribute::CS_STRING, '/^autofocus$/i' => Attribute::BOOL, '/^cols$/i' => Attribute::INT, '/^dirname$/i' => Attribute::CS_STRING, '/^disabled$/i' => Attribute::BOOL, '/^form$/i' => Attribute::CS_STRING, '/^inputmode$/i' => Attribute::CS_STRING, '/^maxlength$/i' => Attribute::CS_STRING, '/^minlength$/i' => Attribute::CS_STRING, '/^name$/i' => Attribute::CS_STRING, '/^placeholder$/i' => Attribute::CS_STRING, '/^readonly$/i' => Attribute::BOOL, '/^required$/i' => Attribute::BOOL, '/^rows$/i' => Attribute::INT, '/^wrap$/i' => Attribute::CI_ENUM . '("","soft","hard"|"soft")');
     return array_merge($textareaAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #21
0
ファイル: Menu.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $menuAllowedAttributes = array('/^type$/i' => Attribute::CI_ENUM . '("","context","toolbar"|"context")', '/^label$/i' => Attribute::CS_STRING);
     return array_merge($menuAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #22
0
 protected function getAllowedAttributes()
 {
     $progressAllowedAttributes = array('/^value$/i' => Attribute::CS_STRING, '/^max$/i' => Attribute::CS_STRING);
     return array_merge($progressAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #23
0
ファイル: Html.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $htmlAllowedAttributes = array('/^manifest$/i' => Attribute::URI);
     return array_merge($htmlAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #24
0
ファイル: A.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $aAllowedAttributes = array('/^href$/i' => Attribute::URI, '/^target$/i' => Attribute::CS_STRING, '/^download$/i' => Attribute::CS_STRING, '/^ping$/i' => Attribute::URI, '/^rel$/i' => Attribute::CS_STRING, '/^hreflang$/i' => Attribute::CS_STRING, '/^type$/i' => Attribute::CS_STRING, '/^referrerpolicy$/i' => Attribute::CS_STRING);
     return array_merge($aAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #25
0
ファイル: Select.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $selectAllowedAttributes = array('/^autocomplete$/i' => Attribute::CS_STRING, '/^autofocus$/i' => Attribute::BOOL, '/^disabled$/i' => Attribute::BOOL, '/^form$/i' => Attribute::CS_STRING, '/^multiple$/i' => Attribute::BOOL, '/^name$/i' => Attribute::CS_STRING, '/^type$/i' => Attribute::CI_ENUM . '("submit","reset","button","menu"|"submit")', '/^value$/i' => Attribute::CS_STRING);
     return array_merge($selectAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #26
0
ファイル: Iframe.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $iframeAllowedAttributes = array('/^src$/i' => Attribute::URI, '/^srcdoc$/i' => Attribute::CS_STRING, '/^name$/i' => Attribute::CS_STRING, '/^sandbox$/i' => Attribute::CS_STRING, '/^allowfullscreen$/i' => Attribute::CS_STRING, '/^width$/i' => Attribute::INT, '/^height$/i' => Attribute::INT, '/^referrerpolicy$/i' => Attribute::CS_STRING);
     return array_merge($iframeAllowedAttributes, parent::getAllowedAttributes());
 }
コード例 #27
0
ファイル: Style.php プロジェクト: kevintweber/groundskeeper
 protected function getAllowedAttributes()
 {
     $styleAllowedAttributes = array('/^media$/i' => Attribute::CS_STRING, '/^nonce$/i' => Attribute::CS_STRING, '/^type$/i' => Attribute::CI_STRING, '/^scoped$/i' => Attribute::CI_STRING);
     return array_merge($styleAllowedAttributes, parent::getAllowedAttributes());
 }