1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2026-01-26 21:41:34 +03:00

valid: Don't add ids when validating entity content

The id table shouldn't reference ids in entities. The id will be created
when expanding the entity.

Probably regressed with d025cfbb.

Note that we still register ids in entities if entities are not
replaced. This is required to make IDREF checks work.

Fixes #974.
This commit is contained in:
Nick Wellnhofer
2025-08-23 14:59:50 +02:00
parent 56199b5c08
commit d53ba0588e
3 changed files with 28 additions and 1 deletions

View File

@@ -22,6 +22,10 @@
* Set if the validation is enabled.
*/
#define XML_VCTXT_VALIDATE (1u << 2)
/**
* Set when parsing entities.
*/
#define XML_VCTXT_IN_ENTITY (1u << 3)
/*
* TODO: Rename to avoid confusion with xmlParserInputFlags