diff --git a/package.json b/package.json
index 9adcbcc..0bcf12a 100644
--- a/package.json
+++ b/package.json
@@ -52,7 +52,7 @@
"@types/ungap__structured-clone": "^1.0.0",
"c8": "^9.0.0",
"hast-util-to-html": "^9.0.0",
- "hastscript": "^8.0.0",
+ "hastscript": "^9.0.0",
"mdast-util-from-markdown": "^2.0.0",
"prettier": "^3.0.0",
"remark-cli": "^11.0.0",
diff --git a/test.js b/test.js
index 5ccf449..9fd8d72 100644
--- a/test.js
+++ b/test.js
@@ -130,12 +130,12 @@ test('raw', async function (t) {
assert.deepEqual(
raw(
u('root', [
- h('textarea', u('text', 'Some text that is not HTML.')),
+ h('textarea', [u('text', 'Some text that is not HTML.')]),
u('raw', '')
])
),
u('root', {data: {quirksMode: false}}, [
- h('textarea', u('text', 'Some text that is not HTML.')),
+ h('textarea', [u('text', 'Some text that is not HTML.')]),
h('img', {alt: 'foo', src: 'bar.jpg'})
])
)
@@ -153,7 +153,7 @@ test('raw', async function (t) {
])
),
u('root', {data: {quirksMode: false}}, [
- h('textarea', u('text', 'Some text that is not HTML.')),
+ h('textarea', [u('text', 'Some text that is not HTML.')]),
h('img', {alt: 'foo', src: 'bar.jpg'})
])
)
@@ -173,8 +173,8 @@ test('raw', async function (t) {
])
),
u('root', {data: {quirksMode: false}}, [
- h('textarea', u('text', 'Some text that is not HTML.')),
- h('p', u('text', 'but this is'))
+ h('textarea', [u('text', 'Some text that is not HTML.')]),
+ h('p', [u('text', 'but this is')])
])
)
}
@@ -386,7 +386,7 @@ test('raw', async function (t) {
assert.deepEqual(
raw(u('root', [u('raw', '')])),
u('root', {data: {quirksMode: false}}, [
- h('script', u('text', 'alert(1)'))
+ h('script', [u('text', 'alert(1)')])
])
)
}
@@ -398,7 +398,7 @@ test('raw', async function (t) {
assert.deepEqual(
raw(u('root', [h('script', u('text', 'alert(1)'))])),
u('root', {data: {quirksMode: false}}, [
- h('script', u('text', 'alert(1)'))
+ h('script', [u('text', 'alert(1)')])
])
)
}