From a5ebf55d0ea8688be10c91f910e1780809963c06 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Sun, 13 Aug 2006 21:41:53 +0000 Subject: [PATCH] Make note that this is HTML specific. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@233 48356398-32a2-884e-a903-53898d9a118a --- library/HTMLPurifier/AttrDef/Length.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/library/HTMLPurifier/AttrDef/Length.php b/library/HTMLPurifier/AttrDef/Length.php index f2a44c20..0f27a6c4 100644 --- a/library/HTMLPurifier/AttrDef/Length.php +++ b/library/HTMLPurifier/AttrDef/Length.php @@ -3,6 +3,15 @@ require_once 'HTMLPurifier/AttrDef.php'; require_once 'HTMLPurifier/AttrDef/Pixels.php'; +/** + * Validates the HTML type length (not to be confused with CSS's length). + * + * This accepts integer pixels or percentages as lengths for certain + * HTML attributes. Don't use this for CSS: that's + * HTMLPurifier_AttrDef_CSSLength which requires prefixes and allows a lot + * more different types. + */ + class HTMLPurifier_AttrDef_Length extends HTMLPurifier_AttrDef_Pixels {