Edit

kc3-lang/libxml2/result/valid/781333.xml.err.rdr

Branch :

  • Show log

    Commit

  • Author : David Kilzer
    Date : 2023-04-10 13:06:18
    Hash : cb1b8b85
    Message : xmlValidatePopElement() can return invalid value (-1) Covered by: test/VC/ElementValid5 This only affects XML Reader API with LIBXML_REGEXP_ENABLED and LIBXML_VALID_ENABLED turned on. * result/VC/ElementValid5.rdr: - Update result to add missing error message. * python/tests/reader2.py: * result/VC/ElementValid6.rdr: * result/VC/ElementValid7.rdr: * result/valid/781333.xml.err.rdr: - Update result to fix grammar issue. * valid.c: (xmlValidatePopElement): - Check return value of xmlRegExecPushString() to handle -1, and assign 'ret = 0;' to return 0 from xmlValidatePopElement(). This change affects xmlTextReaderValidatePop() from xmlreader.c. - Fix grammar of error message by changing 'child' to 'children'.

  • result/valid/781333.xml.err.rdr
  • ./test/valid/781333.xml:4: element a: validity error : Element a content does not follow the DTD, expecting ( ..., got 
    <a/>
        ^
    ./test/valid/781333.xml:5: element a: validity error : Element a content does not follow the DTD, Expecting more children
    
    ^