Viewing profile — dannye
dannye
HN member- Joined
- Tue, Jan 04, 2022, 8:41 PM UTC
- HN karma
- 87
- Public activity
- 28 items
- HN profile
- View on Hacker News ↗
About dannye
No profile information was provided.
Recent public activity
-
comment
Comment #46690765
Browsers create ANY tag with at least one dash as a *Custom Element* They come in TWO flavours, and since they ARE HTMLElement, can be used for layout AND styling with CSS. The off…
-
comment
Comment #46442557
One drawback. ► execute at bottom of file ► execute Both do the same; they execute script after DOM was parsed. When your JS creates GUI you now have to battle FOUCs. ► "import" lo…
-
comment
Comment #46418689
are NOT unrecognized tags! I blogged about this: https://dashed-html.github.io ◄ = always an HTMLUnknownElement until the WHATWG adds it as new Element. ◄ = (No JS!) UNDEFINED Cust…
-
comment
Comment #46418602
this.querySelector will return nothing when you define this Web Component before (light)DOM is parsed, because the connectedCallback fires on the opening tag. Above code will only …
-
comment
Comment #45038144
Microsoft SharePoint version 2007 and 2010 where all XSLT. Used in just about every serious Intranet 15...20 years ago. Developers deemed it too complex (or they were just stupid?)…
-
comment
Comment #44864639
What the MDN documenation doesn't make clear, is the relationship between Inline Event Handlers and Event Handler Properties CLICK! DIV.onclick = (evt) => console.log(2) DIV.addEve…
-
comment
Comment #44822440
The article isn't complete/correct. Something did change with HTML. Since 2018 every browser interprets ANY with a dash as a valid HTMLElement, not HTMLUnknownElement. Absolutly NO…
-
comment
Comment #44692441
Latest blogpost on that site is from 2018 I presume Web Components are so great they haven't had anything happen since 2018
-
comment
Comment #44692427
> there are no weird rendering glitches or timing issues or weird gotchas that you have to dig into to. Ehm... define the Web Component render blocking in the head, because you wan…
-
comment
Comment #44518098
>> On the positive side their use of web components is a nice bet. Web Components are a JavaScript/ECMAscript standard. So this is like saying: _Their use of Arrays is a nice bet_
-
comment
Comment #40295978
Note: Everyone uses Web Components. WTF?! Why does the tag has a shadowRoot ??? Browser Vendors have been using Web Component technology for INPUT, TEXTAREA, VIDEO and the like, fo…
-
comment
Comment #40295822
I would go all-in. Web Components is not (just) about technology, but about 4 companies working together on setting a standard. Companies that used to fight in the Browser Wars now…
-
comment
Comment #40013958
FYI: adoptedStyleSheets: https://developer.mozilla.org/en-US/docs/Web/API/Document/ad...
-
comment
Comment #39854324
for over 10 years now Apple has stated it won't implement Customized Built In Elements ( "is" extends ) If you want to dive in deep: https://stackoverflow.com/search?q=liskov Here …
-
comment
Comment #39854220
Only when you really want to encapsulate style or ensure GUI. This should/could be part of a generic We use a single for over 15 projects, it extracts domain namens to set the corr…
-
comment
Comment #39854148
There are some issues with this code: https://gist.github.com/ceving/6e65886e04563ed9e6e42cc5f8d3f...
-
comment
Comment #39140501
document.body.onclick=()=>"document.location='www.google.com'";
-
comment
Comment #39077856
https://webcomponents.dev/blog/all-the-ways-to-make-a-web-co... Yet, they are all Tools, and you don't learn a Technology by learning a Tool, or do you become a Writer when you lea…
-
comment
Comment #38611511
why waste 28 minutes writing your own component? copy/paste takes 2 minutes https://dev.to/dannyengelman/load-file-web-component-add-ext...
-
comment
Comment #37001161
React supports Web Components, just some quirks to be aware of: https://custom-elements-everywhere.com/
-
comment
Comment #37001126
If Lit is equivalent to Svelte, then BASIC was equivalent to COBOL
-
comment
Comment #37001078
Unless you are still in the IE world (which is challenging when using WCs), use one `append` instead of multiple `appendChild`
-
comment
Comment #37001046
use: slotAssignment: 'manual'
-
comment
Comment #37000591
ARE all Web Components, and have been for many moons so Browser vendors could implement their own UI. So everyone using a Browser *IS* using Web Components. It just took some years…
-
comment
Comment #36813750
To make that a fair comparison Andrew his native code should be refactored to: https://jsfiddle.net/WebComponents/ovtc5wpx/ customElements.define('like-button', class extends HTMLE…