News for hackers. Stuff that matters.
Re:Safari is the new IE by zamalek on Tuesday June 30, 2015 @10:08AM (#9805281)
I had to do some work[1] with, basically, HTML4. Eventually I reached the stage whereby the feature worked in every other browser (IE8+, including Opera), using clean and completely hack-free code. In 3 days I had done my work.

Then I tested it in Safari. Two weeks later I gave up and basically had to `if (Safari)`. I don't know if the code still has that, but it probably does. This wasn't anything 'lacking'. Sure, it was contenteditable-related but the fact remains that I found a consistent subset in every browser except Safari.

So, yes, Safari broke my web - and it wasn't something that was missing, it was something that behaved very differently compared to other browsers. I can't remember what specifically broke it, but even ~2 years ago I had a significantly better development experience with IE than Safari with no new HTML5 features in sight.

[1]: http://help.k2.com/onlinehelp/k2smartforms/userguide/1.0.6/c...

Re:Safari is the new IE by ninkendo on Tuesday June 30, 2015 @10:16AM (#9805347)
If your target browser is IE8 and you write a bunch of html4 that looks great in IE8, I would expect it to not work anywhere else.

Not only is IE8 a snowflake but html4 is particularly hard to get a good layout working. Lots of nontrivial layouts in pure html4 (and css 1/2) require tons of browser specific hacks.

Re:Safari is the new IE by swsieber on Tuesday June 30, 2015 @10:49AM (#9805638)
You missed his point. He mentioned IE8+ and Opera as working targets to highlight the fact Safari was being lame. He said every browser - that would include complaint ones like firefox and chrome. He also specifically said he avoided browser specific hacks.
Re:Safari is the new IE by ninkendo on Tuesday June 30, 2015 @11:02AM (#9805748)
Saying "I didn't use any browser-specific hacks" with HTML4 is a strange statement, seeing as how many non-trivial layouts in html4 (and I'm assuming the older CSS standards that would typically go along with it) require browser-specific hacks to work.

But honestly, I can't know because he's not naming anything specific anyway, just an anecdote about how IE8 was great at being standards-compliant and safari wasn't. Which is such an extraordinary claim (and is so contrary to established precedent) that without any extraordinary evidence, I have a lot of trouble accepting it.

(And it's amazing how many people think "I'm not doing any browser hacks" while they're using something like jQuery, which is a library 100% devoted to doing browser hacks for you while abstracting you from that fact.)

Re:Safari is the new IE by zamalek on Tuesday June 30, 2015 @11:07AM (#9805786)
> Saying "I didn't use any browser-specific hacks" with HTML4 is a strange statement

I was working on top of a huge CSS framework - the majority of styling work I did was tiny tweaks to styles where the appropriate hacks had already been solved.

Also I didn't mention layout. The specific pain point was contenteditable in combination with JS - by the time I got to the code everything surrounding my little problem-space had been solved by the rest of the team. Again, specifically, Safari demonstrated wildly different behavior within that specific space, where other browsers only behaved marginally different (a relative term, contenteditable is a complete mess, sadly, still in HTML5) in a way that I could find a viable subset of functionality that worked consistently.

Re:Safari is the new IE by ninkendo on Tuesday June 30, 2015 @11:37AM (#9806038)
> I was working on top of a huge CSS framework

Well, that's the whole thing then, isn't it? The huge CSS framework probably had tons of hacks (as you say) to make things work in IE8... it's a bit disingenuous to say you wrote everything to be clean and without browser hacks, if the hacks all exist but are buried under a "huge CSS framework".

Your whole experience could probably be restated as "I was working with a CSS framework that did a bunch of cross-browser hacks for me, and the tweaks I made to it didn't work in safari", which is a pretty uninteresting statement, because it's equally likely that any issues you had in safari are the fault of the CSS, and not the browser. (In fact, much much more likely.)

Re:Safari is the new IE by zamalek on Tuesday June 30, 2015 @02:56PM (#9807622)
> the fault of the CSS

Did you miss the whole of my second paragraph?

> Also I didn't mention layout

Re:Safari is the new IE by addicted44 on Tuesday June 30, 2015 @09:20PM (#9809473)
Opera went out of its way to ensure non-standard stuff targeted towards specific IE versions also worked in Opera. The downsides of being a browser no one cares about.

Something working in opera doesn't mean it is standards compliant.

Re:Safari is the new IE by adamlett on Tuesday June 30, 2015 @11:14AM (#9805842)
> Then I tested it in Safari

(emphasis mine)

I use Chrome as my primary development browser and Safari and Firefox as my second and third choice. When I do get around to testing in IE 9+, it's almost an afterthought. Is it surprising then that IE is the browser that gives me the most trouble?

All browsers have quirks. It's inevitable when you have many competing implementations from companies that have different priorities. The browser you use the most is naturally the one whose quirks you will get used to.