mootools/mootools-core — Issue #2104: Event Delegation colon escape has no effect
Author: hieblmedia
Created: 2011-10-13 20:44:09+00:00
State: open

Some selectors can have a colon. This does not work with relay.

Following code (selector "#billing\\:country_id") does not work within relay:

```javascript
document.id('myElement').addEvent("change:relay(#billing\\:country_id)", function(event, target){
// do
});
```

All other escapes does work e.g.

```javascript
document.id('myElement').addEvent("change:relay(select[name=billing\\[country_id\\]])", function(event, target){
// do
});
```

Also colon works without relay

```javascript
document.id('#billing\\:country_id').addEvent("change", function(event){
// do
});
```