On Nov 20, 5:59*pm, Kenny <kentil...@gmail.comwrote:
Quote:
David Mark wrote:
Quote:
On Nov 20, 10:37 am, Kenny <kentil...@gmail.comwrote:
>
>
Quote:
Quote:
>>These JS frameworks are death by a thousand cuts. Dojo is 300k
>>compressed and I am still building. And lots of lame code out there,
>>they cannot even follow the simplest HIG principles.
>
Quote:
Quote:
>>Trying to talk the boss into letting me just do HTML/CSS/JS and start
>>enjoying programming again.
>
Quote:
Quote:
>Nope, qooxdoo is the answer. Hides HTML and CSS, very fast,
>
Quote:
Then, what is the question?
>
I have graduated from asking to informing.
>
Never mind. I see that the question is "name another monstrous blob
of ill-advised browser scripting rubbish."
/**
* Whether the first element contains the second one
*
* Uses native non-standard contains() in Internet Explorer,
* Opera and Webkit (supported since Safari 3.0 beta)
*
* @signature function(element, target)
* @param element {Element} Parent element
* @param target {Node} Child node
* @return {Boolean}
*/
contains : qx.core.Variant.select("qx.client",
{
"webkit|mshtml|opera" : function(element, target)
So if some baseless series of characters contains these strings
(assumes some variant of Safari, IE or Opera), take this fork.
{
if (qx.dom.Node.isDocument(element))
Passing a document to this would seem a waste for most applications.
And who knows what sort of mysticism is used in this "isDocument"
method? Designs that require differentiating between host object
types are doomed to fail (see jQuery.)
{
var doc = qx.dom.Node.getDocument(target);
return element && doc == element;
} else if (qx.dom.Node.isDocument(target))
{
return false;
Waste of code.
}
else
{
return element.contains(target);
Assumes a non-standard method exists. Blows up in anything that looks
remotely like IE, Safari or Opera, but does not implement a "contains"
method on elements.
}
},
//
http://developer.mozilla.org/en/docs...cumentPosition
"gecko" : function(element, target) {
Sure, anything that calls itself "Gecko" must...
return !!(element.compareDocumentPosition(target) & 16);
support compareDocumentPosition!
},
[snip]
Didn't this thing die out years ago? Certainly it should have. It is
the same sort of generalized, over-the-top incompetent rubbish that
has plagued Web applications during this initial craze over Ajax.