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
{{ message }}
Repository navigation
Commit 7bc498b
Browse filesBrowse the repository at this point in the historyBrowse files
Restore the error handler in finally, through one shared helper
Seven blocks installed initializeFromError() as the error handler and
restored it only from catch (QueryPath\Exception), so any other
throwable left the handler installed. Route them all through
DOM::withErrorHandler(), which restores it in finally.
Fixes#95
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ QueryPath Changelog
27
27
- Fix the `:text` pseudo-class so it matches jQuery: it selects `input` elements whose `type` attribute is absent or is `text` (case-insensitively). It never indicated, and still does not indicate, whether a node is a text node
28
28
-`find('*')` now matches the nodes in the match set as well as their descendants, so that a selector can be tested against an element already in hand
29
29
-`writeHTML5()` now returns the `DOMQuery` like the other `write*()` methods, and throws `QueryPath\IOException` instead of a `TypeError` when the file cannot be written (issue #80)
30
+
- Fix QueryPath's error handler staying installed for the rest of the request when an exception other than a `QueryPath\Exception` (a `TypeError`, or one thrown by a stream wrapper, for example) escaped from parsing a document, inserting markup, or `writeXML()`/`writeHTML()` (issue #95)
0 commit comments