home.social

#lightdom — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #lightdom, aggregated by home.social.

  1. "With a traditional HTML component, any developer who uses it will need to update their HTML, JavaScript, and CSS files to include the fix. With web components, they only have to update the JavaScript file."

    htmhell.dev/adventcalendar/202

    Very straightforward #WebComponents example by @cferdinandi by showing how to create the (classic?) counter button.

    #HTML #JavaScript #WebDev #Frontend #ShadowDOM #LightDOM

  2. "With a traditional HTML component, any developer who uses it will need to update their HTML, JavaScript, and CSS files to include the fix. With web components, they only have to update the JavaScript file."

    htmhell.dev/adventcalendar/202

    Very straightforward #WebComponents example by @cferdinandi by showing how to create the (classic?) counter button.

    #HTML #JavaScript #WebDev #Frontend #ShadowDOM #LightDOM

  3. "With a traditional HTML component, any developer who uses it will need to update their HTML, JavaScript, and CSS files to include the fix. With web components, they only have to update the JavaScript file."

    htmhell.dev/adventcalendar/202

    Very straightforward #WebComponents example by @cferdinandi by showing how to create the (classic?) counter button.

    #HTML #JavaScript #WebDev #Frontend #ShadowDOM #LightDOM

  4. "With a traditional HTML component, any developer who uses it will need to update their HTML, JavaScript, and CSS files to include the fix. With web components, they only have to update the JavaScript file."

    htmhell.dev/adventcalendar/202

    Very straightforward #WebComponents example by @cferdinandi by showing how to create the (classic?) counter button.

    #HTML #JavaScript #WebDev #Frontend #ShadowDOM #LightDOM

  5. "With a traditional HTML component, any developer who uses it will need to update their HTML, JavaScript, and CSS files to include the fix. With web components, they only have to update the JavaScript file."

    htmhell.dev/adventcalendar/202

    Very straightforward #WebComponents example by @cferdinandi by showing how to create the (classic?) counter button.

    #HTML #JavaScript #WebDev #Frontend #ShadowDOM #LightDOM

  6. 🌤️ Head Toward the Light DOM

    Recently, there has been a spate of articles that talk about using the Light DOM in Web Components. Everyone knows we are extremely pro-Light DOM web components. Today, we are announcing some new client-side Light DOM functionality.

    by @macdonst

    #webcomponents #lightdom

    begin.com/blog/posts/2023-11-1

  7. 🌤️ Head Toward the Light DOM

    Recently, there has been a spate of articles that talk about using the Light DOM in Web Components. Everyone knows we are extremely pro-Light DOM web components. Today, we are announcing some new client-side Light DOM functionality.

    by @macdonst

    begin.com/blog/posts/2023-11-1

  8. 🌤️ Head Toward the Light DOM

    Recently, there has been a spate of articles that talk about using the Light DOM in Web Components. Everyone knows we are extremely pro-Light DOM web components. Today, we are announcing some new client-side Light DOM functionality.

    by @macdonst

    #webcomponents #lightdom

    begin.com/blog/posts/2023-11-1

  9. 🌤️ Head Toward the Light DOM

    Recently, there has been a spate of articles that talk about using the Light DOM in Web Components. Everyone knows we are extremely pro-Light DOM web components. Today, we are announcing some new client-side Light DOM functionality.

    by @macdonst

    #webcomponents #lightdom

    begin.com/blog/posts/2023-11-1

  10. 🌤️ Head Toward the Light DOM

    Recently, there has been a spate of articles that talk about using the Light DOM in Web Components. Everyone knows we are extremely pro-Light DOM web components. Today, we are announcing some new client-side Light DOM functionality.

    by @macdonst

    #webcomponents #lightdom

    begin.com/blog/posts/2023-11-1

  11. `aria-labelledby` and `aria-describedby` attributes requiring IDs is but a one example of #accessibility being unaccessible to the dev like me. Only do you get a conflict in IDs for #ARIA and browser will choose to silently fail with the first occurence of element ID. Couldn't those be scoped CSS #selectors to actually make sense? I cannot willingly drag my hand and implant unique IDs on a whim: first thing, I have to come up with really witty names, another - mangle the markup of reusable component... wait.

    Now that I think about it, maybe that's one superior use for #ShadowDOM over #LightDOM? Are #CustomElements getting more compatible with #a11y things with months to come? I wanna employ #WebComponents in #Kbin fork, but I need a strong reasoning for this.

  12. `aria-labelledby` and `aria-describedby` attributes requiring IDs is but a one example of #accessibility being unaccessible to the dev like me. Only do you get a conflict in IDs for #ARIA and browser will choose to silently fail with the first occurence of element ID. Couldn't those be scoped CSS #selectors to actually make sense? I cannot willingly drag my hand and implant unique IDs on a whim: first thing, I have to come up with really witty names, another - mangle the markup of reusable component... wait.

    Now that I think about it, maybe that's one superior use for #ShadowDOM over #LightDOM? Are #CustomElements getting more compatible with #a11y things with months to come? I wanna employ #WebComponents in #Kbin fork, but I need a strong reasoning for this.

  13. `aria-labelledby` and `aria-describedby` attributes requiring IDs is but a one example of #accessibility being unaccessible to the dev like me. Only do you get a conflict in IDs for #ARIA and browser will choose to silently fail with the first occurence of element ID. Couldn't those be scoped CSS #selectors to actually make sense? I cannot willingly drag my hand and implant unique IDs on a whim: first thing, I have to come up with really witty names, another - mangle the markup of reusable component... wait.

    Now that I think about it, maybe that's one superior use for #ShadowDOM over #LightDOM? Are #CustomElements getting more compatible with #a11y things with months to come? I wanna employ #WebComponents in #Kbin fork, but I need a strong reasoning for this.

  14. `aria-labelledby` and `aria-describedby` attributes requiring IDs is but a one example of #accessibility being unaccessible to the dev like me. Only do you get a conflict in IDs for #ARIA and browser will choose to silently fail with the first occurence of element ID. Couldn't those be scoped CSS #selectors to actually make sense? I cannot willingly drag my hand and implant unique IDs on a whim: first thing, I have to come up with really witty names, another - mangle the markup of reusable component... wait.

    Now that I think about it, maybe that's one superior use for #ShadowDOM over #LightDOM? Are #CustomElements getting more compatible with #a11y things with months to come? I wanna employ #WebComponents in #Kbin fork, but I need a strong reasoning for this.

  15. `aria-labelledby` and `aria-describedby` attributes requiring IDs is but a one example of being unaccessible to the dev like me. Only do you get a conflict in IDs for and browser will choose to silently fail with the first occurence of element ID. Couldn't those be scoped CSS to actually make sense? I cannot willingly drag my hand and implant unique IDs on a whim: first thing, I have to come up with really witty names, another - mangle the markup of reusable component... wait.

    Now that I think about it, maybe that's one superior use for over ? Are getting more compatible with things with months to come? I wanna employ in fork, but I need a strong reasoning for this.

  16. @kulykov I finalized boilerplate in base class. Type hints are asinine, albeit logic for slot update takes into account:
    + addedNodes (additions to the #LightDOM),
    + removedNodes (nodes previously assigned to slots now trigger callback for each of the same slots to handle fallback),
    + target (text changes within those nodes).

    Was stuck doing UserPanel component. It can now accept user's name and email via slots, and update name initials in the inner Avatar based on slot text.

  17. @kulykov I finalized boilerplate in base class. Type hints are asinine, albeit logic for slot update takes into account:
    + addedNodes (additions to the #LightDOM),
    + removedNodes (nodes previously assigned to slots now trigger callback for each of the same slots to handle fallback),
    + target (text changes within those nodes).

    Was stuck doing UserCard component. It can now accept user's name and email via slots, and update name initials in the inner Avatar based on slot text.

  18. @kulykov I finalized boilerplate in base class. Type hints are asinine, albeit logic for slot update takes into account:
    + addedNodes (additions to the #LightDOM),
    + removedNodes (nodes previously assigned to slots now trigger callback for each of the same slots to handle fallback),
    + target (text changes within those nodes).

    Was stuck doing UserPanel component. It can now accept user's name and email via slots, and update name initials in the inner Avatar based on slot text.