firefox shim-shadowdom workaround; fix #320