On Tuesday, March 13, 2012 8:48:27 AM UTC-5, Ben Fritz wrote: > It has been a long time coming, but I've finally gotten the "unselectable > regions" update ready for beta testing. > > ... > > The idea is that you can then copy the text from the browser, without also > copying the specified regions. > > ... > > Please try it out and give me any feedback/bug reports. There should be no > regressions, but I'm certainly interested if there are any. By default, if > g:html_unselectable is not set, :TOhtml generates as if it was set to "f". >
Ugh, I missed possibly the most important part of the hack which underlies the method. Most of my testing at home was copy-pasting into Vim itself. But, for editors which understand HTML-formatted text when pasting (which is mostly what I care about for this update), the <input> elements are copied along with the rest of the text. To prevent this, it appears I can deliberately insert invalid markup, setting the "type" of the input to something invalid. See attached patch over the top of the files provided previously. I'll test this at home on Firefox, Opera, and IE9. I've tested on Chrome and IE8. Obviously I don't like that the markup for this won't validate. But the feature is useful enough I think I can accept that (assuming it continues to work in the major browsers), but it will now be turned off by default unless somebody can come up with a method to do this which validates. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
2html_12b1_no_copy_inputs.patch
Description: Binary data
