[wp-trac] [WordPress Trac] #31661: Quicktags: Can't add them using just a keyboard in IE

WordPress Trac noreply at wordpress.org
Fri Mar 27 00:35:35 UTC 2015


#31661: Quicktags: Can't add them using just a keyboard in IE
----------------------------------+----------------------------------------
 Reporter:  Cheffheid             |       Owner:
     Type:  defect (bug)          |      Status:  new
 Priority:  normal                |   Milestone:  Awaiting Review
Component:  Editor                |     Version:  4.1
 Severity:  normal                |  Resolution:
 Keywords:  has-patch needs-      |     Focuses:  accessibility, javascript
  testing                         |
----------------------------------+----------------------------------------

Comment (by afercia):

 Seen some documentation and examples, to my understanding:

 - document.getSelection() (equivalent of window.getSelection() ) doesn't
 work in Firefox on a textarea

 - selectionStart and selectionEnd properties in IE work starting from IE 9
 https://msdn.microsoft.com/en-us/library/ie/ff974768(v=vs.85).aspx
 https://msdn.microsoft.com/en-us/library/ie/ff974767(v=vs.85).aspx

 I think we should reverse the logic in quicktags and check first for
 `selectionStart` and `selectionEnd` support, then for `document.selection`
 (IE 8-)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31661#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list