What’s up, firebug?

In the space of one day (in real-time, not blog-post-spacing time) I’ve found not one, but two incongruities in firebug’s error reporting.

The second is that if you mistakenly leave the src attribute of a script tag blank, i.e.

<script type="text/javascript" src="" ></script>

you will get the following (or similar) doctype error:

syntax error
I’m well aware this doesn’t make interesting reading, but it might help somebody spend less time than I did trying to resolve the issue.

No related posts.

2 Responses to “What’s up, firebug?”

  1. FastLions says:

    Hello Rhys,
    That isn’t a firebug bug, when leaving the src of any html tag empty, it defaults to the current page.

    What you are basically doing is loading and html page as javascript code.
    Firebug is correct in saying the 1st line (<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”\n) is invalid Javascript.

    Hope that helps
    Regards

Leave a Reply

Security Code: