Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Debugged an issue, but why?

  • 22-07-2009 08:09PM
    #1
    Registered Users, Registered Users 2 Posts: 4,475 ✭✭✭


    I got a bug report today that said that some popup menus I had weren't working on IE on a PC. Just IE, natch. After several hours I traced the problem to a comment I'd attached to the php source. It was a simple html comment above the initial <?php. Originally there was a header file above it, but I'd moved things around. The upshot was that the html comment appeared as the very first line in the html source. And this buggered up my popup menus (standard css using li, hover, etc). Great, resolved, but I'm interested in how a html comment on line 1 of the file causes IE to throw a hissy fit with regard to styles. I know IE is a little flaky at the best of times, but is this a known issue?


Comments

  • Registered Users, Registered Users 2 Posts: 12,034 ✭✭✭✭Giblet


    Might it have been a doctype issue?


  • Registered Users, Registered Users 2 Posts: 4,475 ✭✭✭corblimey


    That was my original thought, that it was somehow overwriting the doctype or something, but the page behaving perfectly normally except that it wouldn't show popup menus. An odd thing to choose not to show.


  • Registered Users, Registered Users 2 Posts: 21,283 ✭✭✭✭Eoin


    Could the page validate with the comment at the top of the page? If not, then all bets are off.


Advertisement
Advertisement