Edit

kc3-lang/libxml2/test/issue655.xml

Branch :

  • Show log

    Commit

  • Author : Nick Wellnhofer
    Date : 2023-12-30 02:50:34
    Hash : 37c6618b
    Message : parser: Rework parsing of attribute and entity values Don't use a separate function to handle "complex" attributes. Validate UTF-8 byte sequences without decoding. This should improve performance considerably when parsing multi-byte UTF-8 sequences. Use a string buffer to avoid unnecessary allocations and copying when expanding entities. Normalize attribute values in a single pass while expanding entities. Be more lenient in recovery mode. If no entity substitution was requested, validate entities without expanding. Fixes #596. Also fixes #655.

  • test/issue655.xml
  • <!DOCTYPE test [
      <!ENTITY newline "&#x26;#xA;">
    ]>
    <test newline="&newline;"/>