Actions
Bug #5464
closedunparsed-text() with an empty file throws a TypeError
Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2022-04-29
Due date:
% Done:
100%
Estimated time:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-
Description
Running in the browser (on an older version of SaxonJS2, but I suspect not) when reading in (via an unparsed-text()
call) an empty file, there is a TypeError thrown in Fetch.js:checkForNonXmlChars()
. Rather than an empty string being processed as the argument contents
, a structure
{responseText: '', contentType: null}
is bound to contents
and thus throws an error on executing contents.indexOf()
.
A preliminary search suggests this may not have arisen before.
Please register to edit this issue
Actions
Also available in: Atom PDF Tracking page