Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Debugged an issue, but why?

  • 22-07-2009 8: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: 11,989 ✭✭✭✭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,263 ✭✭✭✭Eoin


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


Advertisement