[wp-trac] [WordPress Trac] #3927: Dragging and dropping uploaded image can retain the onclick="return false; " attribute

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 7 22:08:09 GMT 2007


#3927: Dragging and dropping uploaded image can retain the onclick="return false;"
attribute
----------------------------+-----------------------------------------------
 Reporter:  johnbillion     |       Owner:  anonymous            
     Type:  defect          |      Status:  new                  
 Priority:  normal          |   Milestone:                       
Component:  Administration  |     Version:  2.1                  
 Severity:  minor           |    Keywords:  uploading needs-patch
----------------------------+-----------------------------------------------
 Steps to reproduce:

  1. Open up the New Post writing screen and make sure you're using the
 visual editor.
  2. Upload an image using the inbuilt upload box, or click on Browse All
 to see your existing uploads.
  3. If you've clicked Browse All then single click on an image (must be an
 image) to open up the further options.
  4. Drag and drop the image from there onto your post editing box.
  5. Now switch to the 'code' tab or publish the post and then view it
  6. Note that the hyperlink retains the `onclick="return false;"`
 attribute which is used internally in the upload box.

 Tested in Firefox 2 on Windows XP. Doesn't affect IE or Opera as you can't
 drag and drop with those anyway.

 This means if the hyperlink is clicked on the published post, nothing
 happens as the `return false` kicks in.

 Affects 2.1 release and 2.2 bleeding as of r4999.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3927>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list