0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-23 00:41:52 +00:00

Implement 'overflow' CSS property.

Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
Edward Z. Yang 2008-11-27 16:14:50 -05:00
parent 6691676666
commit f5cd2c07ea
5 changed files with 4 additions and 3 deletions

View File

@ -18,8 +18,6 @@ with these contents.
HTML Purifier is PHP 5 only, and is actively tested from PHP 5.0.5 and HTML Purifier is PHP 5 only, and is actively tested from PHP 5.0.5 and
up. It has no core dependencies with other libraries. PHP up. It has no core dependencies with other libraries. PHP
4 support was deprecated on December 31, 2007 with HTML Purifier 3.0.0. 4 support was deprecated on December 31, 2007 with HTML Purifier 3.0.0.
Essential security fixes will be issued for the 2.1.x branch until
August 8, 2008.
These optional extensions can enhance the capabilities of HTML Purifier: These optional extensions can enhance the capabilities of HTML Purifier:

1
NEWS
View File

@ -10,6 +10,7 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
========================== ==========================
3.3.0, unknown release date 3.3.0, unknown release date
! Implement CSS property 'overflow' when %CSS.AllowTricky is true.
- Fix bug with testEncodingSupportsASCII() algorithm when iconv() implementation - Fix bug with testEncodingSupportsASCII() algorithm when iconv() implementation
does not do the "right thing" with characters not supported in the output does not do the "right thing" with characters not supported in the output
set. set.

View File

@ -38,7 +38,7 @@
</directive> </directive>
<directive id="CSS.AllowedProperties"> <directive id="CSS.AllowedProperties">
<file name="HTMLPurifier/CSSDefinition.php"> <file name="HTMLPurifier/CSSDefinition.php">
<line>274</line> <line>275</line>
</file> </file>
</directive> </directive>
<directive id="Cache.DefinitionImpl"> <directive id="Cache.DefinitionImpl">

View File

@ -257,6 +257,7 @@ class HTMLPurifier_CSSDefinition extends HTMLPurifier_Definition
$this->info['visibility'] = new HTMLPurifier_AttrDef_Enum(array( $this->info['visibility'] = new HTMLPurifier_AttrDef_Enum(array(
'visible', 'hidden', 'collapse' 'visible', 'hidden', 'collapse'
)); ));
$this->info['overflow'] = new HTMLPurifier_AttrDef_Enum(array('visible', 'hidden', 'auto', 'scroll'));
} }

View File

@ -141,6 +141,7 @@ class HTMLPurifier_AttrDef_CSSTest extends HTMLPurifier_AttrDefHarness
$this->config->set('CSS', 'AllowTricky', true); $this->config->set('CSS', 'AllowTricky', true);
$this->assertDef('display:none;'); $this->assertDef('display:none;');
$this->assertDef('visibility:visible;'); $this->assertDef('visibility:visible;');
$this->assertDef('overflow:scroll;');
} }
} }