forked from andreww/fox
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dom: Stop serialize from always reporting an error
The serialize function has an optional exception argument to catch errors. One of our checks comes from normalising the document and (at this point) this should only see namespace errors. If not, we throw an internal error. However, the check forgot that getException returns 0 if we are not in an exception and turned the no exception case into an internal error. This is fixed by checking if we are in an exceptional state before checking the error code.
- Loading branch information
Showing
2 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters