This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25661 - Allow algorithms to be implemented "as if", rather than strict adherance
Summary: Allow algorithms to be implemented "as if", rather than strict adherance
Status: RESOLVED FIXED
Alias: None
Product: Web Cryptography
Classification: Unclassified
Component: Web Cryptography API Document (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Ryan Sleevi
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-12 17:08 UTC by Ryan Sleevi
Modified: 2014-06-16 23:13 UTC (History)
1 user (show)

See Also:


Attachments

Description Ryan Sleevi 2014-05-12 17:08:13 UTC
The specification provides a variety of procedural steps ("algorithms") that a UA is expected to implement to conform to the API. Because these steps are normative requirements, the specification would appear to be recommending a precise adherence to each of the individual steps.

This is not the intent of the editors or the WG, as it's meant to be permissable to implement in any manner a UA sees fit, provided that the external effects remain the same.

An example of such language is in the HTML spec, http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#conformance-requirements , which states

"Conformance requirements phrased as algorithms or specific steps may be implemented in any manner, so long as the end result is equivalent. (In particular, the algorithms defined in this specification are intended to be easy to follow, and not intended to be performant.)"

Such language is desirable, however, an ambiguity exists - not only is the "end result" expected to be equivalent, but the script-observable effects should also be equivalent.