add feature detection for custom elements