Bug Tracker

Modify

Ticket #10102 (closed bug: cantfix)

Opened 21 months ago

Last modified 21 months ago

.Select event on ReadOnly textarea dosen't fire callback function.

Reported by: ilcesco@… Owned by:
Priority: low Milestone: None
Component: event Version: 1.6.2
Keywords: Cc:
Blocking: Blocked by:

Description

sample code:

<textarea id="textareaElement" readonly="readonly">lorem ipsum</textarea>

<script type="text/javascript">
$('#textareaElement').select(function(){
   alert('HELLO?');
});
</script>

In Chrome and Safari: The callback function isn't called when textAreaElement have readonly="readonly" attribute.

In Firefox: It works

Change History

comment:1 Changed 21 months ago by dmethvin

  • Priority changed from undecided to low
  • Resolution set to cantfix
  • Status changed from new to closed
  • Component changed from unfiled to event

It's not caused by jQuery, here is the example in bare DOM/JS:

 http://jsfiddle.net/dmethvin/JJAYR/

I wasn't able to find any discussion relating to special handling of the select event on read-only text inputs, so I assume this is a bug in the browsers. You'll want to report it to them.

 http://www.w3.org/TR/html4/interact/scripts.html#adef-onselect

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.