1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-05 05:37:49 +02:00

Implement shorthand CSS property border.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@324 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2006-08-27 00:49:34 +00:00
parent ffe39d7f30
commit 692a9abc0f
8 changed files with 81 additions and 5 deletions

View File

@@ -9,6 +9,7 @@ require_once 'HTMLPurifier/AttrDef/Multiple.php';
require_once 'HTMLPurifier/AttrDef/TextDecoration.php';
require_once 'HTMLPurifier/AttrDef/FontFamily.php';
require_once 'HTMLPurifier/AttrDef/Font.php';
require_once 'HTMLPurifier/AttrDef/Border.php';
/**
* Defines allowed CSS attributes and what their values are.
@@ -170,6 +171,13 @@ class HTMLPurifier_CSSDefinition
// a CSSDefinition object
$this->info['font'] = new HTMLPurifier_AttrDef_Font();
// same here
$this->info['border'] =
$this->info['border-bottom'] =
$this->info['border-top'] =
$this->info['border-left'] =
$this->info['border-right'] = new HTMLPurifier_AttrDef_Border();
}
}