Bug Tracker

Opened 8 years ago

Closed 8 years ago

#10102 closed bug (cantfix)

.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:
Blocked by: Blocking:

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 (1)

comment:1 Changed 8 years ago by dmethvin

Component: unfiledevent
Priority: undecidedlow
Resolution: cantfix
Status: newclosed

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

Note: See TracTickets for help on using tickets.