Undeclared entity error disappears in XML parser
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1476
Reported by @marcus
If an undeclared or external entity reference appears in the default valyue of an <!ATTLIST> declaration, and the callback does not provide a value for it, the default value entry is absent from the resulting array, and there is no error message either.
Pike v7.3 release 4 running Hilfe v2.0 (Incremental Pike Frontend)
> Parser.XML.Simple()->parse("<!DOCTYPE x [<!ATTLIST a b CDATA '&c;'>]>",
lambda(mixed ... args){werror("%O", args);});
({ /* 5 elements */
"&",
"c",
([ /* 1 element */
"in_attribute":1
]),
0,
([ /* 1 element */
"location":37
])
})({ /* 5 elements */
"<!ATTLIST",
"a",
([ /* 1 element */
"b":({ /* 2 elements */
({ /* 1 element */
"CDATA"
}),
({ /* 1 element */
""
})
})
]),
0,
([ /* 1 element */
"location":39
])
})({ /* 5 elements */
"<!DOCTYPE",
"x",
([ ]),
({ }),
([ /* 1 element */
"location":41
])
})Result: ({ })
>