Hacker News new | ask | show | jobs
by joestrouth1 943 days ago
That is one way to do it, provided `user-avatar` extends HTMLImageElement and not the more generic HTMLElement. Extending built-ins and using the `is` attribute is not supported in Safari however and last I checked they were firmly opposed to it.

https://developer.mozilla.org/en-US/docs/Web/HTML/Global_att...

1 comments

There is a polyfill for customiziing built-ins on Safari.

https://github.com/ungap/custom-elements