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 27341 - consider replacing integrity-metatata ABNF production with a precise prose definition of the datatype/microsyntax
Summary: consider replacing integrity-metatata ABNF production with a precise prose de...
Status: NEW
Alias: None
Product: WebAppsSec
Classification: Unclassified
Component: Subresource Integrity (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Mike West
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-17 05:44 UTC by Michael[tm] Smith
Modified: 2014-11-17 05:44 UTC (History)
2 users (show)

See Also:


Attachments

Description Michael[tm] Smith 2014-11-17 05:44:03 UTC
https://w3c.github.io/webappsec/specs/subresourceintegrity/#the-integrity-attribute-2

Please consider changing the definition of the datatype/microsyntax of the "integrity" attribute to read as follows:

  The value of the attribute must be a _set of space-separated tokens_[HTML], each of
  which must be a Named Information (ni) URI as defined in the "Named Information
  (ni) URI Format" section of [RFC6920].

...where _set of space-separated tokens_ is a hyperlink to https://html.spec.whatwg.org/multipage/infrastructure.html#space-separated-tokens

Rationale: These days in the HTML spec and most other specs that specify datatypes/ microsyntaxes for attribute values, the convention that's followed it to just write the definition in prose, using prose primitives (defined in the HTML spec) such as "set of space-separated tokens" rather than ABNF productions or other formalisms.