From fb9ed6f6003dadbf3c30ac7e8a3ec4ebaaea8265 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Thu, 15 Jun 2006 22:08:24 +0000 Subject: [PATCH] In-depth uselessness, have empty element definition return false always. git-svn-id: http://htmlpurifier.org/svnroot/html_purifier/trunk@53 48356398-32a2-884e-a903-53898d9a118a --- PureHTMLDefinition.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PureHTMLDefinition.php b/PureHTMLDefinition.php index f6627f53..a6c05938 100644 --- a/PureHTMLDefinition.php +++ b/PureHTMLDefinition.php @@ -502,6 +502,9 @@ class HTMLDTD_ChildDef_Optional extends HTMLDTD_ChildDef_Required class HTMLDTD_ChildDef_Empty extends HTMLDTD_ChildDef { function HTMLDTD_ChildDef_Empty() {} + function validateChildren() { + return false; + } } class HTMLDTD_AttrDef