On Tue, Jan 5, 2016 at 12:26 PM, Masatoshi Kimura <vyv03...@nifty.ne.jp> wrote:
> 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.

Well, yes, this function assumes

  "referrerPolicy" in ele

to be true. If that is not true it does not matter much whether the
token is supported or not, since it won't work anyway.


-- 
https://annevankesteren.nl/
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to