Пример #1
0
 protected function getAllowedAttributes()
 {
     $embedAllowedAttributes = array('/^src$/i' => Attribute::URI, '/^type$/i' => Attribute::CS_STRING, '/^name$/i' => Attribute::CS_STRING, '/^[a-z_-]$/i' => Attribute::CS_STRING);
     return array_merge($embedAllowedAttributes, parent::getAllowedAttributes());
 }
Пример #2
0
 protected function getAllowedAttributes()
 {
     $inputAllowedAttributes = array('/^accept$/i' => Attribute::CI_STRING, '/^alt$/i' => Attribute::CS_STRING, '/^autocomplete$/i' => Attribute::CS_STRING, '/^autofocus$/i' => Attribute::BOOL, '/^checked$/i' => Attribute::BOOL, '/^dirname$/i' => Attribute::CS_STRING, '/^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, '/^height$/i' => Attribute::INT, '/^inputmode$/i' => Attribute::CI_STRING, '/^list$/i' => Attribute::CS_STRING, '/^max$/i' => Attribute::CS_STRING, '/^maxlength$/i' => Attribute::INT, '/^min$/i' => Attribute::CS_STRING, '/^minlength$/i' => Attribute::INT, '/^multiple$/i' => Attribute::BOOL, '/^name$/i' => Attribute::CS_STRING, '/^pattern$/i' => Attribute::CS_STRING, '/^placeholder$/i' => Attribute::CS_STRING, '/^readonly$/i' => Attribute::BOOL, '/^required$/i' => Attribute::BOOL, '/^size$/i' => Attribute::INT, '/^src$/i' => Attribute::URI, '/^step$/i' => Attribute::CI_STRING, '/^type$/i' => Attribute::CI_ENUM . '("hidden","text","search","tel","url","email","password","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"|"text")', '/^value$/i' => Attribute::CS_STRING, '/^width$/i' => Attribute::INT);
     return array_merge($inputAllowedAttributes, parent::getAllowedAttributes());
 }
Пример #3
0
 protected function getAllowedAttributes()
 {
     $areaAllowedAttributes = array('/^alt$/i' => Attribute::CS_STRING, '/^coords$/i' => Attribute::CS_STRING, '/^shape$/i' => Attribute::CS_STRING, '/^href$/i' => Attribute::URI, '/^target$/i' => Attribute::CS_STRING, '/^download$/i' => Attribute::CS_STRING, '/^ping$/i' => Attribute::URI, '/^rel$/i' => Attribute::CS_STRING);
     return array_merge($areaAllowedAttributes, parent::getAllowedAttributes());
 }
Пример #4
0
 protected function getAllowedAttributes()
 {
     $paramAllowedAttributes = array('/^name$/i' => Attribute::CS_STRING, '/^value$/i' => Attribute::CS_STRING);
     return array_merge($paramAllowedAttributes, parent::getAllowedAttributes());
 }
Пример #5
0
 protected function getAllowedAttributes()
 {
     $metaAllowedAttributes = array('/^name$/i' => Attribute::CS_STRING, '/^http-equiv$/i' => Attribute::CI_ENUM . '("content-language","content-type","default-style","refresh","set-cookie","x-ua-compatible","content-security-policy")', '/^content$/i' => Attribute::CS_STRING, '/^charset$/i' => Attribute::CI_STRING, '/^property$/i' => Attribute::CS_STRING);
     return array_merge($metaAllowedAttributes, parent::getAllowedAttributes());
 }
Пример #6
0
 protected function getAllowedAttributes()
 {
     $linkAllowedAttributes = array('/^href$/i' => Attribute::URI, '/^crossorigin$/i' => Attribute::CS_STRING, '/^rel$/i' => Attribute::CI_SSENUM . '("alternate","author","help","icon","license","next","pingback","prefetch","prev","search","stylesheet")', '/^media$/i' => Attribute::CI_STRING, '/^hreflang$/i' => Attribute::CS_STRING, '/^type$/i' => Attribute::CI_STRING, '/^sizes$/i' => Attribute::CI_STRING);
     return array_merge($linkAllowedAttributes, parent::getAllowedAttributes());
 }
Пример #7
0
 protected function getAllowedAttributes()
 {
     $trackAllowedAttributes = array('/^kind$/i' => Attribute::CS_STRING, '/^src$/i' => Attribute::URI, '/^srclang$/i' => Attribute::CS_STRING, '/^label$/i' => Attribute::CS_STRING, '/^default$/i' => Attribute::BOOL);
     return array_merge($trackAllowedAttributes, parent::getAllowedAttributes());
 }
Пример #8
0
 protected function getAllowedAttributes()
 {
     $sourceAllowedAttributes = array('/^src$/i' => Attribute::URI, '/^type$/i' => Attribute::CS_STRING, '/^srcset$/i' => Attribute::CS_STRING, '/^sizes$/i' => Attribute::CS_STRING, '/^media$/i' => Attribute::CS_STRING);
     return array_merge($sourceAllowedAttributes, parent::getAllowedAttributes());
 }
Пример #9
0
 protected function getAllowedAttributes()
 {
     $baseAllowedAttributes = array('/^href$/i' => Attribute::URI, '/^target$/i' => Attribute::CS_STRING);
     return array_merge($baseAllowedAttributes, parent::getAllowedAttributes());
 }
Пример #10
0
 protected function getAllowedAttributes()
 {
     $colAllowedAttributes = array('/^span$/i' => Attribute::INT);
     return array_merge($colAllowedAttributes, parent::getAllowedAttributes());
 }
Пример #11
0
 protected function getAllowedAttributes()
 {
     $imgAllowedAttributes = array('/^alt$/i' => Attribute::CS_STRING, '/^src$/i' => Attribute::URI, '/^srcset$/i' => Attribute::CS_STRING, '/^sizes$/i' => Attribute::CS_STRING, '/^crossorigin$/i' => Attribute::CS_STRING, '/^usemap$/i' => Attribute::CS_STRING, '/^ismap$/i' => Attribute::CS_STRING, '/^width$/i' => Attribute::INT, '/^height$/i' => Attribute::INT, '/^referrerpolicy$/i' => Attribute::CS_STRING);
     return array_merge($imgAllowedAttributes, parent::getAllowedAttributes());
 }