[wp-trac] [WordPress Trac] #22693: Inserted images in some cases get the wrong size

WordPress Trac noreply at wordpress.org
Tue Dec 4 12:10:40 UTC 2012


#22693: Inserted images in some cases get the wrong size
------------------------------+---------------------
 Reporter:  jond3r            |       Owner:  nacin
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  3.5
Component:  Media             |     Version:  trunk
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------

Comment (by dd32):

 Replying to [comment:11 dd32]:
 > > However, selecting an option then another will add the 'selected'
 attribute to each of it.
 >
 > Browsers only allow one `<option>` to be selected within a `<select>`
 (Unless the multiple attribute is set), Selecting one option will cause
 all others to be deselected.

 Now that I've said that, and actually tested it.. I see what you mean.
 The DOM tree shown by an inspector shows the selected attribute on each
 element, This could be due to the usage of `$value.attr()` in the commit
 rather than `$value.prop()`, but regardless, jQuery( ..element.. ).val()
 always returns a single string of the actual selected element in my test.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22693#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list