Index: trunk/phase3/resources/jquery/jquery.localize.js |
— | — | @@ -37,7 +37,12 @@ |
38 | 38 | return mw.msg.apply( mw, args ); |
39 | 39 | }; |
40 | 40 | return $(this) |
41 | | - .find( 'html\\:msg' ) |
| 41 | + // Ok, so here's the story on this selector. |
| 42 | + // In IE 6/7, searching for 'msg' turns up the 'html:msg', but searching for 'html:msg' does not. |
| 43 | + // In later IE and other browsers, searching for 'html:msg' turns up the 'html:msg', but searching for 'msg' does not. |
| 44 | + // So searching for both 'msg' and 'html:msg' seems to get the job done. |
| 45 | + // This feels pretty icky, though. |
| 46 | + .find( 'msg,html\\:msg' ) |
42 | 47 | .each( function() { |
43 | 48 | var $el = $(this); |
44 | 49 | $el |