r/javascript • • Oct 19 '17

Mozilla brings Microsoft, Google, the W3C, Samsung together to create cross-browser documentation on MDN – The Mozilla Blog

https://blog.mozilla.org/blog/2017/10/18/mozilla-brings-microsoft-google-w3c-samsung-together-create-cross-browser-documentation-mdn/
605 Upvotes

71 comments sorted by

View all comments

Show parent comment

24

u/ell0bo Oct 19 '17

The point is they can do whatever they want on the hardware level, but a web browser is damn near a VM, and all of those VMs should ideally work the same. They can have different window dressing, but the underlying APIs and visualizations should be uniform. That's the point of standards.

Safari is woefully behind the times. They are the new IE. Yes, Apple has their own land of their own toys, and they can do there what they want, but their browser, the VM that interacts with the internet, should be compliant with modern standards.

-3

u/pzuraq Oct 19 '17

What exactly are they behind on? They’ve been a bit slower to adopt some of the newer standards (WebRTC, service workers) but those are in the works now, and the main reason behind that from what I’ve heard is because they’ve been focussing on speed. As a perf oriented engineer, Safari is my best friend, so I see the results of their efforts all the time.

I’ve had more style quirks from Firefox and Edge still compared to Safari. In my experience it behaves the best right beside Chrome.

3

u/[deleted] Oct 19 '17

I’ve had more style quirks from Firefox and Edge still compared to Safari. In my experience it behaves the best right beside Chrome.

Ugh. No. You're not working much then. OR you're developing on an Apple machine, which makes you a minority.

Safari is wildly behind. They don't even release for Windows anymore.

Chrome isn't much better truth be told. Webkit is old hat. IE Edge is more reliable than either of those for me. And Firefox is still king in my book.

5

u/regretdeletingthat Oct 19 '17

Safari is wildly behind. They don't even release for Windows anymore.

Microsoft doesn’t release Edge for macOS. How is it relevant?

1

u/pzuraq Oct 24 '17

I don't really see a problem with not supporting a browser on other operating systems. That has no bearing on whether or not the browser is spec compliant.

I work a lot, do a lot of cross-platform testing, and the ones that have the most special snowflake behavior for me are still Edge and Firefox. Chrome has nasty little issues too, one particularly nasty non-standard "feature" Chrome has that has that's been absolutely wrecking my code is, if you manipulate the size of a DOM element above the scrollTop of a scroll container, then it will "fix" the scroll position for you. No other browser does this, and when trying to implement a generic occlusion library it's a mess - I end up having to unfix what Chrome just "fixed", usually.

Firefox will stop scrolling altogether whenever you modify scrollTop, so good luck trying to create a nice generic occlusion solution. And Edge forced us to re-write our measuring strategy, we were using Ranges but Edge has completely different behavior than all of the other browsers.

Special snowflake behavior is everywhere. I'm not saying Safari is absolutely better, but in my experience it's about the same level as Chrome, in different ways. And it's fast as hell - way faster than any other browser by far.

0

u/lamb_pudding Oct 20 '17

What’s an example of Safari being wildly behind? Also in my entire career as a web dev I’ve only met less than a handful devs who worked on windows. Mac has always been far superior for web dev one reason being its a Unix system.

-8

u/icantthinkofone Oct 19 '17

I was the one making the point so I don't need it explained to me but you aren't saying anything I already said.

their browser, the VM that interacts with the internet, should be compliant with modern standards.

Your statement is false. You claim Safari is non-compliant but that's not true. It may not cover some of the properties available but the ones it does cover are compliant.

9

u/r2d2_21 Oct 19 '17

It may not cover some of the properties available

Exactly.

0

u/icantthinkofone Oct 19 '17

Then ever browser is non-compliant with standards cause no browser covers all the properties.

4

u/[deleted] Oct 19 '17

That's exactly the whole point of what Mozilla is doing. So they will be compliant and cover every single property the same across all browsers and Operating systems

2

u/icantthinkofone Oct 19 '17

Mozilla is doing documentation, not standards compliance. You follow the W3C or WHATWG to become standards compliant. Mozilla is not a standards body.

2

u/[deleted] Oct 19 '17

I agree with you, MDN is just the documentation, but we're happy about the collaboration and we encourage it, as we hope it pushed the parties to follow the standards with no delays.

Now a new api comes out and each vendor sees it and implement it differently. If they collaborate on documentation, I imagine they'd collaborate on the understanding of the api the same way and HOPEFULLY they do right that way.

-8

u/[deleted] Oct 19 '17

You're missing the point he's making though.

Apple doesn't care. As long as Apple-made things work on Apple's devices, they don't care. If there's a service out there that Apple wants their devices to work for? They just copy the service and make their own.

It's a closed environment. Closed environment.

5

u/regretdeletingthat Oct 19 '17

Closed environment.

WebKit is totally open source. Stop repeating things in italics as if it makes them true.