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...)
