Project

Profile

Help

Bug #5464

closed

unparsed-text() with an empty file throws a TypeError

Added by John Lumley 5 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2022-04-29
Due date:
% Done:

100%

Estimated time:
Applies to JS Branch:
2, Trunk
Fix Committed on JS Branch:
2, Trunk
Fixed in JS Release:
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.

Actions #1

Updated by Norm Tovey-Walsh 5 months ago

  • Status changed from New to In Progress
Actions #2

Updated by Norm Tovey-Walsh 5 months ago

  • Status changed from In Progress to Resolved
  • Applies to JS Branch Trunk added
  • Fix Committed on JS Branch 2, Trunk added
Actions #3

Updated by Debbie Lockett 5 months ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in JS Release set to SaxonJS 2.4

Bug fix applied in the SaxonJS 2.4 maintenance release.

Please register to edit this issue

Also available in: Atom PDF Tracking page