[Moo] Re: foo? XHTML support in MooTools

2011-02-18 Thread rasmusfl0e
Sorry - didn't mean to come across as a wiseass. The xml declaration threw me off. Back in the day it sent IE into quirksmode no matter the doctype... :D Rare to see pages served as application/xhtml+xml (not just text/html) nowadays. Wonder if that is what triggers the bug... On Feb 19, 5:15 am,

[Moo] Re: foo? XHTML support in MooTools

2011-02-18 Thread Garret Wilson
On Feb 18, 7:38 pm, rasmusfl0e wrote: > You might get better results using an actual XHTML doctype... That is an actual XHTML doctype. See: http://www.w3.org/TR/html5/syntax.html#the-doctype It's not a doctype of XHTML 1.0 strict or transitional; nor of XHTML 1.1. It provides no DTD for validat

[Moo] Re: foo? XHTML support in MooTools

2011-02-18 Thread rasmusfl0e
You might get better results using an actual XHTML doctype... There's no telling how browsers will react combining an xml declaration with an HTML5 doctype (HTML5!=xml). You might want to stay clear of using an xml declaration if what you're building is supposed to work in IE (no support for appli

RE: [Moo] foo? XHTML support in MooTools

2011-02-18 Thread Steve Onnis
Whats testNode.innerHTML = 'foo'; ? Whats testNode refer to? -Original Message- From: Garret Wilson [mailto:gar...@globalmentor.com] Sent: Saturday, 19 February 2011 1:08 PM To: MooTools Users Subject: [Moo] foo? XHTML support in MooTools I thought about the nightmare of building my own

Re: [Moo] foo? XHTML support in MooTools

2011-02-18 Thread Fábio M . Costa
Hi Garret, Can you just confirm if your script tag is in the top of the document? Do you have any iframes on your page? This looks like is being thrown when doing feature detections, while setting the current document. Anyway, this looks like a bug and will be tested. It's probably fixed on a c

[Moo] foo? XHTML support in MooTools

2011-02-18 Thread Garret Wilson
I thought about the nightmare of building my own "domready" functionality and keeping it current with browsers, and decided to try MooTools once again. So I go back to MooTools and start playing around with my site. Firefox gives me this: Error: mismatched tag. Expected: . Source File: Line: 1, C

[Moo] Re: adding features to hasClass()

2011-02-18 Thread Garret Wilson
On Feb 18, 9:22 am, Ryan Florence wrote: > I'm really curious about your use case here, using regexes sounds > interesting.   I have a framework (Guise(TM); see http://www.guiseframework.com/ ) that sends back HTML from the server, in which the CSS is meaningful to the JavaScript-based engine. I

Re: [Moo] adding features to hasClass()

2011-02-18 Thread Christoph Pojer
> > In my own work I have extended MooTools far, far beyond what Core and More > has to offer. > and not always just in good ways. No offense, I guess every moo developer has "hacked" parts of Core or More to fit a project or to fit personal needs. I don't think this is a bad thing per se, it

Re: [Moo] this.parent() class constructor in IE

2011-02-18 Thread Christoph Pojer
also, always put Extends on top of your class definition, before all other properties or methods.

[Moo] Re: adding features to hasClass()

2011-02-18 Thread Garret Wilson
On Feb 18, 8:48 am, Arian Stolwijk wrote: > Even faster:http://jsperf.com/moo-hasclass-alternative/3 I wasn't aware of this jsperf.com thing. (Again, I've been out of the JavaScript loop for years.) I see that you've made the function even more efficient by taking out a nested function call, but

Re: [Moo] this.parent() class constructor in IE

2011-02-18 Thread Ryan Florence
Make sure you are using `Extends` not `Extend` (I see that a lot) or that your parent class (Animal) isn't spelled wrong. As usual, throw your code up on jsFiddle.net, somebody'll find the problem. On Feb 18, 2011, at 4:12 PM, Oren wrote: > Hey guys- It seems that in > > var Cat = new Class({

[Moo] Re: adding features to hasClass()

2011-02-18 Thread Garret Wilson
On Feb 18, 9:59 am, "Steve Onnis" wrote: > Yeah why do you need to split it into an array? Or even use an regExpr ? CSS > class names should be case sensitive anyway so i cant see why gool ol > indexOf() shouldn't be enough to see if a class name is in there. After all > you are just dealing with

Re: [Moo] this.parent() class constructor in IE

2011-02-18 Thread Arian Stolwijk
Seems to work fine: http://jsfiddle.net/u5ZYX/ Not sure what you're doing different... On Sat, Feb 19, 2011 at 12:12 AM, Oren wrote: > Hey guys- It seems that in > > var Cat = new Class({ >Extends: Animal, >initialize: function(name, age){ >this.parent(age); // calls initalize m

[Moo] this.parent() class constructor in IE

2011-02-18 Thread Oren
Hey guys- It seems that in var Cat = new Class({ Extends: Animal, initialize: function(name, age){ this.parent(age); // calls initalize method of Animal class this.name = name; } }); from http://mootools.net/docs/core/Class/Class the "this.parent()" function throws an

RE: [Moo] adding features to hasClass()

2011-02-18 Thread Steve Onnis
Yeah why do you need to split it into an array? Or even use an regExpr ? CSS class names should be case sensitive anyway so i cant see why gool ol indexOf() shouldn't be enough to see if a class name is in there. After all you are just dealing with a string here From: Arian Stolwijk [mailto:ar.

Re: [Moo] adding features to hasClass()

2011-02-18 Thread Aaron Newton
As Ryan states: anyone can help improve MooTools. Pull requests (esp. when there's a ticket added to lighthouse to match it) are cherished by us. Doing that sort of thing is what gets you on the dev mailing list (a private mailing list where we bicker about method names and the like) and eventually

Re: [Moo] adding features to hasClass()

2011-02-18 Thread Ryan Florence
I'm really curious about your use case here, using regexes sounds interesting. Personally, I never use hasClass, I tend to use element storage to manage element state. On Feb 18, 2011, at 7:14 AM, Garret Wilson wrote: > I need to check against regular expressions.

Re: [Moo] adding features to hasClass()

2011-02-18 Thread Arian Stolwijk
Even faster: http://jsperf.com/moo-hasclass-alternative/3 On Fri, Feb 18, 2011 at 4:37 PM, Ryan Florence wrote: > http://jsperf.com/moo-hasclass-alternative > > Yeah, it appears to be faster (need to test more browsers). Only question > is if it passes all the specs in all supported browsers. >

[Moo] Re: ScrollLoader

2011-02-18 Thread Christoph Pojer
oh so cool! I'm going to pull these into the main repository :) thanks!

Re: [Moo] adding features to hasClass()

2011-02-18 Thread Ryan Florence
http://jsperf.com/moo-hasclass-alternative Yeah, it appears to be faster (need to test more browsers). Only question is if it passes all the specs in all supported browsers. If it passes all the specs, then, as usual, fork core and specs (I like to create a branch too), push your changes, send

[Moo] Re: adding features to hasClass()

2011-02-18 Thread Garret Wilson
Ignore the P.S.; I just read http://stackoverflow.com/questions/779880/in-javascript-can-you-extend-the-dom and remembered. Argg, I had decided to abandon IE6, and thought that all my problems would now be over. I forgot about IE7. :)

[Moo] adding features to hasClass()

2011-02-18 Thread Garret Wilson
I appreciate the quick, honest and accepting responses on this forum. I'm still debating whether to convert my ~2005 library to use MooTools, or simply update it to recent changes myself. Some things make me want to move to MooTools, like when I look at all the element size/position fixups I wrote

[Moo] ScrollLoader

2011-02-18 Thread Adrian Statescu
Bonjour. because I like C. Pojer's ScrollLoader, I made, quickly, two demos using Twitter API based on this plugin.. demo1: http://thinkphp.ro/apps/js-hacks/scroll-loader/demos/test-twitter-search/ demo2: http://thinkphp.ro/apps/js-hacks/scroll-loader/demos/test-twitter-client/ source: https://git