Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Debugged an issue, but why?

  • 22-07-2009 09: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,025 ✭✭✭✭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,278 ✭✭✭✭Eoin


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


Advertisement