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 {