Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.32.0

Bug #16062 BB tag helper refers to non-existant variable "is_gecko"
Submitted: 2009-04-03 14:07 UTC
From: kornel Assigned: doconnor
Status: Closed Package: pearweb (version 1.17.1)
PHP Version: Irrelevant OS: *
Roadmaps: (Not assigned)    
Subscription  


 [2009-04-03 14:07 UTC] kornel (Kornel Lesinski)
Description: ------------ BB tag helper refers to non-existant variable "is_gecko", which causes it to fail in Opera (v10 alpha/OS X). BTW: Opera does have document.selection object. It's not safe to assume that having this object (and not being Gecko) implies being IE. Test script: --------------- http://pear.php.net/javascript/pear_editor.js Actual result: -------------- JavaScript - https://pear.php.net/pepr/pepr-proposal-edit.php Event thread: click ReferenceError Statement on line 8: Undefined variable: is_gecko stacktrace: Line 8 of linked script https://pear.php.net/javascript/pear_editor.js: In function insertTags if(document.selection && !is_gecko) { Line 1 of function script insertTags('pkg_description', '[i]', '[/i]','italic')

Comments

 [2009-05-23 23:04 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Closed -Assigned To: +Assigned To: doconnor
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.