On 2016/01/04 16:54, Anne van Kesteren wrote:
> There should be, per the specification discussion. E.g.,
>
> function isSupported(token) {
> var ele = document.createElement("a")
> ele.referrerPolicy = token
> return ele.referrerPolicy === token
> }
It didn't work because |ele.referrerPolicy = token| created the
"referrerPolicy" property on ele. This function will return true even if
the browser does not support referrerPolicy.
--
[email protected]
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform