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 19981 - "or" and "otherwise" may be confusing
Summary: "or" and "otherwise" may be confusing
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: Encoding (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: Unsorted
Assignee: Anne
QA Contact: sideshowbarker+encodingspec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-16 09:43 UTC by Martin Dürst
Modified: 2012-11-16 12:11 UTC (History)
1 user (show)

See Also:


Attachments

Description Martin Dürst 2012-11-16 09:43:47 UTC
The spec contains the following sentence:

"If label is an ASCII case-insensitive match for any of the labels listed in the table below, return the corresponding encoding, or return failure otherwise."

In the last clause, the "or" does not match "otherwise", which may lead to confusion. Please reword as:

"If label is an ASCII case-insensitive match for any of the labels listed in the table below, return the corresponding encoding. Otherwise, return failure."
Comment 1 Anne 2012-11-16 11:45:51 UTC
How about "and return failure otherwise"?
Comment 2 Martin Dürst 2012-11-16 11:50:25 UTC
(In reply to comment #1)
> How about "and return failure otherwise"?

Works for me.