WebPlatformTest / HTML5test

How well does your browser support HTML5?
https://html5test.com
MIT License
995 stars 193 forks source link

Custom content handlers -- no longer standard #534

Open crazytonyi opened 6 years ago

crazytonyi commented 6 years ago

This is a tad confusing. The MDN doc for registerContentHandler() (as linked from the "Custom content handlers" test) indicates the following:

Non-standard This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

as well as:

Firefox is the only browser that implemented this feature, it wasn't implemented to the standard. This feature has since been removed from the HTML standard and shouldn't be used.

But the current w3c draft for HTML 5.2 (also as linked from the test) still includes registerContentHandler() :

https://www.w3.org/TR/html5/webappapis.html#custom-scheme-and-content-handlers-the-registerprotocolhandler-and-registercontenthandler-methods

So I'm not sure if Firefox is being neurotic, or if the spec is out of date. But the compare page for that test is consistent with the MDN note that this feature is only implemented on Firefox:

http://html5test.com/compare/feature/offline.registerContentHandler.html

There are a handful of older browsers that are non-Firefox in the list (Presto-based Opera), and Samsung Internet also supports it, but not Chrome, modern Opera, or Edge.

Based on the above, should this test be removed?

dstorey commented 6 years ago

The feature is now non-standard. It was removed from the WhatWG version of the spec, which is the one used by implementers and the upstream version that the W3C HTML spec uses.

It has also been removed from HTML5Test V9.