Hi,

On Jul 1, 1:52 am, Jonny Nott <jonn...@gmail.com> wrote:
> Aha, Mr Crowder, you always have the answers! Thanks.
>
> So, any news on Prototype v 1.7.0.1, 1.7.1 or 1.8? Will the next
> version have the latest Sizzle in?

If the question is directed at me: I have no idea, I'm not involved
with Prototype's development. I'd _assume_ that any release of
Prototype would include the latest Sizzle unless there was a breaking
API change in Sizzle making grabbing the latest difficult, which could
cause a delay. The primary Sizzle API[1] consists of just three
functions, but who knows, maybe Prototype had to go under the covers
in order to provide some of Prototype's features. The Sizzle in jQuery
1.4.2, released 19 Feb 2010, doesn't have this `article` problem; the
Sizzle in Prototype 1.7, released nine months later (16 Nov 2010),
does (http://jsbin.com/osufay/4).

On the face of it, given Sizzle is meant to be self-contained and
Prototype supports pluggable selector engines, it should be trivial.
And in about 15 minutes I was able to copy my local prototype-1.7.js
file and swap in the Sizzle from the uncompressed jQuery 1.6.1[2]. The
result worked in our `up` test case. But I tend to assume it can't be
quite that easy and other things would be broken. I don't have the
time to go any further with it, but if anyone wants to follow the
recipe and run it through a test suite, here it is:

Copy prototype-1.7.js and replace lines 3,966-4,937 (inclusive) with
lines 3,700-5,106 (inclusive) from jQuery 1.6.1 uncompressed
release[2]. For visual reference:

prototype-1.7.js: Start and end lines starred:

  3964 })();
  3965 Prototype._original_property = window.Sizzle;
* 3966 /*!
  3967 * Sizzle CSS Selector Engine - v1.0
  3968 *  Copyright 2009, The Dojo Foundation
  ...
  4936  return Sizzle.filter( later, tmpSet );
* 4937 };
  4938
  4939
  4940 window.Sizzle = Sizzle;

jquery-1.6.1.js: Start and end lines starred:

  3696 });
  3697
  3698
  3699
* 3700 /*!
  3700 * Sizzle CSS Selector Engine
  ...
  5105  return Sizzle.filter( later, tmpSet );
* 5106 };
  5107
  5108 // EXPOSE
  5109 jQuery.find = Sizzle;

But again: I have no idea if that's all that's required, just that the
result worked in our `up` case finding `article`. It probably isn't
that easy.

Perhaps post a new thread asking about an update with just the latest
Sizzle.

Best,
--
T.J. Crowder
Independent Software Engineer
tj / crowder software / com
www / crowder software / com

[1] https://github.com/jquery/sizzle/wiki/Sizzle-Home
[2] http://code.jquery.com/jquery-1.6.1.js

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to