Re: PSA: HTML fragment mode interaction between Chromium, Clipboard & Notepad++
Maria Sophia <[email protected]> Wed, 11 Feb 2026 20:05:17 -0500
| Newsgroups | alt.comp.os.windows-10,alt.comp.os.windows-11,alt.comp.microsoft.windows |
|---|---|
| Organization | BWH Usenet Archive (https://usenet.blueworldhosting.com) |
| Message-ID | <[email protected]> |
For those who wish to learn more about this HTML fragment problem, Microsoft outlines a few instructive scenarios in this learning document: *HTML Clipboard Format* <https://learn.microsoft.com/en-us/windows/win32/dataxchg/html-clipboard-format> "The CF_HTML clipboard format allows a fragment of raw HTML text and its context (i.e. outer HTML) to be stored on the clipboard as ASCII." It's not just Chromium copypasta that has this problem as even microsoft excel has been affected by a confirmed bug in Microsoft's WPF framework where HTML fragments copied to the clipboard have incorrect offsets, causing Excel and other apps to reject or mis-handle the paste. <https://github.com/dotnet/wpf/issues/10476> But most of the HTML fragment issues I've unearthed by studying this phenomenon seems to be related tho Chromium browsers (Chrome, Edge, Brave, etc.) which wrap HTML clipboard content in extra <html> and <body> tags when writing to the clipboard. <https://issues.chromium.org/issues/328477621> -- Sometimes, the simplest answer is only simple only after you know it.