| Summary: | [Shell][Label][Button] Text not displayed in IE8 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Chris Fairhall <chris> | ||||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P1 | CC: | austin.riddle, ivan | ||||||
| Version: | 1.5 | ||||||||
| Target Milestone: | 1.5 M2 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Tree, Table, Link, Combo, DateTime, ImageHyperlink, CLabel and Group widgets are not effected. All of this works perfectly in Chrome but as we're developing an app for a corporate environment it has to run on IE8/XP Probably related to Label/Button protocol switch, but currently have no idea how. Austin Riddle reported the same issue with his application. Unfortunately, I can't reproduce it with fully updated IE8 (Windows XP SP3 with all updates installed). "About" dialog looks good - Label and Button text is there. Created attachment 202734 [details]
Working IE8
Chris, in your screenshot the Shell titlebar text is missing as well. I will really appreciate some more information about your environment. Austin already confirmed that the text is not available in the DOM, but exists in the protocol message sent by the server. My suspicion is in the new EncodingUtil.js introduced on the client. It is used in all Shell, Label and Button adapters. Could you change EncodingUtil.js#escapeText as follow:
escapeText : function( text, mnemonics ) {
return text;
}
Does it make any difference? Don't forget to run your application with "debug" client-side library variant.
> Don't forget to run your application with "debug" client-side library variant. While trying this I started it up with the debug client option and no other changes. This fixed the issue. perhaps something is dodgy with client.js? > Unfortunately, I can't reproduce it with fully updated IE8 Try it without client debug I've had a look through client.js Line 34, column 728 (of rap-runtime-1.5.0-N-20110904-2111) contains a null character. It should contain a \000 like in EncodingUtil.js line 64. Looks like the javascript compressor RAP uses is replacing \000 with an actual null and IE doesn't like it. (In reply to comment #7) > I've had a look through client.js > Line 34, column 728 (of rap-runtime-1.5.0-N-20110904-2111) contains a null > character. It should contain a \000 like in EncodingUtil.js line 64. > > Looks like the javascript compressor RAP uses is replacing \000 with an actual > null and IE doesn't like it. Thanks for the pointer. I will have a look on it immediately. Good news... I can reproduce it in IE8 with "standard" client library (client.js). Fixed in CVS HEAD by replacing "\000" in EncodingUtil.js#truncateAtZero with String.fromCharCode( 0 ). |
Created attachment 202728 [details] screenshot Some time after 1.5 M1 text on labels stopped being displayed in IE8/XPsp3 Some time after rap-runtime-1.5.0-N-20110829-0431 the text on buttons is also missing. This is reproducable in the RAP Demo. most visible in the about dialog.