Site Navigation

Tuesday, January 19, 2010

bug 209 - prompt() rendering glitch in Opera

Issue: #209
Affects: Opera 10.10, 10.20, 10.50, 10.60

Unlike the problems with the prompt dialog in IE (bug 109) (bug 139), and the features of the Safari prompt dialog (feature 266), the Opera JavaScript dialogs have typically been excellent and even lead the pack in terms of features like adding the hostname to help prevent XSS (Cross Site Scripting) and a checkbox to escape endless loops that crop up mostly during development of course! ;-)

However during some dialog testing we noticed that Opera has a rendering glitch with the prompt() dialog.



Example:

<script type="text/javascript">
var data = [];
var count = 50;
for(var i=0;i<count;i++){
data.push('For your information, this is item # ' + (i+1));
}
prompt(data.join('\n'),'a default value');
</script>



Known Workarounds: None. You'll have to limit your prompt dialogs to a few paragraphs. (Keep in mind that IE can't render more than 2 lines!)



Related Issues: None.


Bug/Site Feedback |
Submit a bug