From fa07002352147d45da193f28fd6e02d2d42dc67a Mon Sep 17 00:00:00 2001 From: Matt Kane Date: Mon, 2 Dec 2024 14:37:00 +0000 Subject: fix(markdoc): correctly render boolean HTML attributes (#12584) --- packages/integrations/markdoc/test/render-html.test.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages/integrations/markdoc/test/render-html.test.js') diff --git a/packages/integrations/markdoc/test/render-html.test.js b/packages/integrations/markdoc/test/render-html.test.js index 6f877d1e5..5bf7fe5ce 100644 --- a/packages/integrations/markdoc/test/render-html.test.js +++ b/packages/integrations/markdoc/test/render-html.test.js @@ -123,6 +123,11 @@ function renderSimpleChecks(html) { const p3 = document.querySelector('article > p:nth-of-type(3)'); assert.equal(p3.children.length, 1); assert.equal(p3.textContent, 'This is a span inside a paragraph!'); + + const video = document.querySelector('video'); + assert.ok(video, 'A video element should exist'); + assert.ok(video.hasAttribute('autoplay'), 'The video element should have the autoplay attribute'); + assert.ok(video.hasAttribute('muted'), 'The video element should have the muted attribute'); } /** @param {string} html */ -- cgit v1.2.3