Skip to content

Instantly share code, notes, and snippets.

@ronhuang
Created March 23, 2011 16:29
Show Gist options
  • Save ronhuang/883395 to your computer and use it in GitHub Desktop.
Save ronhuang/883395 to your computer and use it in GitHub Desktop.
Main navigation menu problem at www.mixedrealitylab.org
<!-- This is line 145 of www.mixedreality.nus.edu.sg -->
<li><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/" onmouseover="mopen('m1')" onmouseout="mclosetime()">About Us<div id="m1" onmouseover="mcancelclosetime()" onmouseout="mclosetime()"><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/cute-mxr/">CUTE / MXR</a><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/research/">Research</a><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/awardsprizes/">Awards/Prizes</a><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/people/">People</a><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/location/">Location</a><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/site-map/">Site Map</a></div></a></li><li><a href="http://www.mixedreality.nus.edu.sg/index.php/projects/" onmouseover="mopen('m2')" onmouseout="mclosetime()">Projects<div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()"><a href="http://www.mixedreality.nus.edu.sg/index.php/projects/all-projects/">All Projects</a><a href="http://www.mixedreality.nus.edu.sg/index.php/projects/software/">Software</a><a href="http://www.mixedreality.nus.edu.sg/index.php/projects/lab-start-up-companies/">Lab Start Up Companies </a><a href="http://www.mixedreality.nus.edu.sg/index.php/projects/paper-lists/">Publications</a><a href="http://www.mixedreality.nus.edu.sg/index.php/projects/booklist/">Booklist</a><a href="http://www.mixedreality.nus.edu.sg//media/mxrwiki/mxrwiki/doku.php?id=start" target="_blank">Student Progress Reports</a></div></a></li><li><a href="http://www.mixedreality.nus.edu.sg/index.php/mediacenter/" onmouseover="mopen('m3')" onmouseout="mclosetime()">Media<div id="m3" onmouseover="mcancelclosetime()" onmouseout="mclosetime()"><a href="http://www.mixedreality.nus.edu.sg/index.php/mediacenter/press/">Press</a><a href="http://www.mixedreality.nus.edu.sg/index.php/mediacenter/events/">Events</a><a href="http://picasaweb.google.com/106341802660447646160" target="_blank">Photos</a><a href="http://www.youtube.com/user/mixedrealitylab" target="_blank">YouTube</a><a href="http://www.mixedreality.nus.edu.sg/index.php/mediacenter/terms-of-use">Terms Of Use</a></div></a></li>
<!-- This is the beautified version of line 145. -->
<!-- The first anchor <a> element includes other (nested) anchors, which is illegal! -->
<li>
<a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/" onmouseover="mopen('m1')" onmouseout="mclosetime()">About Us
<div id="m1" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
<a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/cute-mxr/">CUTE / MXR</a>
<a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/research/">Research</a>
<a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/awardsprizes/">Awards/Prizes</a>
<a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/people/">People</a>
<a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/location/">Location</a>
<a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/site-map/">Site Map</a>
</div>
</a>
</li>
<!-- Only beautifying the first menu. -->
<li><a href="http://www.mixedreality.nus.edu.sg/index.php/projects/" onmouseover="mopen('m2')" onmouseout="mclosetime()">Projects<div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()"><a href="http://www.mixedreality.nus.edu.sg/index.php/projects/all-projects/">All Projects</a><a href="http://www.mixedreality.nus.edu.sg/index.php/projects/software/">Software</a><a href="http://www.mixedreality.nus.edu.sg/index.php/projects/lab-start-up-companies/">Lab Start Up Companies </a><a href="http://www.mixedreality.nus.edu.sg/index.php/projects/paper-lists/">Publications</a><a href="http://www.mixedreality.nus.edu.sg/index.php/projects/booklist/">Booklist</a><a href="http://www.mixedreality.nus.edu.sg//media/mxrwiki/mxrwiki/doku.php?id=start" target="_blank">Student Progress Reports</a></div></a></li>
<li><a href="http://www.mixedreality.nus.edu.sg/index.php/mediacenter/" onmouseover="mopen('m3')" onmouseout="mclosetime()">Media<div id="m3" onmouseover="mcancelclosetime()" onmouseout="mclosetime()"><a href="http://www.mixedreality.nus.edu.sg/index.php/mediacenter/press/">Press</a><a href="http://www.mixedreality.nus.edu.sg/index.php/mediacenter/events/">Events</a><a href="http://picasaweb.google.com/106341802660447646160" target="_blank">Photos</a><a href="http://www.youtube.com/user/mixedrealitylab" target="_blank">YouTube</a><a href="http://www.mixedreality.nus.edu.sg/index.php/mediacenter/terms-of-use">Terms Of Use</a></div></a></li>
<!-- This is how Chrome will interpret line 145. -->
<!-- Chrome resolves the nested anchors with the following interpretation. -->
<!-- The second anchor element is causing the menu to close abnormally. -->
<li>
<a href="http://www.mixedreality.nus.edu.sg/index.php/projects/" onmouseover="mopen('m2')" onmouseout="mclosetime()">Projects</a>
<div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()" style="visibility: hidden; ">
<a href="http://www.mixedreality.nus.edu.sg/index.php/projects/" onmouseover="mopen('m2')" onmouseout="mclosetime()"></a>
<a href="http://www.mixedreality.nus.edu.sg/index.php/projects/all-projects/">All Projects</a>
<a href="http://www.mixedreality.nus.edu.sg/index.php/projects/software/">Software</a>
<a href="http://www.mixedreality.nus.edu.sg/index.php/projects/lab-start-up-companies/">Lab Start Up Companies </a>
<a href="http://www.mixedreality.nus.edu.sg/index.php/projects/paper-lists/">Publications</a>
<a href="http://www.mixedreality.nus.edu.sg/index.php/projects/booklist/">Booklist</a>
<a href="http://www.mixedreality.nus.edu.sg//media/mxrwiki/mxrwiki/doku.php?id=start" target="_blank">Student Progress Reports</a>
</div>
</li>
<!-- Other menus are ignored for simplicity. -->
<!-- This is a possible solution. -->
<!-- Close the first anchor <a> element. -->
<li><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/" onmouseover="mopen('m1')" onmouseout="mclosetime()">About Us</a><div id="m1" onmouseover="mcancelclosetime()" onmouseout="mclosetime()"><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/cute-mxr/">CUTE / MXR</a><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/research/">Research</a><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/awardsprizes/">Awards/Prizes</a><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/people/">People</a><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/location/">Location</a><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/site-map/">Site Map</a></div></li>
<!-- Beautified version. -->
<li>
<a href="http://www.mixedreality.nus.edu.sg/index.php/projects/" onmouseover="mopen('m2')" onmouseout="mclosetime()">Projects</a>
<div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()" style="visibility: hidden; ">
<a href="http://www.mixedreality.nus.edu.sg/index.php/projects/all-projects/">All Projects</a>
<a href="http://www.mixedreality.nus.edu.sg/index.php/projects/software/">Software</a>
<a href="http://www.mixedreality.nus.edu.sg/index.php/projects/lab-start-up-companies/">Lab Start Up Companies </a>
<a href="http://www.mixedreality.nus.edu.sg/index.php/projects/paper-lists/">Publications</a>
<a href="http://www.mixedreality.nus.edu.sg/index.php/projects/booklist/">Booklist</a>
<a href="http://www.mixedreality.nus.edu.sg//media/mxrwiki/mxrwiki/doku.php?id=start" target="_blank">Student Progress Reports</a>
</div>
</li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment