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,
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
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
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
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
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
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
>
> 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
also, always put Extends on top of your class definition, before all other
properties or methods.
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
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({
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
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
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
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.
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
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.
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.
>
oh so cool! I'm going to pull these into the main repository :) thanks!
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
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. :)
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
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
23 matches
Mail list logo