Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Navigator.platform deprecated?

4,896 views
Skip to first unread message

Chris Brown

unread,
Apr 29, 2016, 8:20:25 AM4/29/16
to dev...@lists.mozilla.org
Hi,

I see a deprecated banner on https://developer.mozilla.org/en-US/docs/Web/API/NavigatorID/platform. I can't see any mention of this property being deprecated other than on MDN, and no mention of deprecation in the following:

https://www.w3.org/TR/html5/webappapis.html#the-navigator-object
https://html.spec.whatwg.org/multipage/webappapis.html#dom-navigator-platform

Does anyone have a source for this info?

I'm asking because if this property turns out not to be deprecated after all, I will use it :)


Fair Isaac Services Limited (Co. No. 01998476) and Fair Isaac (Adeptra) Limited (Co. No. 03295455) are registered in England and Wales and have a registered office address of Cottons Centre, 5th Floor, Hays Lane, London, SE1 2QP.

This email and any files transmitted with it are confidential, proprietary and intended solely for the individual or entity to whom they are addressed. If you have received this email in error please delete it immediately.

Eric Shepherd

unread,
Apr 29, 2016, 11:43:32 AM4/29/16
to Chris Brown, dev...@lists.mozilla.org
I don't know why this got marked deprecated. I went through the history
of the WHATWG HTML spec and did some spot checking and never found a
time anywhere around this change (on September 2, by teoli) that made
this deprecated.

I have removed that banner (and the "Deprecated" tag), since as far as I
can tell it never should have been added. If someone has information to
the contrary, please share!

While I was at it, I tidied up some other style and other quirks with
the page, so it's in a better state overall.

Thank you for spotting this error!

------------------------------------------------------------------------
*From:* Chris Brown
*Sent:* Friday, Apr 29, 2016 8:19:49 AM EDT
*To:* dev...@lists.mozilla.org
*Subject:* [dev-mdc] Navigator.platform deprecated?

> I see a deprecated banner on https://developer.mozilla.org/en-US/docs/Web/API/NavigatorID/platform. I can't see any mention of this property being deprecated other than on MDN, and no mention of deprecation in the following:
>
> https://www.w3.org/TR/html5/webappapis.html#the-navigator-object
> https://html.spec.whatwg.org/multipage/webappapis.html#dom-navigator-platform
>
> Does anyone have a source for this info?
>
> I'm asking because if this property turns out not to be deprecated after all, I will use it :)

--

Eric Shepherd
Senior Technical Writer
Mozilla Developer Network <https://developer.mozilla.org/>
Blog: https://www.bitstampede.com/
Twitter: http://twitter.com/sheppy
Doodle: http://doodle.com/the.sheppy

Karl Dubost

unread,
May 1, 2016, 9:46:11 PM5/1/16
to Eric Shepherd, Chris Brown, dev-mdc
Eric, Chris,

Le 30 avr. 2016 à 00:43, Eric Shepherd <eshe...@mozilla.com> a écrit :
> I don't know why this got marked deprecated. I went through the history
> of the WHATWG HTML spec and did some spot checking and never found a
> time anywhere around this change (on September 2, by teoli) that made
> this deprecated.

And it is used in multiple places for platform detection (unfortunately, but reality).
So yes it's well implemented and interoperable.

Examples at:
https://bugzilla.mozilla.org/show_bug.cgi?id=1143441
https://bugzilla.mozilla.org/show_bug.cgi?id=826353
https://bugzilla.mozilla.org/show_bug.cgi?id=1036608


Thanks for the finding, and the modifications.

--
Karl Dubost, Mozilla
http://www.la-grange.net/karl/moz

Eric Shepherd

unread,
May 2, 2016, 9:30:19 AM5/2/16
to Karl Dubost, Chris Brown, dev-mdc
I *suspect* it got marked as deprecated because some well-meaning soul
who knows this thing ought not to be used suggested we mark it that way
to discourage its use. But that's not technically correct, so...


> And it is used in multiple places for platform detection (unfortunately, but reality).
> So yes it's well implemented and interoperable.

Chris Brown

unread,
May 3, 2016, 3:12:48 AM5/3/16
to Eric Shepherd, Karl Dubost, dev-mdc
Thanks for the fix guys.
_______________________________________________
dev-mdc mailing list
dev...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-mdc
MDN contributor guide: http://bit.ly/ContributorGuide Doc project Trello board: https://trello.com/b/HAhl54zz/status
0 new messages