That damned extra span. A bug or not ? #2410
Unanswered
josephgarnier
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I currently have a JS function with the following code:
which produces the following HTML:
I want to remove an unnecessary div level, so I changed the previous function to:
which produces the following HTML:
But now, I have an extra inner span... I only want one, not two. Usually, I use the trick
myContainer.innerText = "";
to remove it but here, I don't see how I can do that.My expected result is:
The DataView function that do this is
renderCompactMarkdown()
inrender.ts
(follow this link). And it's written/** Render simple fields compactly, removing wrapping content like paragraph and span. */
. But it doesn't.So does this extra span is a bug ?.
Thank you for your help
Beta Was this translation helpful? Give feedback.
All reactions