Platform
Resources
Pricing
Sign in
Get started
qbane
Web developer from Taiwan
Workspace
Fork
Public
By
qbane
Edited
Mar 17
Insert cell
Insert cell
Insert cell
XPathJS
=
{
if
(
typeof
window
.
XPathJS
===
'undefined'
)
{
window
.
XPathJS
=
undefined
await
import
(
'https://esm.sh/@mass-edge/xpathjs'
)
}
return
window
.
XPathJS
}
Insert cell
Insert cell
XP
=
import
(
'https://esm.sh/@qbane/xpathjs@0.2.2-1'
)
Insert cell
viewof
withNonstandardUtilities
=
Inputs
.
toggle
(
{
label
:
'With nonstandard utilities?'
,
value
:
true
}
)
Insert cell
{
const
xp
=
XP
.
createDomLevel3XPathBindings
(
{
withNonstandardUtilities
}
)
return
xp
.
document
.
evaluate
(
'id("xxx")'
,
document
,
null
,
0
)
}
Insert cell
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
XPathJS
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
XP
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
withNonstandardUtilities
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML