Live data from Hacker News

Why everyone should use Safari for rich web development

mir.aculo.us

61–67 of 67 posts

Re: Why everyone should use Safari for rich web development

#61
post #45
post #6

"Basically, if some HTML/CSS works on Safari, the chances are very high it will work on Firefox 2 and higher, and on IE 6 and higher (with minor tweaks)." I don't get it. A lot of the hardship that comes with web development is that stuff that works great in modern standards-based browsers like Safari doesn't work when you try to view it in IE. I can't count the number of times I've taken a webpage that I developed t…

I'm new to web development, and I keep asking this question but I've never heard and answer to it: What's stopping us from making a tool that parses HTML/CSS and points out constructs that are known to be bad in certain browsers? Sort of like lint: "It looks like you're sending element foo inside element bar to IE6. This probably won't work right" I personally don't have a windows box to test IE, and I'm not looking…

have you heard of ie7-js? it uses javascript to fix many such problems.

http://code.google.com/p/ie7-js/

Re: Why everyone should use Safari for rich web development

#62
post #45
post #6

"Basically, if some HTML/CSS works on Safari, the chances are very high it will work on Firefox 2 and higher, and on IE 6 and higher (with minor tweaks)." I don't get it. A lot of the hardship that comes with web development is that stuff that works great in modern standards-based browsers like Safari doesn't work when you try to view it in IE. I can't count the number of times I've taken a webpage that I developed t…

I'm new to web development, and I keep asking this question but I've never heard and answer to it: What's stopping us from making a tool that parses HTML/CSS and points out constructs that are known to be bad in certain browsers? Sort of like lint: "It looks like you're sending element foo inside element bar to IE6. This probably won't work right" I personally don't have a windows box to test IE, and I'm not looking…

I realise you're hoping for a better solution than manual testing and I can assure you, so is everyone else. However, if you do not have a real or virtual Windows box to test on, you might find these links of interest:

http://www.browsrcamp.com/

http://www.browsercam.com/

Re: Why everyone should use Safari for rich web development

#63
post #57

Earlier quoted context omitted.

Because that's the way CSS/HTML works?

CSS and html both support rgb(), rgba(), hsl(), and hsla() colors in addition to hex...

Do most browsers actually support hsl/hsla? Never actually paid attention to that. Would certainly be nice... though I've already put the conversion code in CP.

Re: Why everyone should use Safari for rich web development

#64
I like Safari's dev tools, but its missing some really basic stuff that Firebug makes easy.

In Firebug, you can double click on anything in the dom view and edit it. In the CSS view, you can easily add new attributes. The autocomplete for CSS styles is awesome.

Also, you can grab any asset file (css, js) and open it up in your default text editor.

Safari 4 web dev tools isnt quite there. It only needs a few tweaks, but they don't seem to be adding them anytime soon (people have been asking for these features for about a year now).

Re: Why everyone should use Safari for rich web development

#65

I really want to use Safari for debugging but every time I get down to trying to do so, I find some irritating hangup in terms of clunkiness and polish versus Firebug, and I end up heading right back to Firebug. Two things off the top of my head: 1) console output is just not as good as Firebug. Example: try going on jquery.com and doing console.log($("p")). Instead of a pretty printed array with styled items as in F…

I totally agree. These small issues have also caused me to drop Safari dev tools in favor of Firebug.

Re: Why everyone should use Safari for rich web development

#66

Do Safari's developer tools allow you to change CSS and HTML on the fly like Firebug?

Almost. You can edit CSS styles, but not add new ones. You can add attributes (style=) to elements. It's been extremely clunky for me, but I have hope it'll be smoothed out in the future.

Re: Why everyone should use Safari for rich web development

#67
post #10

Earlier quoted context omitted.

Indeed. Sounds very much backwards to me. If anything, stuff developed to work with the restricted CSS-support in older MSIE versions (MSIE8 is actually not that bad) has a much higher chance of rendering correctly in Firefox, Opera and Safari than the other way around.

It may sound backwards but is it not. It is a broad topic and much can be said on this, but the short version is: it is always advisable to develop looking at more standards compliant browsers and then tweak it to work in IE. Usually it will take less effort. The reason for this is that IE let's you deviate more from standards, and then fixing it for other browsers will take more time. Also, other browsers albeit hav…

While I can see your point, my approach is more of a middle way.

I use a up to date standard compliant browsers like Firefox 3.5 when developing sites, but I keep the my CSS restricted to what I expect will be supported in MSIE. If I go overboard with new CSS features, I know I will be creating a much bigger job trying to fix it for older browser (like Firefox 2.0, not just MSIE).

I find that so far that has worked well for me.

Post reply on HN