Sorry, you are quite right.  I shouldn’t have commented it was pretty
unprofessional of me.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Garret Wilson
Sent: Sunday, February 27, 2011 8:32 AM
To: MooTools Users
Subject: [Moo] Re: foo? XHTML support in MooTools

Can someone put Matthew's comment in context? On its face, it might come
across as condescending and might give the impression that MooTools couldn't
care less about XML compliance and that nobody has the time to bother doing
a search for "</foo>" in the MooTools source code.

On Feb 27, 12:11 am, "Matthew Hazlett" <[email protected]> wrote:
> I have no idea what you are talking about. But whatever your smoking 
> sounds to be pretty strong!
>
> -----Original Message-----
> From: [email protected]
>
> [mailto:[email protected]] On Behalf Of Garret Wilson
> Sent: Saturday, February 26, 2011 9:38 PM
> To: MooTools Users
> Subject: [Moo] Re: foo? XHTML support in MooTools
>
> Er, no. Not at all.
>
> The MooTools code explicitly and unashamedly creates HTML markup of 
> "</
> foo>". In fact, it does it twice. That is 100% invalid XHTML. You
> can't just go add an arbitrary end tag somewhere in the middle of nowhere.
>
> Looking at the code, it's clear it's doing some test to see if IE 
> matches end tags with certain queries. I would imagine the test can be 
> made to be valid XHTML quite easily. Better yet, please don't use 
> "foo"---you can probably add a couple of HTML beginning and end tags 
> and get the same result.
>
> Garret
>
> On Feb 26, 9:27 pm, "Matthew Hazlett" <[email protected]> wrote:
> > new Element('div');
>
> > Returns:
> > <div></div>
>
> > You want it to return:
> > <div/>
>
> > Is that your question?
>
> > -----Original Message-----
> > From: [email protected]
>
> > [mailto:[email protected]] On Behalf Of Steve Onnis
> > Sent: Friday, February 18, 2011 9:26 PM
> > To: [email protected]
> > Subject: RE: [Moo] foo? XHTML support in MooTools
>
> > Whats testNode.innerHTML = 'foo</foo>'; ?
>
> > Whats testNode refer to?
>
> > -----Original Message-----
> > From: Garret Wilson [mailto:[email protected]]
> > 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 "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: </div>.
> > Source File:
> > Line: 1, Column: 138
> > Source Code:
> > <html xmlns="http://www.w3.org/1999/xhtml"; xmlns:guise="http:// 
> > guiseframework.com/id/ml#"><div xmlns="http://www.w3.org/1999/ 
> > xhtml">foo</foo></
>
> > What!?? That's not my code. It's not TinyMCE, either! Could it be?...
>
> >                 try {
> >                         testNode.innerHTML = 'foo</foo>';
> >                         selected = 
> > testNode.getElementsByTagName('*');
> >                         starSelectsClosed = (selected && 
> > selected.length &&
> > selected[0].nodeName.charAt(0) == '/');
> >                 } catch(e){};
>
> >                 this.brokenStarGEBTN = starSelectsComments || 
> > starSelectsClosed;
>
> >                 // IE 8 returns closed nodes (EG:"</foo>") for
> > querySelectorAll('*')
> > for some documents
> >                 if (testNode.querySelectorAll) try {
> >                         testNode.innerHTML = 'foo</foo>';
> >                         selected = testNode.querySelectorAll('*');
> >                         this.starSelectsClosedQSA = (selected && 
> > selected.length &&
> > selected[0].nodeName.charAt(0) == '/');
> >                 } catch(e){};
>
> > Yes, I know nobody else probably uses or cares about XHTML, but I do.
>
> > (Weeps softly...)

Reply via email to