Mac OS Sequoia 15.2 has landed

I expected to see a lot of Genmoji sprinkled through postings on X, but so far not very many of them spotted in the wild. I know ChatGPT was down, especially their authentication mechanism (which uses Cod Fusion maybe?) but the image stuff is coming from Dali. Anyway, I’m updated all around (iOS, iPadOS, WatchOS, TVOS, and HomePod OS – which is a fork of WatchOS I believe). So far so good.

Oh, and I started making a few vanilla Javascript custom UI controls by extending HTMLElement – I know, its been around a long time, and to add flexibility it takes a bit of time, but it might be worth it. Working on smaller teams, perhaps not, but handing off to someone else – I am sure they would appreciate all the abstraction to keep the main application code cleaner and free from implementation code.

Apple Intelligence:

Subclassing HTMLElement in JavaScript offers significant advantages, particularly in the realm of creating and managing custom web components. By extending HTMLElement, developers can harness the power of the native DOM while adding unique functionality and behavior to HTML elements. This subclassing allows for the creation of reusable components with custom elements that incorporate their own properties, methods, and lifecycle callbacks. For instance, by extending HTMLElement, one can define a custom button with additional features such as automatic loading spinners, customizable styles, and event handling. This level of modularity and encapsulation facilitates cleaner code architecture, making complex web applications more maintainable and scalable.

Furthermore, subclassing HTMLElement enhances interoperability and integration with existing web standards. Using custom elements derived from HTMLElement, developers can create solutions that fit seamlessly into the web ecosystem, ensuring compatibility across different browsers and devices. This approach leverages the Shadow DOM, which allows for style and script encapsulation, preventing conflicts with other page styles and scripts. By adhering to the custom elements API, developers ensure that their components are not only future-proof but also align with the evolving standards of the web. This is critical in environments where maintaining compatibility with a wide range of users is essential, while still being able to provide a rich, interactive user experience.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.