How do I detect whether an input has been polyfilled?

NEW
Unassigned

Status

Firefox OS
Gaia
5 years ago
a year ago

People

(Reporter: potch, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
In Gaia, some input types have gaia-level polyfills for input UI, such as date. Is is possible to detect this? We use the modernizr-style detection on other platforms:

> var hasNativeDate = (function() {
>   input.type = 'date';
>   return input.type === 'date';
> })();

However, the Gaia-level value-picker support doesn't work with this code. Is there a way to detect that Gaia is handling these input types so we don't apply our polyfill?
(Reporter)

Comment 1

5 years ago
CCing someone from the System Module.
You need to log in before you can comment on or make changes to this bug.