flyntwp / flynt

Component based WordPress starter theme, powered by ACF Pro and Timber, optimized for a11y and fast page load results.
https://flyntwp.com
MIT License
735 stars 84 forks source link

Safari Support #370

Closed kilianso closed 3 years ago

kilianso commented 3 years ago

Hey folks. Based on caniuse customized built-in elements are currently not available in Safari. So something like<div is="flynt-slider-images"></div>will fail while <flynt-slider-images></flynt-slider-images> would work.

Do you have any build-magic going on to make this work or how do you deal with Safari?

domtra commented 3 years ago

Hi @kilianso , yes, we do include a polyfill for browsers that do not support custom built-in elements. The current version of flynt includes https://github.com/WebReflection/document-register-element but for the next version we are switching to only https://github.com/WebReflection/custom-elements-builtin, potentially. Hope this anwsers your question.