When selecting HTML elements in a web browser, copying them and pasting them into a plain text editor, the browser has to convert the selection to plain text.
Is it specified how the browser should do that? If not, what can I expect to work consistently across different browsers?