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 application/ xhtml+xml yet). If that's even an option with the framework you're using. On Feb 19, 3:30 am, Garret Wilson <[email protected]> wrote: > Yes, here's my header:<?xml version="1.0" encoding="utf-8"?> > > <!DOCTYPE html> > <html > dir="ltr"xmlns="http://www.w3.org/1999/xhtml"lang="en-US"xmlns:guise="http://guiseframework.com/id/ml#"guise:attributeHash="t7OoQLtcn/ECy86A85v5nhmyO9g="guise:contentHash="+1hf0DY/la9aHvxnHTTsVmFHSuY="> > <head guise:contentHash="/jr4lXGoI33mxQnhci91Vl4CEX8="> > <!-- > Document:http://localhost:8080/ > Created: February 18, 2011 6:30:07 PM PST > > XHTML produced by an unlicensed copy of Guise^(TM) build 2009-09-20a. > For more information on Guise^(TM), please go > tohttp://www.guiseframework.com/or contact<[email protected]>. > --> > <title guise:contentHash="QwDH+Gz6T9zGzCPZN4+Z9d2v24E=">The > Marmox^(TM) Network</title> > <link > rel="stylesheet"type="text/css"href="/~guise/assets/themes/root/root.css > <view-source:http://localhost:8080/%7Eguise/assets/themes/root/root.css>"guise:attributeHash="Ha8FtYLmyUUneM39x7YXZHbeuso="></link> > <link > rel="stylesheet"type="text/css"href="/~guise/assets/themes/basic/basic.css > <view-source:http://localhost:8080/%7Eguise/assets/themes/basic/basic.css>"guise:attributeHash="p9W2esUqvzr3aQoctRZAepgvgwY="></link> > <link rel="stylesheet"type="text/css"href="/marmox.css > <view-source:http://localhost:8080/marmox.css>"guise:attributeHash="oSVr0anj1J9fPOi8w8B99Utqcz4="></link> > <script > type="text/javascript"guise:attributeHash="2Co/0VidU/XgK2vps6yR9ICXkMo="guise:contentHash="Lo6ehOTHSD/jM2vcpg/0bnmgh1Y="> > > navigator.userAgentName="Firefox"; > navigator.userAgentVersionNumber=3.6; > var javascriptVersion=1.0; > var GUISE_ASSETS_BASE_PATH="/~guise/assets/"; > var GUISE_VERSION="2009-09-20a"; > </script> > <script > language="JavaScript1.1"guise:attributeHash="x1OUOi4wLcWC7E9RtuFgdqVUKbE="guise:contentHash="F1QoQzkLooc6+c3QPfZe8velhTQ="> > javascriptVersion=1.1; > </script> > <script > language="JavaScript1.2"guise:attributeHash="8iQw2qDnneSzoHTGdI/wLvnpoCc="guise:contentHash="U56WFNvhK2z5g/LfBMUQRrWIjlk="> > javascriptVersion=1.2; > </script> > <script > language="JavaScript1.3"guise:attributeHash="PQP+Bi4cDSSQQGrRZsrTbz7L+JU="guise:contentHash="e4kv3PJxQSm4OA9bodF+3QiiKcY="> > javascriptVersion=1.3; > </script> > <script > language="JavaScript1.4"guise:attributeHash="5ucutWFFwf/hB7bk/3yHAWdjCE4="guise:contentHash="GZ5idhDpcuosVpHqGw8t7/HxEoc="> > javascriptVersion=1.4; > </script> > > <script > language="JavaScript1.5"guise:attributeHash="bONDrYXZLNVbcJiS5OECaGe7UJ0="guise:contentHash="bqXzsM1ao6iajfTozWHnZqhWWUI="> > javascriptVersion=1.5; > </script> > <script > language="JavaScript2.0"guise:attributeHash="C5S2+MxZIP1XWoKGRxXrtl+FebE="guise:contentHash="JxKhU76rF5LI7+ul322nbMXsAhI="> > javascriptVersion=2.0; > </script> > <script > src="/~guise/assets/javascript/mootools/mootools-core-1.3-full-nocompat.js > <view-source:http://localhost:8080/%7Eguise/assets/javascript/mootools/mootools-co...>"type="text/javascript"guise:attributeHash="OcONbEfkdnf4EuK5SwwZX92VS+g="></script> > <script > src="/~guise/assets/javascript/globalmentor/javascript.js?guiseVersion=2009-09-20a > > <view-source:http://localhost:8080/%7Eguise/assets/javascript/globalmentor/javascr...>"type="text/javascript"guise:attributeHash="2PEPxmnBxRlntveLpzkIj41HCh0="></script> > <script > src="/~guise/assets/javascript/globalmentor/dom.js?guiseVersion=2009-09-20a > <view-source:http://localhost:8080/%7Eguise/assets/javascript/globalmentor/dom.js?...>"type="text/javascript"guise:attributeHash="plEQsF6X5i/6XNdbjVqIzSQdaD4="></script> > <script > src="/~guise/assets/javascript/globalmentor/ajax.js?guiseVersion=2009-09-20a > <view-source:http://localhost:8080/%7Eguise/assets/javascript/globalmentor/ajax.js...>"type="text/javascript"guise:attributeHash="J4hC9U42eaLaM8O97G/+A0OGfMo="></script> > <script > src="/~guise/assets/javascript/guise/guise.js?guiseVersion=2009-09-20a > <view-source:http://localhost:8080/%7Eguise/assets/javascript/guise/guise.js?guise...>"type="text/javascript"guise:attributeHash="h/BPfrzEHOcmvRc7mrJ51Edyav4="></script> > > <script > src="/~guise/assets/javascript/google/gears_init.js?guiseVersion=2009-09-20a > <view-source:http://localhost:8080/%7Eguise/assets/javascript/google/gears_init.js...>"type="text/javascript"guise:attributeHash="Eo24pwIOYtvBWVuDf3bXJAI28V0="></script> > <script > src="/~guise/assets/javascript/tiny_mce/tiny_mce_src.js?guiseVersion=2009-09-20a > > <view-source:http://localhost:8080/%7Eguise/assets/javascript/tiny_mce/tiny_mce_sr...>"type="text/javascript"guise:attributeHash="rTIsuqC+sWp5hISqvmMQGKkWLL8="></script> > </head> > > G > > On 2/18/2011 6:25 PM, F�bio M. Costa wrote: > > > 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 code push i've done for Slick 1.1.x (Will be included on > > Mootools 1.3.1). > > FYI, We've got around 700 specs just for xhtml documents, so yeah we > > care about xhtml documents. > > > -- > > F�bio Miranda Costa > > frontend@portalpadroes > > Globo.com > > *github:* fabiomcosta > > *twitter:* @fabiomiranda > > *ramal:* 6476 > > > On Sat, Feb 19, 2011 at 12:07 AM, Garret Wilson > > <[email protected] <mailto:[email protected]>> wrote: > > > 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# <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...)
