miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Bugs miniBB Support Forums / Bugs /  
 

Fix for the "quote problem in Safari"

 
Author anime
Guest
#1 | Posted: 27 Mar 2004 08:07 
In the file "main_posts.html" the function "pastSel" looks like this:

function pasteSel() {
if(document.getSelection) selection=document.getSelection();
else if(document.selection) selection=document.selection.createRange().text;
else if(window.getSelection) selection=window.getSelection;
else selection='';
}

It should look like this:

function pasteSel() {
if(document.getSelection) selection=document.getSelection();
else if(document.selection) selection=document.selection.createRange().text;
else if(window.getSelection) selection=window.getSelection();
else selection='';
}

Author fubar
Partaker
#2 | Posted: 27 Mar 2004 08:42 
What was the symptom of this problem? I'd like to test for it in other browsers.

Author anime
Partaker
#3 | Posted: 27 Mar 2004 17:10 
If you selected the words "symptom of this problem" and then clicked the "Quote" command you would get:

[i][function][/i]

instead of:

[i]symptom of this problem[/i]

The following is an explanation of the bug for those not familiar with javascript:

The bug would only affect browsers that support "window.getSelection", but don't support "document.getSelection" and "document.selection".

The code is supposed to test whether a feature exists and then use that feature. That is what the code does for the first two, not for the third.

Author Team
8-)
#4 | Posted: 29 Mar 2004 10:26 
In which browser did you find this problem?

Author hugh
Partaker
#5 | Posted: 29 Mar 2004 16:17 
The problem was in Safari, as discussed in this thread: https://www.minibb.com/forums/index.php?action=vthread&forum=3&topic=12 92

This is very interesting. Is there any chance of a fix that will make the quote function work in Opera?

Author Jeremy
Finder
#6 | Posted: 30 Mar 2004 05:18 
http://www.apple.com/safari/

Safari is a great browser, has many things IE lacks and is very fast. It's shaky on some edges of website compatibility, being such a new browser, but it's improving rapidly (as apple's dev team is cooperating with the open source khtml team to make the engine).

konqueror and safari both use the khtml engine, so if you only have a pc, you could test code using konqueror for safari support.

Bugs miniBB Support Forums / Bugs /
 Fix for the "quote problem in Safari"
 Share Topic's Link

This topic is closed. New replies are not allowed.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Try the File and Picture Attachments add-on: extend your miniBB-forums, attaching images and files.


  ⇑