Using Mozilla in Testing and Debugging
Henrik Gemal writes "In this article I will describe some very cool features in Mozilla which will enable you to quickly find and debug errors in your web site and web applications."
← Back to Stories (view on slashdot.org)
websites & webpages have reached a complexity whereby mistakes are refered to as 'bugs' like as if it were software. It seems the slow drift towards the internet being the computer is slowly happening. Nowonder Microsoft was so afraid of Netscape, though they thought it'd happen much quicker, though it probably would've with the speed Netscape came up with new things (where as MS not having done any real improvements to their browser for a long time).
I normally use mozilla when I'm doing web development, however I still have to run throught he site in IE. Mozilla has great development features, but I have found that IE has bastardized HTML. Mozilla also has it's issues with tables (I'm currently having issues with non wraping text rows) and Horizontal rules (for some reason it just won't display on certain pages). You should see the code to get around the nonwraping text, my god it's horrid. Another thing is that Mozilla's javascript is slightly different than Microsoft's. I have found that IE 5.0's implementation is different than 5.5 and 6.0. Mozilla will also let you get away with certain variable addressings that IE will choke on. Mozilla is great, but you still have to use IE at some point. IE still forces us to do stupid things :[
I have really been impressed with mozilla since they went fully standards compliant (back in '96 I remember it being all the rage to complain about netscape and how their "netscape-isms" like the , etc tags were ruining HTML).
.NET
Let's hope that with these new developer features they continue with this compliancy, and don't go and do what MS did to scripting/programming languages when they released
Work sucked, until it became unemployment, when it became slightly more tolerable. -Tet
I'd really like to see a simple plug-in that adds only one visible element to the standard interface, a smiley/frownie face, ala iCab, that indicates whether the HTML of the page actually validates to the DTD declared in the document itself. Clicking on a frownie face would bring up a list of validation errors. This would be a great tool for site developers, making mistakes quickly visible.
It would be an even better tool for standards evangelism if it was included in the default installation of Mozilla/Phoenix. Then you'd turn the entire population of Mozilla users into nitpickers, who would hound site developers about lack of standards compliance.
From personal experience, nothing makes you fix problems faster than users regularly sending you e-mail about things that are broken. So making it obvious when things are broken would lead to more feedback, and more feedback would lead to more standards-compliant websites.
Which would be good for Mozilla, and all other browser developers who work towards standards-compliance.
To make a browser never time out, you'd first have to convince people to stop using TCP/IP for sending data between the server and your machine.
I for one, have never found myself doing any debugging in the browser past printing to it from php. Thats how i debug, simple. My html is rarely at fault, and if it looks good in IE or Phoenix, then it rocks. I dont do javascript. I dont do stuff client side. Theres nothing for the client to debug, job done.
As an aside, this article struck me as less of a "handy things in mozilla" and more of a "oooh look at what mozilla does over IE". It really struck me as that, another flag waving rather than truely informative.
If you just clone IE, what's the point of having Mozilla?
The whole point to mozilla is to compete with IE. They are producing a superior, standards complaint browser that will eventually force microsoft to clean up their act.
Conformity is the jailer of freedom and enemy of growth. -JFK
I'm,
A big fan of Mozilla, but I do have to admit that I would prefer it if things remained a tad bit more stable.
For example, from the 1.2 to 1.3 release of Mozilla the "New Tab" popup menu item moved from the 0 (zero) position in the popup menu to the 2 position.
From a day to day useability standpoint it's annoying for the menu's and the like to change around but just try to write certain automated test programs with that sort of thing going on.
I know that Mozilla is usually advertised as "test platform" but that doesn't mean that it also should serve as a point of frustration for those who would like to be able to count on a feature existing from one dot release to another.
Other than those sorts of things I love the darn thing.
Over...
Caution: Contents under pressure
Interesting? Everytime a Mozilla article pops up so does this comment. Redundant is more like it.
But I guess however I'm in a troll feeding mood. So lets examine a few facts:
A) Mozilla is 4 apps in one. Some people like this, some people don't. If you don't like it then use Phoenix or one of the other stand-alone browsers
B) For an app that is four apps in one, Mozilla has a relatively small foot-print. I've got several tabs open and the mail client right now and its only using 48 megs (mostly just idle in swap) that's on Linux.
C) IE (which I'm assuming you run) starts up faster than Moz, why? because IE starts up with windows so you actually run it all the time. Besides in Windows you can run mozilla in your sys-tray so that you get a fast start up just like IE.
D) I don't have turbo mode on (I don't even think its availiable in Linux) and still Moz starts up very fast on my 1 Ghz Athlon
And E) a little extra code to tell you where Javascript errors wouldn't really be creating much bloat even if there was bloat in the first place.
Mozilla does have a way to edit source, its call 'Composer' which is an HTML editor. View Source isn't for editing files, and the fact that MS decided to use the wonderful invention of Notepad for their view source has always annoyed me.
And on a side note as a web developer, Mozilla with its web development tools plus Vim is far easier to use and more powerful that DreamWeaver or anything else out there IMHO.
The Anti-Blog