News for hackers. Stuff that matters.
Re:New WebKit features in Safari 15.4 by inopinatus on Monday March 14, 2022 @09:55PM (#30680913)
Webkit is not committed to fully implementing the HTML Living Standard, or more precisely, they are committed to killing off the parts they don't like by declining to implement them. They point-blank refuse to implement Customized Built-in Elements, for example, and in such (unusually, for the context) vehement, uncompromising, and unconstructive language¹ that I can only surmise some Apple apparatchik's fragile ego would be irreparably shattered by even contemplating an amendment of this position.

Thanks to such attitudes, Safari remains the "new IE", the problem browser for which developers must find workarounds.

(1) e.g. https://github.com/WICG/webcomponents/issues/509 and other forums besides

Re:New WebKit features in Safari 15.4 by tarsinge on Tuesday March 15, 2022 @06:12AM (#30683529)
> Safari remains the "new IE", the problem browser for which developers must find workarounds.

More like the non-Chrome browser for which Chrome developers must find workarounds. I can't remember encountering a Safari specific problem in the tens of websites I have developed in the last years. Now sure I understand the pain if you are developing web apps instead, but in that case maybe it's time to assume Chrome is an app platform (OS ?) and not just a browser, and simply only target that platform and don't try to shoehorn the web into it?

Re:New WebKit features in Safari 15.4 by agust on Tuesday March 15, 2022 @08:31AM (#30684466)
Sure, simple websites mostly work in Safari. But we're in 2022, and indeed a lot of companies develop web apps, and not simple websites like 20 years ago.

The web itself is an app platform. The only browser preventing it to happen on mobile is Safari. Have a look at the desktop. There, web apps have replaced most native apps long ago.

Re:New WebKit features in Safari 15.4 by tarsinge on Tuesday March 15, 2022 @10:12AM (#30685526)
That's not in contradiction with what I said. I have nothing against web apps and I'm not arguing against their success. But they don't make the web irrelevant, they are just something different, just historically built on top of the web.

And indeed when we have a look at the desktop it further proves the point, Electron apps ship their whole execution platform, basically an OS inside an OS, and it's Chrome. So the divorce between Chrome the app platform and the web has already started. Safari is a blessing for me because it force that issue to crop up and be discussed, instead of just letting the web slowly become the Google platform.

Re:New WebKit features in Safari 15.4 by dmitriid on Tuesday March 15, 2022 @08:33AM (#30684478)
> The web itself is an app platform.

It's not. And frankly will never be.

> The only browser preventing it to happen on mobile is Safari.

It's not preventing anything

> look at the desktop. There, web apps have replaced most native apps long ago.

What a strange fantasy world you live in.

Re:New WebKit features in Safari 15.4 by agust on Tuesday March 15, 2022 @09:16AM (#30684824)
Very convincing, thank you for this well argued response.
Re:New WebKit features in Safari 15.4 by dmitriid on Tuesday March 15, 2022 @12:08PM (#30687074)
It's in the vein of your statements, and it takes too much time to explain why this is wrong. And this has been said many times before by many people far more eloquent and knowledgable than I. Yet this sentiment persists (even if it's driven by emotion on the one hand and relentless Chrome propaganda on the other).
Re:New WebKit features in Safari 15.4 by mccorrinall on Tuesday March 15, 2022 @08:27PM (#30693746)
I use a lot of web applications like tradingview.com and need web push notifications. Safari still does not support them and it’s so annoying.
Re:New WebKit features in Safari 15.4 by inopinatus on Wednesday March 16, 2022 @05:48PM (#30704567)
All your assumptions are wrong: I hack on lightweight framework code, and my primary development browser is Firefox.
Re:New WebKit features in Safari 15.4 by barrell on Tuesday March 15, 2022 @06:25AM (#30683628)
As a long time web dev who primarily uses Safari for development, I find myself constantly looking for workarounds for Chrome.

I do admit sometimes I feel Safari to be lagging behind, but I think it's a far cry from the 'new IE'. At the very least it's not a given that it's the problem browser for developers.

Re:New WebKit features in Safari 15.4 by agust on Tuesday March 15, 2022 @08:24AM (#30684413)
That's definitely not representative of the general sentiment. As far as I'm concerned, probably around 95% of my debugging time is spent on Safari. Stuff usually works like a charm in Chrome or Firefox. Safari is a gigantic pain due to its plethora of bugs (and new ones appearing with each release) and missing features preventing you to easily work around them.
Re:New WebKit features in Safari 15.4 by eyelidlessness on Tuesday March 15, 2022 @02:55AM (#30682368)
I glanced at the linked issue and I see demands for disregarding the standard to accommodate a non-standard API. Is that what you’re asking for? Or are you on the side of implementing the living standard as it evolves? If there’s another position I’m missing feel free to fill in the blank.
Re:New WebKit features in Safari 15.4 by inopinatus on Tuesday March 15, 2022 @03:01AM (#30682415)
That is a very heavily commented ticket (600+ comments) so it’s hard to assess all the alternative positions.

However, in my view: as one of the four stewards of WHATWG, Apple have an obligation to either implement the standard, or propose a convincing alternative that the steering group can adopt.

I don’t know what’s more embarrassing; that Apple tried to use market power to modify a standard after failing to do so in committee, or that after six years even that strategy was a failure. Either way it all smacks of institutional arrogance.

Re:New WebKit features in Safari 15.4 by dmitriid on Tuesday March 15, 2022 @03:09AM (#30682462)
They presented a clear case of why they refuse to implement them.

That's how how standards work

Re:New WebKit features in Safari 15.4 by inopinatus on Tuesday March 15, 2022 @03:10AM (#30682468)
Their reasoning was evidently not accepted.

If Apple do not wish to implement the standard, they should leave the steering group.

Re:New WebKit features in Safari 15.4 by dmitriid on Tuesday March 15, 2022 @03:21AM (#30682524)
> If Apple do not wish to implement the standard, they should leave the steering group.

No, they shouldn't.

There was another standard, HTML Imports. It was agreed on, but then Mozilla decided not to implement them. Should Mozilla leave the steering group, too?

Re:New WebKit features in Safari 15.4 by inopinatus on Tuesday March 15, 2022 @03:40AM (#30682630)
HTML Imports were superseded whilst still a draft.

Members of a standards body are accountable for their actions. Endorsing a standard, then undermining it, is a gross dereliction of duty. These omissions have a direct impact, and you can draw a straight line from Apple’s overwhelming institutional arrogance to Safari being the “new IE”.

Re:New WebKit features in Safari 15.4 by lenkite on Tuesday March 15, 2022 @02:07PM (#30688762)
HTML Imports were superb and amazing. No idea why all modularisation needs to be forced to be Javascript. Even a hello-world web component is forced to be in JS.

It's utterly disgusting because you just know that good proposals are nixed behind the scenes because Google doesn't want anyone disabling JS - their ads would suffer. More JS == GOOD, more declarative stuff in the spirit of HTML == BAD.

I really wish Apple would go their own way and propose and implement alternatives. Better than taking Google's highway. I would prefer a fragmented ecosystem over the Tyranny Of Chrome that wants to destroy your privacy and the spirit of the world wide web.

Re:New WebKit features in Safari 15.4 by dmitriid on Tuesday March 15, 2022 @02:46PM (#30689298)
To quote Ryosuke Niwa, one of the main developers in WebKit [1]:

> Many years ago, Apple's WebKit team argued that we should have declarative way to define custom elements without scripts but we lost to the aggressive push by Google to get things shipped and iterate on it later ASAP.

[1] https://twitter.com/rniwa_dev/status/1352322006448947203

Re:New WebKit features in Safari 15.4 by inopinatus on Wednesday March 16, 2022 @06:40PM (#30705066)
This is whining about process and not getting your way, which just confirms my earlier hypothesis about fragile egos.

Apple are complaining here about their own failure to be convincing. They’ve then had the better part of a decade to find a better approach, and produced nothing concrete. Compounding one failure with another doesn’t improve their position.

This isn’t David v Goliath; WHATWG has four members, and none of them are underdogs. None of the participants here deserve even a shred of sympathy.

Re:New WebKit features in Safari 15.4 by dmitriid on Tuesday March 15, 2022 @06:34AM (#30683682)
> Members of a standards body are accountable for their actions.

Yes, yes they are. This also means that none of the browser implementors should be on the steering committee by your criteria.

> Endorsing a standard, then undermining it

Let's see about that endorsement and "undermining":

--- start quote ---

Now I'm going to re-iterate that Apple objects to extending subclasses of HTMLElement using is= as currently spec'ed for various reasons we've stated in the past and this feature won't be supported in WebKit.

...

I'll note that we've vocally and repeatedly objected to having is=, and in fact, stated publicly that we won't implement this feature, but somehow the WG kept it in the spec. I wouldn't call that a consensus. We extremely reluctantly agreed to keep it in the spec until it gets removed at risk later.

...

we're against subclassing subclasses of HTMLElement (e.g. HTMLInputElement, etc...) for various reasons, so WebKit isn't going to support this feature anyway. Extension of builtin elements are much better served with mixins.

...

And this entire comment: https://github.com/WICG/webcomponents/issues/509#issuecommen...

--- end quote ---

So did Safari endorse Web Components? Yes. And they still do. See, for example, Template Instantiation Proposal (among many other things): https://github.com/WICG/webcomponents/blob/gh-pages/proposal...

Did Safari ever support `is=`? No.

Let's see their endorsement again:

--- start quote ---

The thing is, Apple has been objecting to this feature from the get go, and the only reason it remains in the spec is because Google kept objecting to it being removed from the spec.

The fact of matter is, we only agreed to keep it in the spec to wait until the feature becomes at-risk at CR stage so that it can be removed.

--- end quote ---

I would also recommend you read this comment on the whole process and "obligation to implement" and other things (it's not from Apple): https://github.com/WICG/webcomponents/issues/509#issuecommen...

> and you can draw a straight line from Apple’s overwhelming institutional arrogance to Safari being the “new IE”.

There's definitely a PR manager in Chrome who gets a bonus every time this line is repeated. See breaking the web forward: https://www.quirksmode.org/blog/archives/2021/08/breaking_th...

Re:New WebKit features in Safari 15.4 by inopinatus on Wednesday March 16, 2022 @06:38PM (#30705041)
This extended excusing of bad behaviour doesn’t wash. You can’t reject part of a standard, when you’re one of the stewards of it. Either you’re committed, or you’re not. Like cabinet government, debates prior to decision don’t factor into your necessary commitment to the decision once it is made. A lower moral standard is only available for those who don’t claim to be the high priests.

Trivialising the issue with whataboutism doesn’t make Apple any less culpable. Sure, shit sticks to other vendors too. Google often behave appallingly, but this’ll be my first and last mention of them in this thread, and I feel just fine about that having given them plenty of stick in the past. My comment was and remains about WebKit.

Re:New WebKit features in Safari 15.4 by drcongo on Tuesday March 15, 2022 @06:11AM (#30683522)
There's some impressive projecting going on here.
Re:New WebKit features in Safari 15.4 by inopinatus on Tuesday March 15, 2022 @02:35AM (#30682274)
Curiously, the above remark was at +4 and is currently -2, which really just goes to show how polarising Apple is by timezone.