UNPKG
@scion-scxml/scxml
Version:
latest (4.3.27)
4.3.27
4.3.26
4.3.25
4.3.24
4.3.23
4.3.22
4.3.21
4.3.20
4.3.19
4.3.18
4.3.17
4.3.16
4.3.15
4.3.10
4.3.9
4.3.8
4.3.7
4.3.3
4.3.2
4.3.1
An implementation of SCXML in JavaScript.
gitlab.com/scion-scxml/scxml
@scion-scxml/scxml
/
lib
/
runtime
/
platform-bootstrap
/
browser
/
jsdom.js
8 lines
(6 loc)
•
222 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
function
JSDOM
(
xmlString, options
){
let
domParser =
new
DOMParser
();
let
dom = domParser.
parseFromString
(xmlString, options.
contentType
);
return
{
window
: {
document
: dom } }; }
module
.
exports
.
JSDOM
=
JSDOM
;