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.
Related posts:
- Geocoding in the UKThe art of geocoding addresses in the UK, , is...
- Where you headin’, luv?In I’ve covered the inherent difficulty of geocoding addresses and...
- Junior’s a programmer nowI didn’t take the traditional route to my present career....
- Cooking with SQLSQL was the sight of my first forays into programming,...
- More pizza squabblesThe other day I , and concluded that I should...

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
Fascinating