Project

Profile

Help

Bug #3738

closed

Cannot set properties to null using ixsl:set-property

Added by Debbie Lockett over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
2018-04-06
Due date:
% Done:

100%

Estimated time:
Applies to JS Branch:
1.0, Trunk
Fix Committed on JS Branch:
1.0, Trunk
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

It should be possible to use ixsl:set-property to set a property of a JS object to null, by supplying the empty sequence as the @select expression. However this is not allowed at compile time.

Issue initially raised in Feature #3569, but deserves separate bug.

Fixing the compile time problem then shows up a problem in the run time. There are different ways of representing the empty sequence internally. The internal convertToJS method does not work correctly when the item to be converted is null (as returned by Iter.Empty.next()). But note that an empty sequence represented internally as an empty array is converted to null correctly.

Please register to edit this issue

Also available in: Atom PDF Tracking page