Edit

kc3-lang/libxml2/test/issue626.xml

Branch :

  • Show log

    Commit

  • Author : Nick Wellnhofer
    Date : 2023-11-21 14:35:54
    Hash : a2b5c90a
    Message : hash: Fix deletion of entries during scan Functions like xmlCleanSpecialAttr scan a hash table and possibly delete entries in the callback. xmlHashScanFull must detect such deletions and rescan the entry. This regressed when rewriting the hash table code in 4a513d56. Fixes #626.

  • test/issue626.xml
  • <!DOCTYPE doc [
    <!ATTLIST e a1 CDATA #IMPLIED>
    <!ATTLIST e a2 CDATA #IMPLIED>
    <!ATTLIST e a3 CDATA #IMPLIED>
    <!ATTLIST e a4 CDATA #IMPLIED>
    <!ATTLIST e a5 CDATA #IMPLIED>
    <!ATTLIST e a6 CDATA #IMPLIED>
    ]>
    <doc>
        <!-- This tests whether xmlCleanSpecialAttr works. The attribute values
             must not be normalized. -->
        <e a1=" x  x " a2=" x  x " a3=" x  x " a4=" x  x " a5=" x  x " a6=" x  x "/>
    </doc>