Project

Profile

Help

Feature #5020

Enable saxon:parse-html in Saxon JS 2 in the browser by using DOMParser

Added by Martin Honnen 3 months ago. Updated about 2 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2021-06-08
Due date:
% Done:

0%

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

Description

Modern browsers support parsing a string of HTML with DOMParser e.g.

function parseHTML(html) { return new DOMParser().parseFromString(html, 'text/html'); }

so perhaps the saxon:parse-html extension function from the Java PE and EE world could be mapped in Saxon-JS to a call to some JavaScript similar to the above function.

History

#1 Updated by Michael Kay 3 months ago

Thanks, yes, this is a reasonable thing to have on our future requirements list.

Please register to edit this issue

Also available in: Atom PDF Tracking page