In contenteditable regions, if you paste an element with a URL attribute, in some browsers it converts the URL from relative to absolute.
I've read through some bug reports that claim it's "fixed" in the latest release, but it's not.
I threw together this fiddle to demonstrate: Hurray for Demos!
It's there, it's ugly, and I'm wondering what is the best way to fix it.
The 1st idea that comes to mind is
onpaste, find allanchorsin the current node andparse it with regex. Not ideal I suppose, but it might be effective.???
???
I really wish they'd just leave things alone and not create so many browser related issues with contenteditable, but I guess that would make it too easy.
Any thoughts on the best way to address this?


CKEditor, before letting browser break the data, copies all
src,nameandhrefattributes todata-cke-saved-src|hrefattributes. Unfortunately, since data is a string, it has to be done by regexp. You can find the code here: /core/htmldataprocessor.js#L772-L783.Then, while processing HTML taken from editable element,
data-cke-saved-*attributes override the original ones.