exifreader 4.53.0 → 4.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -712,6 +712,9 @@ API](https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString)
712
712
  Use [`xmldom`](https://www.npmjs.com/package/@xmldom/xmldom) 0.9.12 or later.
713
713
  ExifReader limits how deeply XMP elements can nest and how many markup nodes a
714
714
  packet can have, and it checks those limits the way `xmldom` reads markup.
715
+ Older versions of `xmldom` read some markup differently, well-formed markup
716
+ included, so with them a crafted file can get past the limits and make parsing
717
+ slow.
715
718
 
716
719
  [`linkedom`](https://www.npmjs.com/package/linkedom) also parses XMP correctly,
717
720
  but use it only for files you trust. ExifReader's limits do not hold with it: a
@@ -734,12 +737,9 @@ these XMLs. If this happens to you, switch to `xmldom` and pass in the `onError`
734
737
  option. (NOTE: The native `DOMParser` that a web browser uses does not seem to
735
738
  have this issue.)
736
739
 
737
- Versions of `xmldom` older than 0.9.12 read some markup differently,
738
- well-formed markup included, so with them a crafted file can get past the
739
- limits and make parsing slow. ExifReader also skips an XMP packet that has a
740
- DOCTYPE or another markup declaration, since a parser such as a browser's
741
- native `DOMParser` can expand the entities declared in a DOCTYPE into markup
742
- the limits do not see.
740
+ ExifReader skips an XMP packet that has a DOCTYPE or another markup
741
+ declaration, since a parser such as a browser's native `DOMParser` can expand
742
+ the entities declared in a DOCTYPE into markup the limits do not see.
743
743
 
744
744
  If you pass no `domParser` and there is no global `DOMParser`, ExifReader tries
745
745
  to load `@xmldom/xmldom` itself. It then skips XMP, with a warning, if the copy