[jQuery] Feedback on new plugin: wrapSelection
My coworker and I have created a new plugin called wrapSelection that
wraps highlighted text with valid XHTML span tags and returns as a
jQuery object for chaining additional commands to that element.
This was originally designed to allow end users to select text
(highlight text with their mouse) and change the background style.
Unlike other solutions that apply to the whole element, this creates
XHTML compliant span tags around the selection area.
http://plugins.jquery.com/project/wrapSelection
Feedback would be appreciated to make this a better plugin.