From bf6de96bd008df6df7a6b7eb095a8282c0163f09 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Mon, 11 Feb 2008 00:27:35 +0000 Subject: [PATCH] - More TODO items - Update comments git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1549 48356398-32a2-884e-a903-53898d9a118a --- TODO | 18 +++++++++++++++--- .../HTMLPurifier/AttrDef/CSS/FontFamily.php | 3 +-- library/HTMLPurifier/AttrDef/URI.php | 4 ---- library/HTMLPurifier/Bootstrap.php | 17 ++++++++++++++++- library/HTMLPurifier/ChildDef.php | 5 ----- library/HTMLPurifier/Config.php | 16 ---------------- library/HTMLPurifier/DoctypeRegistry.php | 1 - library/HTMLPurifier/Generator.php | 1 - library/HTMLPurifier/HTMLDefinition.php | 6 +++--- library/HTMLPurifier/URIDefinition.php | 2 -- 10 files changed, 35 insertions(+), 38 deletions(-) diff --git a/TODO b/TODO index b11bdb49..668f8cba 100644 --- a/TODO +++ b/TODO @@ -40,12 +40,23 @@ IMPORTANT - Document that standalone doesn't load autoload by default, so you need to include HTMLPurifier.autoload.php after it - Simplify merge library script by removing recursion? (or other things) + - Optimize ConfigSchema by only caching things necessary for runtime + - Perhaps replace types with integer identifiers in ConfigSchema? + - Properly integrate new ConfigSchema system into configdoc (Configdoc + should directly read the configuration files) + - Reduce code duplication between Serializer and Adapter/ReverseAdapter + (we probably want to use ReverseAdapter for the long haul) + - Have configdoc use version and deprecated information (hide deprecated + info, for example) + - Update unit tests for ConfigSchema + - Implement file sniffing for configdoc, so we can easily figure out + which files use what configuration -3.1 release [Error'ed] +3.2 release [Error'ed] # Error logging for filtering/cleanup procedures - XSS-attempt detection -3.2 release [Do What I Mean, Not What I Say] +3.3 release [Do What I Mean, Not What I Say] # Additional support for poorly written HTML - Microsoft Word HTML cleaning (i.e. MsoNormal, but research essential!) - Friendly strict handling of
(block ->
) @@ -61,7 +72,7 @@ IMPORTANT dupe detector would also need to detect the suffix as well) - Externalize inline CSS to promote clean HTML -3.3 release [It's All About Trust] (floating) +3.4 release [It's All About Trust] (floating) # Implement untrusted, dangerous elements/attributes # Implement IDREF support (harder than it seems, since you cannot have IDREFs to non-existent IDs) @@ -72,6 +83,7 @@ IMPORTANT AttrDef class). Probably will use CSSTidy class # More control over allowed CSS properties (maybe modularize it in the same fashion!) + # HTML 5 support - Standardize token armor for all areas of processing - Convert RTL/LTR override characters to tags, or vice versa on demand. Also, enable disabling of directionality diff --git a/library/HTMLPurifier/AttrDef/CSS/FontFamily.php b/library/HTMLPurifier/AttrDef/CSS/FontFamily.php index a09fd428..51f83ac5 100644 --- a/library/HTMLPurifier/AttrDef/CSS/FontFamily.php +++ b/library/HTMLPurifier/AttrDef/CSS/FontFamily.php @@ -1,9 +1,8 @@ +if (!defined('PHP_EOL')) { + switch (strtoupper(substr(PHP_OS, 0, 3))) { + case 'WIN': + define('PHP_EOL', "\r\n"); + break; + case 'DAR': + define('PHP_EOL', "\r"); + break; + default: + define('PHP_EOL', "\n"); + } +} + /** * Bootstrap class that contains meta-functionality for HTML Purifier such as * the autoload function. diff --git a/library/HTMLPurifier/ChildDef.php b/library/HTMLPurifier/ChildDef.php index c5b5a5e5..3c290fd3 100644 --- a/library/HTMLPurifier/ChildDef.php +++ b/library/HTMLPurifier/ChildDef.php @@ -1,10 +1,5 @@ -if (!defined('PHP_EOL')) { - switch (strtoupper(substr(PHP_OS, 0, 3))) { - case 'WIN': - define('PHP_EOL', "\r\n"); - break; - case 'DAR': - define('PHP_EOL', "\r"); - break; - default: - define('PHP_EOL', "\n"); - } -} - /** * Configuration object that triggers customizable behavior. * diff --git a/library/HTMLPurifier/DoctypeRegistry.php b/library/HTMLPurifier/DoctypeRegistry.php index d83e9223..8a2b0b9d 100644 --- a/library/HTMLPurifier/DoctypeRegistry.php +++ b/library/HTMLPurifier/DoctypeRegistry.php @@ -1,6 +1,5 @@