Project

Profile

Help

Bug #6298

open

base-uri() value does not update together with DOM

Added by Martynas Jusevicius about 1 year ago. Updated 4 months ago.

Status:
AwaitingInfo
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2023-12-19
Due date:
% Done:

0%

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

Description

My SaxonJS code replaces large chunks of DOM with content loaded from different documents. DOM's baseURI property returns the source document's URL, but base-uri() does not always seem to do that. Which can lead to a stale value, probably because the DOM is updated?

This is my observation of the discrepancy:

ixsl:get(., 'baseURI'): https://localhost:4443/7b386331-5a82-46ab-820b-38df78a91456/ SaxonJS2.rt.js:785:84
base-uri(): https://localhost:4443/ SaxonJS2.rt.js:785:84
ixsl:location(): https://localhost:4443/7b386331-5a82-46ab-820b-38df78a91456/
Actions #1

Updated by Norm Tovey-Walsh 5 months ago

  • Status changed from New to AwaitingInfo

Can you provide a small example that demonstrates the problem?

Actions #2

Updated by Martynas Jusevicius 4 months ago

Hi Norm,

I made a test for this and I cannot reproduce this anymore :) https://github.com/namedgraph/saxon-js2-test/blob/gh-pages/client.xsl#L421 Can be invoked by clicking the base-uri() change button at the bottom here: https://namedgraph.github.io/saxon-js2-test/

Can probably be closed.

Please register to edit this issue

Also available in: Atom PDF Tracking page