[wp-hackers] Press It "bug" in Firefox 0.9

Jason goldsmith unteins at gmail.com
Sat Jun 19 17:03:14 UTC 2004


Matt, I get the same error in FF 0.8

It doesn't cause the bookmarklet to fail per se, it just throws an
error in the Javascript Console....

On Sat, 19 Jun 2004 11:53:04 -0500, Matt Mullenweg <m at mullenweg.com> wrote:
> 
> Press It seems to work fine for me in FF .9.
> 
> Carthik Sharma wrote:
> 
> > Hi,
> >
> > While trying to use the Press It! bookmarklet with FireFox 0.9, I got
> > the following error :
> >
> > Deprecated method document.getSelection() called.  Please use
> > window.getSelection() instead.
> >
> > So I fixed the bookmarklet to be :
> >
> > javascript:if(navigator.userAgent.indexOf('Safari') >=
> > 0){Q=getSelection();}else{Q=document.selection?document.selection.createRange().text:window.getSelection();}void(window.open('http://blog.carthik.net/wp-admin/bookmarklet.php?text='+escape(Q)+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'WordPress
> > bookmarklet','scrollbars=yes,width=600,height=460,left=100,top=150,status=yes'));
> >
> > (changed document.getSelection() to window.getSelection() )
> >
> > to get everything working fine again.
> >
> > Thought I'd let y'all know.
> >
> > Carthik.
> >
> >
> >
> >
> 
> -- 
> Matt Mullenweg
>   http://photomatt.net | http://wordpress.org
> http://pingomatic.com | more soon...
> 
> 
> 
> 
> _______________________________________________
> hackers mailing list
> hackers at wordpress.org
> http://wordpress.org/mailman/listinfo/hackers_wordpress.org
>



More information about the hackers mailing list