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

One can extend native elements, but the support ain’t there on Safari


I recently made an entire WebRTC p2p video player that worked seamlessly everywhere! Except iPhone Safari. And all iPhone (but not iPad!) browsers are Safari under the hood that couldn't do a few of the fundamentals needed.


Just this tiny polyfill, and you should be OK on Safari. https://github.com/ungap/custom-elements




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

Search: