From e8abd5953c1197b0e90903bb3cb392a1ef25c899 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Sun, 7 Jun 2009 16:05:46 -0400 Subject: [PATCH] Fix prototype impedance in HTMLDefinition and typo in docs/enduser-customize.html Signed-off-by: Edward Z. Yang --- docs/enduser-customize.html | 2 +- library/HTMLPurifier/HTMLDefinition.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/enduser-customize.html b/docs/enduser-customize.html index 67496fc5..fbd0f2ad 100644 --- a/docs/enduser-customize.html +++ b/docs/enduser-customize.html @@ -723,7 +723,7 @@ $def = $config->getHTMLDefinition(true); or more flow elements, but no nested forms
  • What attributes does the element allow that are general? Common
  • What attributes does the element allow that are specific to this element? A whole bunch, see ATTLIST; - we're going to the vital ones: action, method and name
  • + we're going to do the vital ones: action, method and name

    diff --git a/library/HTMLPurifier/HTMLDefinition.php b/library/HTMLPurifier/HTMLDefinition.php index 44f4616f..c99ac11e 100644 --- a/library/HTMLPurifier/HTMLDefinition.php +++ b/library/HTMLPurifier/HTMLDefinition.php @@ -114,7 +114,7 @@ class HTMLPurifier_HTMLDefinition extends HTMLPurifier_Definition * @note See HTMLPurifier_HTMLModule::addElement for detailed * parameter and return value descriptions. */ - public function addElement($element_name, $type, $contents, $attr_collections, $attributes) { + public function addElement($element_name, $type, $contents, $attr_collections, $attributes = array()) { $module = $this->getAnonymousModule(); // assume that if the user is calling this, the element // is safe. This may not be a good idea -- 2.11.4.GIT