JDK-6513578 : WIN32 HTML Clipboard support enhancement
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows,windows_nt
  • CPU: generic,x86
  • Submitted: 2007-01-16
  • Updated: 2013-08-29
  • Resolved: 2011-03-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b09Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
We need to enhance native HTML Clipboard format support.
Currently AWT works with MS HTML Clipboard format version 0.9, but new version 1.0 is exist. In addition new HTML format support have to be ready for surround-HTML-document transfer and for ability to provide that data on request.

Comments
EVALUATION del
12-02-2007

SUGGESTED FIX http://javaweb.sfbay/jcg/1.7.0-dolphin/awt/6513578/
12-02-2007

EVALUATION New HTML Clipboard codec for WIN32 was written. It resolves following problems: 1. doubling HTML and BODY tags in clipboard for full-document selection 2. support for HTML Clipboard format version 1.0 3. made code ready for new htmlDataFlavor (~text/html;class=sun.awt.dnd) with object returned data type (HTMLCodec) for surround HTML and styles transfer.
17-01-2007

EVALUATION Correct implementation of MS HTML Clipboard format suggest the present of partially "superfluous" information about HTML document structure and styles. This information mostly locates in the text header. The entries are: //ver < 1.0 VERSION, START_HTML, END_HTML, START_FRAGMENT, END_FRAGMENT, //+ ver 1.0 START_SELECTION, END_SELECTION, SOURCE_URL SOURCE_URL is the most interesting and gives the chance to resolve correctly external relative references. Now in AWT the clipboard header fields are filled by incorrect values that could confuse native applications. New HTML Clipboard header parser/creator has to be implemented. In future release we have to have special HTMLFlavor to provide all MS HTML Clipboard format advantages.
16-01-2007