Slashdot Mirror


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."

66 of 231 comments (clear)

  1. I'm a big fan of the html highlighting by friedegg · · Score: 3, Informative

    It lets me glace at things pretty quickly to get an idea of what may be wrong, and saves me the step of loading it into a full blown editor. Plus, I can select only part of a document and just view that particular source.

    I also like the http header viewer add-on mentioned in the article. I used to have to visit a website and use that to view headers.

    --
    Google doesn't index user sigs, so stop trying to "Google Bomb" with them.
  2. Venkman is good by digitalgimpus · · Score: 5, Informative

    This is also a good page to checkout for more info:

    http://mozilla.org/projects/venkman/

    Venkman is the JS debugger in Mozilla... and it's sweet.

    There is also a Netscape made intro that may be helpful to new users:
    http://devedge.netscape.com/viewsource/200 2/venkma n/01/

  3. I must be using Debian for too long... by Trepidity · · Score: 2, Funny

    When I read that headline I thought "what's so hard about using Mozilla in testing? Just apt-get install mozilla, same as in woody and sid..."

  4. ok, so.... by Anonymous Coward · · Score: 2, Interesting

    in this new roadmap the mozilla tema put out, where does this stuff fit in? Features like this are decidedly pimpin and mozilla has tons of cool features that I'm always uncovering. But the new roadmap said to focus on phoenix and minotaur. Phoenix is lean and mean and minotaur is email, where does this stuff go? I don't want to lose stuff like this.

  5. paradime change by Anonymous Coward · · Score: 4, Insightful

    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).

    1. Re:paradime change by Blaine+Hilton · · Score: 2, Interesting

      I have noticed this too. Another big factor I believe is changes in the shareware industry where a lot of developers are deciding instead of mailing CDs out or providing downloads, they could just offer the same thing on the web. Being web based give the author more control and more flexibility over the software then if it was a "standard" application.

    2. Re:paradime change by Angry+White+Guy · · Score: 2, Insightful

      The big problem with web-based tools is that there is greater incentive for the software to become a subscription service, rather than a product. The upside to this is for every web service out there, there is an open source version trying to do the same thing, or a compiled shareware version because somebody is too cheap to sign up for the subscription.

      --
      You think that I'm crazy, you should see this guy!
    3. Re:paradime change by bheerssen · · Score: 3, Insightful

      Complex websites are as legitimate pieces of software as your word processor. They have routines and they maintain state (albeit painfully). They also have bugs. They can have development cycles and release schedules. Just like software. You have to pay attention to threading and memory usage just like real software.

      In short, websites are often not collections of html documents comparable to a PDF file, but true pieces of software that require thought and analysis throughout the development cycle. To get an idea of this, download a copy of phpMyAdmin or webmin and have a look at the source. Slashcode is also a good example.

      --
      (Score: -1, Stupid)
  6. Testing with mozilla by mwhahaha · · Score: 5, Insightful

    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 :[

    1. Re:Testing with mozilla by FuzzzyLogik · · Score: 2, Insightful

      I just have on my front page, best viewed with Mozilla/Netscape 7 ... with a nice big link to both. Seriously, IE might load faster, but everyone i've converted over from IE, they don't ever close it once it's open... even my parents, but they use Phoenix now not mozilla (though both are installed)... so, really, for me.. i limit who views my site correctly, but seriously, once aol flips over to use the gecko rendering engine in their client... IE might as well go on to the little browser heaven... or hell.. ;)

    2. Re:Testing with mozilla by mwhahaha · · Score: 2, Interesting

      True, but I'm developing for a company who does e-commerce store hosting. And the site has to be compatible for just about everyone. We always get complaints about IE 5.0 and Mac's IE because of their FUBAR javascript implementations. I am the only one in the entire company who uses mozilla. So they are always coming up with javascript stuff I never see because my browser actually works :]

    3. Re:Testing with mozilla by tijnbraun · · Score: 5, Informative

      I still use HTMLtidy to check my pages... I would love to have something like a "stringent" mode while developing web pages (ala browser producer error instead of trying to render the html). A while ago I found out that mozilla can even be more forgiving than IE. There was some weird bug in a parser I was testing, which sometimes resulted in </tr> to be rewritten as </tr or something. Mozilla didn't care. IE was totally confused. (First time I ever found something in html that confused explorer, but rendered ok in moz). Anyways... is such a mode/plugin available?

    4. Re:Testing with mozilla by Christianfreak · · Score: 3, Insightful

      That's the problem right there: Javascript. The company I work for (small business so this is easier) before I came Javascript was "IT" and slowly I've shown how you can do cool stuff with stylesheets, and how clean pages without alot of stupid javascript effects go a long way to creating happy customers.

      Convince them they don't need the JS, much less rely on it for pages to display or navigate properly and life will be much better.

    5. Re:Testing with mozilla by JimDabell · · Score: 4, Informative

      I still use HTMLtidy [w3.org] to check my pages...

      A validator would be a better choice. It's a proper syntax checker, not just a linter.

    6. Re:Testing with mozilla by the-matt-mobile · · Score: 5, Insightful

      I would love to have something like a "stringent" mode while developing web pages (ala browser producer error instead of trying to render the html)

      You can use XHTML and then use any XML parser to check your page. If it doesn't parse, it isn't valid.

      If you're used to writing nasty HTML like <b><i>example</b></i> then you'll probably complain the XHTML feels a little too stringent, but once you get used to it, designing your page just feels so much nicer.

    7. Re:Testing with mozilla by 4of12 · · Score: 4, Funny

      ...IE has bastardized HTML.

      That would be "Mr. Bastardized HTML" to you, thank you very much.

      IE now sets the standard for bastardization and no weasel browser doing new bastardization of HTML should get the uppity idea that it can do the same.

      --
      "Provided by the management for your protection."
    8. Re:Testing with mozilla by ManxStef · · Score: 5, Informative

      I know just the Mozilla plugin for you:

      Checky

      A single keypress (F10) will then open the validators of your choice (e.g. the W3C HTML & CSS validators, Bobby, HTMLTidy, URL checker, etc.) in seperate tabs, or windows if you prefer.

      Fantastic!

    9. Re:Testing with mozilla by pmsyyz · · Score: 2, Informative

      I would love to have something like a "stringent" mode while developing web pages (ala browser producer error instead of trying to render the html).

      I have my local Apache configured to send .html files as application/xhtml+xml so that I know my XHTML files are well formed since Mozilla/Phoenix throw errors if they are not.

      --
      Phillip
  7. Impressive features list by dtolton · · Score: 2, Interesting

    I have been using Mozilla because I love the tabbed browser windows. I was completely unaware of all the extra features it offers.

    The DOM Inspector will be really nice for checking out the rendered structure of a page. I've always had a tough time with this since I generate most of my pages dynamically. In fact most of those tools will be *incredibly* useful in that context.

    I have to say I'm really impressed with the progress the Mozilla team is making. For a while there IE was leading the way, now that trend has clearly reversed.

    --

    Doug Tolton

    "The destruction of a value which is, will not bring value to that which isn't." -John Galt
  8. An internet story by Anonymous Coward · · Score: 4, Funny

    1) write a snazzy article about website bugs
    2) upload article to own website
    3) submit link to own article on Slashdot
    4) discover the bug the hard way when own website is slashdotted to smitherines within 20 seconds
    5) ????
    6) Famous!

  9. standards compliant so far by trmj · · Score: 3, Insightful

    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).

    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 .NET

    --
    Work sucked, until it became unemployment, when it became slightly more tolerable. -Tet
  10. Big Advantage by Dave+W · · Score: 4, Interesting

    This is a really significant advantage to Mozilla.

    With Mozilla being so attractive to web developers it makes it so much more likely that sites will fully support mozilla and those developers will bring in more users.

    Getting developers to use your application is a great way to build market share.

    Our own developers tend to use Mozilla as the key browser already, with tests to check behaviour on IE later.

    All we need now is full etester type functionality using Mozilla instead of IE (preferably Linux based). We have used many add-ons for JUnit (like Canoo Webtest), but the javascript and DOM support is always the problem. Embedding mozilla might be a better way to go.

    Dave

  11. Mozilla is great for debugging Javascript... by X_Caffeine · · Score: 5, Interesting
    Many javascript programmers consider Mozilla to have a buggier javascript implementation than MSIE; what they don't get is that MSIE is very good at interpreting buggy code, which leads to... well, bugs and incompatibility. Mozilla forces you to do it the right way, which leads to greater compatibility in the grand scheme of things.


    I wish this article had addressed the whole MSIE "document.body" mess, though. The correct DOM equivalent is "document.documentelement", but it doesn't work in MSIE6 unless the document is properly defined with a DOCTYPE declaration (otherwise MSIE is in backward-compatibility/buggy mode).


    Otherwise, a really great introduction. I've been using Mozilla to do javascript for months and didn't know most of the data here.

    --
    // I will show you fear in a handful of jellybeans.
  12. Validity checker and indicator by Alderete · · Score: 5, Insightful

    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.

    1. Re:Validity checker and indicator by simeonbeta2 · · Score: 2, Insightful

      Excellent idea! If i had mod points i'd up you.

      This makes complete sense to me based on personal experience. I work for a web shop and some users complain who see javascript errors in the status bar at the bottom of IE. It usually isn't affecting them, but users don't like to see errors!

      If the major browser makers would include this feature (even when they still have code to work around non-standard stuff) html compliance would soar.

      Even aside from that, having compliance validation right in the browser would be helpful to me as a programmer... I often don't go to the enormous hassle of using the w3c's online validator... a 'right in the browser' check would probably help...

    2. Re:Validity checker and indicator by bunratty · · Score: 4, Informative

      I know this isn't exactly what you're asking for, but Checky is a Mozilla Plug-in that will validate the current page when you press F10. It won't help evangelism, but at least it makes it easier for web developers to generate valid HTML.

      --
      What a fool believes, he sees, no wise man has the power to reason away.
    3. Re:Validity checker and indicator by JourneymanMereel · · Score: 2, Informative

      This was discussed, and even worked on for a while, but was eventually rejected. I go agree that it would be nice to have, however.

      http://bugzilla.mozilla.org/show_bug.cgi?id=4710 8

      --
      Life has many choices. Eternity has two. What's yours?
    4. Re:Validity checker and indicator by d-Orb · · Score: 2, Informative
      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 [www.icab.de], 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.

      There is a simple solution, and it is to use JS favelets that connect to the W3 server with the URL details. Basically, you need a link to a JS link, such as this: javascript:window.open('http://validator.w3.org/ch eck?uri='+location);void%200 (and I'm just copying and pasteing from my website). You can put this in the navigation bar, and off you go :-)

      There are plenty of bookmarklets which are quite useful. Some of them:

  13. a few criticisms by mlheur · · Score: 3, Interesting

    My biggest criticism is regarding the source viewer. Yes in IE the default source viewer is Notepad, but that can be changed - there's no mention of that ability in the article.

    The other problem with the source viewer is that Mozilla goes to the server to grab the source, not using the exact source displayed on the screen if you're using dynamic server side variables (PHP), whereas IE gives you the source of whatever's in memory and displayed on the screen.

    Other than that I prefer Mozilla too.

    1. Re:a few criticisms by bunratty · · Score: 4, Informative
      The other problem with the source viewer is that Mozilla goes to the server to grab the source, not using the exact source displayed on the screen if you're using dynamic server side variables (PHP), whereas IE gives you the source of whatever's in memory and displayed on the screen.
      AFAIK, this bug was fixed ages ago. Have you tried a recent Mozilla build?
      --
      What a fool believes, he sees, no wise man has the power to reason away.
  14. Yay fer verbose article texts! by American+AC+in+Paris · · Score: 3, Funny
    from the 404-file-not-*rrrrgk* dept.

    American AC in Paris writes "In this thread, we will describe some very cool features in Mozilla which will enable you to quickly find the maximum load of your web site and applications."

    --

    Obliteracy: Words with explosions

  15. load testing by zzzmarcus · · Score: 2, Funny

    He obviously isn't using Mozilla for load testing...

    15 comments and already slashdotted.

  16. The real article by llamalicious · · Score: 4, Funny

    Henrik Gemal writes "With this article I will subject myself to a massive DDoS produced by legions of slashreaders who will certainly turn my webserver to molten slag."

  17. Feature requests by robbo · · Score: 5, Interesting

    I agree that HTML highlighting is great, but I've been meaning to post a feature request on bugzilla for some time: let me view-source in a tab, rather than open a new window. That should be really easy to do. I'd also love to have keyboard navigation between tabs (ok, it's probably there already, or at least in Phoenix, but I haven't found them yet..)

    --
    So long, and thanks for all the Phish
    1. Re:Feature requests by slothdog · · Score: 3, Informative

      I'd also love to have keyboard navigation between tabs

      Ctrl-1,2,3, etc will switch between open tabs, at least in Phoenix.

    2. Re:Feature requests by seanmeister · · Score: 4, Informative

      "view-source in a tab, rather than open a new window"

      I'm pretty sure that MultiZilla will let you do that.

    3. Re:Feature requests by josephgrossberg · · Score: 4, Informative

      FYI, in Mozilla, they have a different effect:

      CTRL-1 launches a new browser
      CTRL-2 launches a new mail app
      CTRL-3 launches a new chatzilla

      You've gotta use CTRL-PageDown and CTRL-PageUp

  18. Web Development Bookmarklets by jesser · · Score: 5, Informative
    Web development bookmarklets:
    • shell (type JS statements to evaluate them)
    • onerror status
    • onerror alert
    • test styles (type CSS rules; it applies them immediately)
    • zap style sheets
    • view style sheets
    • view scripts
    • view variables
    • generated source
    • partial source (not as good as "view selection source" in Mozilla's context menu)
    • show blocks
    • ancestors (makes status bar show what you're hovering over, in the format "BODY > DIV#content > DIV.blog > DIV.blogbody > P")
    • make link (create HTML to link to a page)
    • show named anchors
    You can do many of these things with the DOM Inspector or JS Debugger, but boomkarklets usually require fewer clicks and are easier to learn. All of these bookmarklets work in Mozilla, and many of them also work in IE or Opera or both. Web developers might also find these validation bookmarklets and keywords bookmarklets for scripters useful.
    --
    The shareholder is always right.
    1. Re:Web Development Bookmarklets by ManxStef · · Score: 2, Informative

      Another cool set of tools are the Mozilla Sidebars available over at Netscape's DevEdge.

      Basically they add quick references into the sidebar for a variety of official standards as CSS2, CSS2.1, HTML 4.01, DOM 2, XSLT 1.0 Reference, and the Gecko DOM Reference.

      Now I've installed them I use them all the time; and to think for ages I thought Mozilla's Sidebar was useless! Very handy, it is.

  19. Variable timeout? by alispguru · · Score: 3, Interesting

    What I could really use is a browser that let you set the timeout (when waiting for an HTTP transaction to come back) to something large, or better yet to turn it off completely.

    I write web applications in Common Lisp, so when developing I have the Lisp top-level open and running. Errors on the server side pop up a Lisp debugger on the thread doing the transaction, I can poke around in the stack, figure out the problem, even fix it and continue - but only if I do it quickly, before the browser decides it's waited on me long enough and closes the connection, which causes a broken-pipe error on the server side and can clobber my debugger session.

    So, anybody know how to make any decent browser never time out? Mac OS X browser preferred, but I'll take Linux or Windows in a pinch.

    --

    To a Lisp hacker, XML is S-expressions in drag.
    1. Re:Variable timeout? by the_consumer · · Score: 2, Funny

      try taping down F5 ;)

      --
      "If you're thinking what I'm thinking, you're right." -
    2. Re:Variable timeout? by bunratty · · Score: 4, Informative

      Try going to the URL about:config and changing the preference network.http.request.timeout to a large value.

      --
      What a fool believes, he sees, no wise man has the power to reason away.
  20. anyone? by caino59 · · Score: 3

    have it in their cache?
    ill gladly put up a mirror...someone send me the files ;o)

  21. Re:Feature requests OT by schmink182 · · Score: 3, Informative
    Navigation between tabs:
    • Forward - control + tab
    • Backward - control + shift + tab
  22. full text by Anonymous Coward · · Score: 5, Informative

    Using Mozilla in testing and debugging web sites
    Mozilla is a great tool to use in developing web sites and web applications. Not as a development tool itself, like an editor, but as a testing and debugging tool. 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.
    JavaScript Console
    A lot of the errors found in todays web pages and web applications are caused by JavaScript errors. Most of the time they're very simple errors. This is in my opinion the most common reason why sites doesn't work in Mozilla. But these errors could easily be avoided. With Internet Explorer you are, if you have set the correct setting, presented with an almost useless dialog that "page contains errors". The dialog doesn't let you copy the error to the clipboard for starters. If you want better debugging in Internet Explorer you can install the Microsoft Script Debugger which is a debugging environment for scripting in Internet Explorer.

    Picture 1: JavaScript error in Internet Explorer
    With Mozilla on the other hand you have the JavaScript Console. All JavaScript errors are logged here. So if you keep the JavaScript Console open while testing your site you can on-the-fly see if there are any JavaScript errors. An indispensable tool for developing web sites and web applications.
    The JavaScript Console reports the error and the filename and the line number. Furthermore the context of the error is shown. This makes it very easy to get a clue about where the error is and what caused it.

    Picture 2: The Mozilla JavaScript Console with errors
    You can right-click on each error and copy it to the clipboard. The JavaScript Console could still need a lot of improvements. You can't save all entires to a file and it has problems with wrapping.
    The JavaScript Console can be started via Tools -> Web Development -> JavaScript Console.
    JavaScript strict warnings
    JavaScript strict warnings are messages that are produced inside the JavaScript Engine, which is in the core of the browser. JavaScript strict warnings are produced in all browsers. In both Mozilla and Internet Explorer and Opera. But only Mozilla shows them. JavaScript strict warnings are warnings from the JavaScript Engine about some mistakes in the client side JavaScript code. These mistakes, unlike JavaScript errors, do not stop the execution of the web page. But they do slow it down a bit, since they produce an exception inside the JavaScript Engine.

    Picture 3: JavaScript strict warnings
    In other browsers than Mozilla these exception are not available to the developer but with Mozilla you can access these warnings. This puts you in the driver seat for making 100% valid JavaScript code!
    A common mistake in JavaScript is to declare a variable twice:

    var response = true;
    var response = false;
    This will produce a JavaScript strict warning saying

    "redeclaration of var response"
    The correct way is of course:

    var response = true;
    response = false;
    The JavaScript Console can be enabled in nightly builds via Edit -> Preferences -> Debug ->. If you run a official release you can use the javascript.options.strict pref which can be set by entering about:config in the Location and hitting enter.
    More info...
    Tackling JavaScript strict warnings

    Cookie Control
    Most web sites and web applications nowadays are using cookies. Debugging cookies can be a problem. But not if you use Mozilla. If you're using Internet Explorer the only option you have from within Internet Explorer is to delete all current cookies. If you want to delete all cookies from a specific domain you have to manually delete the Internet Explorer cookie files which are located in the %USERPROFILE%\Cookies directory. Since the files are in a unknown text format I'm not sure it you can delete or edit specific cookies from a site or domain.

    Picture 4: Cookie Manager in Internet Explorer
    With Mozilla it's all

  23. Something I miss when testing websites locally... by starvingartist12 · · Score: 4, Informative

    One of the reasons I switched from Netscape Navigator 3 to IE 3 was that when I viewed the source of a website on my local hard drive (ie: testing and debugging), IE would open the actual file in Notepad (or any other editor), while Navigator would open either a non-editable page source window or a cached version of it in Notepad (no, I'm not going to use Composer).

    The same is kinda true with IE6 and Moz today. IE6 lets me move around my local prototype website and click on a large Edit button. This simplifies editing static html pages for me.

    But hey, I still think Mozilla is great and invaluable for testing and debugging code. The Javascript Console mentioned in the article has saved me tons of time. I totally recommend it as the first thing to use to check for scripting errors.

    One final though... IIRC, IE5.0 has had a View Partial Source tool available as part of a powertoy (er, Web Development Accessories) for web developers.

  24. Also, CSS debugging help by robbo · · Score: 4, Interesting

    CSS validation would be cool (of course there's always w3.org)

    I'd love to see something that helped me with CSS layout- a way to put big bright borders around divs and highlight their containing blocks, etc. I *don't* want that in composer, mind you, because I prefer to play with the raw source in an editor and reload the page to see how it looks.

    --
    So long, and thanks for all the Phish
    1. Re:Also, CSS debugging help by benw01 · · Score: 2, Informative
      I'd love to see something that helped me with CSS layout- a way to put big bright borders around divs and highlight their containing blocks, etc.
      The test_styles bookmarklet might fit the bill - it pops up a little window where you can type in CSS rules and have the page you triggered it from dynamically update based on the rules you enter. I put this bookmarklet into my Personal Toolbar Folder in mozilla, so it's just a click away.

      There's HEAPS of useful bookmarklets linked off that page too. The javascript shell is amazing.
  25. No wonder mozilla is so bloated. by Anonymous Coward · · Score: 2, Interesting

    If youre going to test websites, use a proper ide. Such as dreamweaver or quanta, even vim/emacs are more suitble for the job. Then you call your external browser (or embed its rendering engine in the ide) to test it.

    Mozilla dosen't even support editing in "view source". Other browsers let you call your own external editor, but not mozilla!

    The truth hurts

    1. Re:No wonder mozilla is so bloated. by Christianfreak · · Score: 2, Insightful

      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.

  26. Nothing beats.... by Richard_at_work · · Score: 2, Insightful
    print or echo. or print_r, or vardump. or...

    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.

    1. Re:Nothing beats.... by Richard_at_work · · Score: 2, Informative

      I design and write a couple of apps that are heavy on end user input, and i do ALL validation server side. Its faster, less code to send client side, I have a guarenteed enviroment to validate in, AND I CAN TRUST MY VALIDATION 100%. Anything that dynamically alters client side information/input is asking for trouble.

      I didnt say the article wasnt any use to me, i found it informative. It still came across as flag waving tho, and i deplore that sort of thing.

  27. One more feature request: IE emulation by robbo · · Score: 4, Interesting

    Don't laugh, I'm serious. It would be nice to see that how page I'm working on renders in IE without switching OS and browsers. Most of the layout bugs and standards-defiance in IE are well documented and it shouldn't be too hard for Moz to behave like IE if the user so desired.

    I know, I know, I should post these requests on bugzilla..

    --
    So long, and thanks for all the Phish
    1. Re:One more feature request: IE emulation by duffbeer703 · · Score: 2, Insightful

      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
    2. Re:One more feature request: IE emulation by robbo · · Score: 2, Interesting

      Well, if you put enough monkeys at enough typewriters.. ;-)

      I haven't looked at the rendering engine code since the early gecko days, but you can bet that there are a lot of quirks in there to get pages on major sites that were designed for IE to render as the designers intended. Gecko may be standards compliant, but for ages the Debug menu had a long list of major sites that were important to render correctly.

      While I agree with you that it's probably not as easy as I suggested, I do think that the moz developers have a good sense of the major IE non-compliances and how they can be reproduced.

      --
      So long, and thanks for all the Phish
    3. Re:One more feature request: IE emulation by mooman · · Score: 2, Interesting

      But given the fact that there are some significant differences between IE versions, which one would you emulate? All of them? Jeez.. talk about bloat, all for the purpose of emulating quirks!

      And we won't even get into IE differences between platforms either...

      Personally, one of the singularly biggest and best features of Mozilla is that it plays well with others. You can have multiple versions of it installed at a time on one box. Any webdev worth their salt will have a copy of every major browser that intend to support already installed on their box(en). It's been one of my biggest complaints about IE since the IE3 days. I can only have one IE version on a box, usually without even the means to uninstall it... Makes testing cross-platform a pain in the @ss...

      --
      In the Portland, Ore area and like card games? Check out: http://groups.yahoo.com/group/portlandgames/
  28. Opera's handy access to alternate rendering modes by wfmcwalter · · Score: 3, Informative
    Opera has some one feature that (as far as I can tell) mozilla doesn't. It has a really easy way to change the rendering enging to run in a number of different modes, including small screen, text, accessibility, high contrast, and the rather fun CBM=64 lookielikie mode. Mozilla can do some of this, but Opera's handy menu access (view->style->usermode->xxx) makes testing the many pages of ones website for accessibility quite easy.

    I'd really like a "tandem" mode, where the browser would automatically open each page in both normal and accessibility, or normal and text-only, modes (in two parallel windows, naturally).

    In testing my own website for IE6, Mozilla-1.3, and Opera 7, I seem always to find the same thing:

    • Opera is the standards fascist
    • Mozilla is the make-it-work-somehow guy
    • and uniformly, IE is the "problem child"
    --
    ## W.Finlay McWalter ## http://www.mcwalter.org ##
  29. Live HTTP Headers?? by chickenbird · · Score: 3, Informative

    Wow, it said you could go to Tools -> Web Development -> Live HTTP Headers to see the HTTP Headers, but there is no such item in my Mozilla 1.3 Tools menu.

    Hmmm, looks like they haven't implemented it for Macintosh versions.

    The other nice thing to have would be an item in the DOM inspector that would show you the XPath for the selected node.

  30. Mozilla's gratuitous changes drive me nuts by OYAHHH · · Score: 3, Insightful

    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
    1. Re:Mozilla's gratuitous changes drive me nuts by jesser · · Score: 2, Informative

      That change wasn't "gratuitous". It was made to reduce the chance of accidentally clicking "close other tabs" while trying to click "close tab" (in bug 191826), without removing the "close other tabs" command completely (which was the initial fix, I think in bug 103354). If jag decides the change didn't help enough, he'll try something else.

      This type of change temporarily sucks for people who download every version of Mozilla, but it's better in the long run and it's better for people who only use major versions (such as Netscape).

      --
      The shareholder is always right.
  31. Re:Live HTTP Headers?? - it's an add-on by Tolkien · · Score: 3, Informative

    It's an add-on, and the link to get it was posted earlier.

  32. Opera feature (offtopic) by illsorted · · Score: 2, Interesting

    Opera provides a shortcut (Ctrl+Alt+V) that uploads the source of the active frame to the W3C validation page automagically and displays the validation results.

  33. Sounds like the quirks mode by jeti · · Score: 2, Informative

    Mozilla has a "quirks" mode that is trying to be as forgiving as possible.
    But as soon as you properly define the DOCTYPE, Mozilla only renders correct HTML.

  34. More on Cookie Handling by Alan · · Score: 2, Interesting

    The article notes that the cookie allow/deny dialoge is almost identical between the two browsers, but misses one huge plus for mozilla. The IE cookie confirm dialoge doesn't save it's state. I personally browse with the cookie set to "ask me" each time, and I look at the cookie that is being set, make sure my IP address or other personal-looking information is in there, and allow or deny.

    In mozilla the "more" dialoge starts up open if it was open last time, but the IE dialoge always starts closed, so I have to hit "more info" each and every time. Because of this mozilla is a big winner there for me, just from this one small detail.

    The nay sayers will say "no one does that", but I say that for the minority of us out there, it *does* help, and the majority will never see or be affected anyway...

  35. Still room for improvement. by AeiwiMaster · · Score: 2, Interesting

    1) If mozilla could do for HTML what it does for javascript.
    Have a live console which shows the HTML errors
    this would be very useful for web development.
    I do know about the online validators but
    normal development take place behind a firewall
    using dynamic server-side scripting,
    so every time your change the state of a page you
    would have to save it and upload it to the validator.
    a very slow process.

    2) In the cookie tool i need a function
    which remove the cookies from the current site.
    So you don't have to look trough a long list of cookies
    every time you test your cookie code.

    3) In view source i need a function which could auto format
    the HTML code.
    Many auto generate pages have there HTML in one long line.
    If Mozilla could auto format the code it would be useful.

    4) Finally I would like the spell checker to automatically
    to mark every misspelled word on the current web page.

    1. Re:Still room for improvement. by elemental23 · · Score: 2, Informative
      I do know about the online validators but
      normal development take place behind a firewall
      using dynamic server-side scripting,
      so every time your change the state of a page you
      would have to save it and upload it to the validator.


      I had that exact problem until I installed the WDG HTML Validator on my development server (if you're using Debian, just do "apt-get install wdg-html-reference").

      When I have something in development, I add a bit to my global footer saying something along the lines of:
      if (mode == "dev") {
      print "<a href=\"$WEB_DEV_SERVER/validator/validator.pl?url= referrer\">Validate this page</a>";
      }
      It's extremely handy to have around.

      --
      I like my women like my coffee... pale and bitter.