This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The specification for handling "Import Key" for Diffie-Hellman ( https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dh-operations ) states for Import Key "If format is "pkcs8"": 2. Let privateKeyInfo be the result of running the parse a privateKeyInfo algorithm over keyData 3. If an error occurred whiled parsing, then return an error named OperationError However, this differs from all other cases, where the error returned from a parse failure is a DataError.
https://dvcs.w3.org/hg/webcrypto-api/rev/02122907368e