You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Document#canonicalize raises exception for incompatible modes
`Document#canonicalize` now raises an exception if
`inclusive_namespaces` is non-nil and the mode is inclusive,
i.e. XML_C14N_1_0 or XML_C14N_1_1.
`inclusive_namespaces` can only be passed with exclusive modes, and
previously this silently failed.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ This version of Nokogiri uses [`jar-dependencies`](https://github.com/mkristian/
38
38
39
39
### Improved
40
40
41
+
*`Document#canonicalize` now raises an exception if `inclusive_namespaces` is non-nil and the mode is inclusive, i.e. XML_C14N_1_0 or XML_C14N_1_1. `inclusive_namespaces` can only be passed with exclusive modes, and previously this silently failed.
41
42
* Compare `Encoding` objects rather than compare their names. This is a slight performance improvement and is future-proof. [[#2454](https://github.com/sparklemotion/nokogiri/issues/2454)] (Thanks, [@casperisfine](https://github.com/casperisfine)!)
42
43
* Avoid compile-time conflict with system-installed `gumbo.h` on OpenBSD. [[#2464](https://github.com/sparklemotion/nokogiri/issues/2464)]
43
44
* Remove calls to `vasprintf` in favor of platform-independent `rb_vsprintf`
0 commit comments