fix: isolated DOMPurify instance and correct video controls attribute

- Use DOMPurify(window) to avoid global hook pollution
- Fix controls default from boolean to empty string (HTML attribute semantics)
- Remove redundant non-null assertion on featured_image_url
This commit is contained in:
Fringg
2026-03-23 12:32:04 +03:00
parent 25f3602aea
commit f788f1034c
2 changed files with 15 additions and 14 deletions

View File

@@ -14,7 +14,7 @@ export const VideoExtension = Node.create({
addAttributes() {
return {
src: { default: null },
controls: { default: true },
controls: { default: '' },
class: { default: null },
preload: { default: 'metadata' },
};
@@ -25,6 +25,6 @@ export const VideoExtension = Node.create({
},
renderHTML({ HTMLAttributes }) {
return ['video', mergeAttributes(HTMLAttributes, { controls: '' })];
return ['video', mergeAttributes(HTMLAttributes)];
},
});