Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6523935

Java drag and drop does not provide essential data specified in the CF_HTML spec

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 1.4-pool
    • 1.4.2
    • client-libs
    • x86
    • windows_2000

      FULL PRODUCT VERSION :
      java 1.4.2_07

      ADDITIONAL OS VERSION INFORMATION :
      windows 2000
      5.00.2195
      Service Pack 4

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      not relevent

      A DESCRIPTION OF THE PROBLEM :
      important descriptave data which part of the microsoft CF_HTML spec available at
      http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/clipboard/htmlclipboard.asp

      specifically, the follwing data is provided from intenter explore

      Version:1.0
      StartHTML:000000187
      EndHTML:000001648
      StartFragment:000001312
      EndFragment:000001588
      StartSelection:000001312
      EndSelection:000001584
      SourceURL:http://www.unisa.edu.au/
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

      <HTML><HEAD><TITLE>University of South Australia</TITLE><LINK media=screen
      href="commonfiles/stylesheets/other/NN4_styles.css" type=text/css
      rel=stylesheet>
      <STYLE type=text/css>

      @import url("commonfiles/stylesheets/layout.css");
      @import url("commonfiles/stylesheets/layout_home.css");
      @import url("commonfiles/stylesheets/text_style.css");
      @import url("commonfiles/stylesheets/text_home.css");

      </STYLE>
      <!--<link rel="stylesheet" type="text/css"
      href="commonfiles/stylesheets/print.css" media="print">-->
      <SCRIPT type=text/javascript>
      function upgrade(){

      window.open("detect.asp",null,"height=400,width=600,resizable=yes,status=yes,toolbar=yes,menubar=yes,location=no");
      }
      </SCRIPT>

      <SCRIPT language=JavaScript src="ultimate_detect.js" type=text/javascript>
      </SCRIPT>

      <STYLE type=text/css>
      <!--
      div.Section1
      {page:Section1;}
      -->
      </STYLE>
      </HEAD>

      <BODY>

      <DIV id=content-holder>

      <DIV id=content-home>

      <DIV id=content-home-text><!--StartFragment--><H1>Learning that's out of this
      world</H1>
      <P>UniSA will help to host one of the most exciting space education events in
      the world when the International Space University runs its 2004 summer session
      from June 27 to August 27. <A
      href="promo/2004/rocket.asp">more</A></P><!--EndFragment--></DIV>
      </DIV>
      </DIV>
      </BODY>
      </HTML>

      see https://bugzilla.mozilla.org/show_bug.cgi?id=244685
      however java exludes the data which comes before
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

      This data is important since it includes cirital metadata such as the source url that the selection if from. Colelction building tools need this data to be avilable.






      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      drag a selection from internet explorer into an application that provides the complete dump of the data from CF_HTML. This will need to be a piec of windows native code. see https://bugzilla.mozilla.org/show_bug.cgi?id=244685.

      Drag the same selection into a simple Java aplication which provides a dump of the information from drag and drop.




      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      the expected result is the dump shown previously.

      ACTUAL -
      the actual result is the dump minus the information before <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      goto http://ecologylab.cs.tamu.edu/combinFormation/index.html
      drag a selection from i.e Thoguh the draged items will not appear in the program, the trace file contains the dump of the data in the transferable object.


      Note this is the java plugin tracefile. simple search the file for DropTo.drop

      ---------- END SOURCE ----------

            Unassigned Unassigned
            dav Andrei Dmitriev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: