diff --git a/Changelog.md b/Changelog.md index 666bcf85..9aecbb9e 100644 --- a/Changelog.md +++ b/Changelog.md @@ -40,6 +40,7 @@ to get an offset of the error position. For `SyntaxError`s the range - [#684]: Fix incorrect position reported for `Error::IllFormed(DoubleHyphenInComment)`. - [#684]: Fix incorrect position reported for `Error::IllFormed(MissingDoctypeName)`. - [#704]: Fix empty tags with attributes not being expanded when `expand_empty_elements` is set to true. +- [#683]: Use local tag name when check tag name against possible names for field. ### Misc Changes @@ -72,6 +73,7 @@ to get an offset of the error position. For `SyntaxError`s the range [#629]: https://github.com/tafia/quick-xml/issues/629 [#675]: https://github.com/tafia/quick-xml/pull/675 [#677]: https://github.com/tafia/quick-xml/pull/677 +[#683]: https://github.com/tafia/quick-xml/issues/683 [#684]: https://github.com/tafia/quick-xml/pull/684 [#689]: https://github.com/tafia/quick-xml/pull/689 [#704]: https://github.com/tafia/quick-xml/pull/704 diff --git a/src/de/map.rs b/src/de/map.rs index 08367085..3989a64d 100644 --- a/src/de/map.rs +++ b/src/de/map.rs @@ -789,7 +789,7 @@ fn not_in( start: &BytesStart, decoder: Decoder, ) -> Result { - let tag = decoder.decode(start.name().into_inner())?; + let tag = decoder.decode(start.local_name().into_inner())?; Ok(fields.iter().all(|&field| field != tag.as_ref())) }