<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -23,6 +23,9 @@ NEWS ( CHANGELOG and HISTORY )                                     HTMLPurifier
 # The allowed values for class have been relaxed to allow all of CDATA for
   doctypes that are not XHTML 1.1 or XHTML 2.0.  For old behavior, set
   %Attr.ClassUseCDATA to false.
+# Instead of appending the content model to an old content model, a blank
+  element will replace the old content model.  You can use #SUPER to get
+  the old content model.
 ! More robust support for name=&quot;&quot; and id=&quot;&quot;
 ! HTMLPurifier_Config::inherit($config) allows you to inherit one
   configuration, and have changes to that configuration be propagated
@@ -46,6 +49,7 @@ NEWS ( CHANGELOG and HISTORY )                                     HTMLPurifier
 - Fix bug where URIDefinition would not get cleared if it's directives got
   changed.
 - Fix fatal error in HTMLPurifier_Encoder on certain platforms (probably NetBSD 5.0)
+- Fix bug in Linkify autoformatter involving &lt;a&gt;&lt;span&gt;http://foo&lt;/span&gt;&lt;/a&gt;
 . Created script maintenance/rename-config.php for renaming a configuration
   directive while maintaining its alias.  This script does not change source code.
 . Implement namespace locking for definition construction, to prevent</diff>
      <filename>NEWS</filename>
    </modified>
    <modified>
      <diff>@@ -142,7 +142,8 @@ class HTMLPurifier_ElementDef
         $this-&gt;_mergeAssocArray($this-&gt;excludes, $def-&gt;excludes);
 
         if(!empty($def-&gt;content_model)) {
-            $this-&gt;content_model .= ' | ' . $def-&gt;content_model;
+            $this-&gt;content_model =
+                str_replace(&quot;#SUPER&quot;, $this-&gt;content_model, $def-&gt;content_model);
             $this-&gt;child = false;
         }
         if(!empty($def-&gt;content_model_type)) {</diff>
      <filename>library/HTMLPurifier/ElementDef.php</filename>
    </modified>
    <modified>
      <diff>@@ -51,7 +51,7 @@ class HTMLPurifier_ElementDefTest extends HTMLPurifier_Harness
             'removed-transform' =&gt; false,
         );
         $def2-&gt;child = $new;
-        $def2-&gt;content_model = 'new';
+        $def2-&gt;content_model = '#SUPER | new';
         $def2-&gt;content_model_type = $overloaded_new;
         $def2-&gt;descendants_are_inline = true;
         $def2-&gt;excludes = array(</diff>
      <filename>tests/HTMLPurifier/ElementDefTest.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>733a5ce5c36f232fcc17df9071f4410362434fed</id>
    </parent>
  </parents>
  <author>
    <name>Edward Z. Yang</name>
    <email>edwardzyang@thewritingpot.com</email>
  </author>
  <url>http://github.com/ezyang/htmlpurifier/commit/c7594487a259325b48bb17824bd733ab69793c0f</url>
  <id>c7594487a259325b48bb17824bd733ab69793c0f</id>
  <committed-date>2009-06-10T15:24:52-07:00</committed-date>
  <authored-date>2009-06-10T15:24:52-07:00</authored-date>
  <message>Fix inability to totally override content model.
Signed-off-by: Edward Z. Yang &lt;edwardzyang@thewritingpot.com&gt;</message>
  <tree>33cf92f78cb70f680ff2e159b327a01082e4a236</tree>
  <committer>
    <name>Edward Z. Yang</name>
    <email>edwardzyang@thewritingpot.com</email>
  </committer>
</commit>
