Polyfill for HTML dialog (using x-tags)