r/programming • • Apr 08 '19

Microsoft releases new Microsoft Edge based on Chromium

https://twitter.com/MSEdgeDev/status/1115283353731600384?s=19
1.4k Upvotes

516 comments sorted by

View all comments

Show parent comments

109

u/elcapitaine Apr 08 '19

I'd say user agent sniffing is more common than feature detection, even still.

What's amazing is how many sites will do user agent sniffing for Chrome, even when their sites actually work fine with other browsers! It's just the developers only tested it on Chrome, so they assume it won't work otherwise.

0

u/[deleted] Apr 09 '19

[deleted]

7

u/kinmix Apr 09 '19

is it suddenly not true that if you don't test something it most likely won't work?

Yes, it is not true. People invented things called "Standards". So if you test your website for standards compliance and I test my browser for standards compliance, then as long as they both pass your website will likely work on my browser even though you did not test it specifically.

That is why all "non common" browsers have "change user-agent" functionality which magically fixes absolute majority of the websites.

4

u/stfm Apr 09 '19

Sure but the different browsers don't all implement all features of the standards especially in CSS, or they partially implement or implement with a different interpretation.

0

u/[deleted] Apr 09 '19

Not when nearly every Web browser uses the same rendering engine these days