Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah I was thinking about what it could do, but I don't get it. The point of custom elements is to define a class in JavaScript that does something. Custom elements are just a part of web components tho, and you can use shadow DOM, more JS, and templating with slots.

I guess user-avatar could define a template that includes styles and slots to turn the image into a round image and maybe add some caption and link to it. But that would still require JS to print the template.content.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: