is unknown but wraps which IS known — ProseMirror looks through it
+ const el = htmlToElement('');
+ const items = detectUnsupportedContent(el, minimalSchema);
+ expect(items).toEqual([]);
+ });
+
+ it('skips unknown wrappers that contain only text', () => {
+ // — PM looks through it and preserves the text
+ const el = htmlToElement('');
+ const items = detectUnsupportedContent(el, minimalSchema);
+ expect(items).toEqual([]);
+ });
+
+ it('reports empty unknown elements with no text or children', () => {
+ // has no text and no known descendants — truly dropped
+ const el = htmlToElement('');
+ const items = detectUnsupportedContent(el, minimalSchema);
+ expect(items).toEqual([expect.objectContaining({ tagName: 'VIDEO' })]);
+ });
+
+ it('reports unknown elements even when siblings are known', () => {
+ //