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 21441 - [HTML] editorial: switch conditions
Summary: [HTML] editorial: switch conditions
Status: CLOSED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: All Windows 3.1
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-30 05:01 UTC by Michael Dyck
Modified: 2013-04-15 04:31 UTC (History)
2 users (show)

See Also:


Attachments

Description Michael Dyck 2013-03-30 05:01:30 UTC
In 4.8.4 "The object element",
in the big algorithm,
step 4.7.6 says:
    Run the approprate set of steps from the following list:
       o The resource has associated Content-Type metadata
             ....
       o The resource does not have associated Content-Type metadata
             ....

1) Change "approprate" to "appropriate".

2) For consistency, the two "switch conditions" should start with "If".

3) The second condition could just be "Otherwise".

----------

In 4.10.22.6 "URL-encoded form data",
in the application/x-www-form-urlencoded encoding algorithm,
step 4.5 says:
    For each byte in the entry's name and value, apply the appropriate
    subsubsteps from the following list:

      o The byte is 0x20 (U+0020 SPACE if interpreted as ASCII)
           ...
      o If the byte is in the range ...
           ...
      o Otherwise
           ...

For consistency, start the first switch condition with "If".

---------

In 4.12.5.1 'Link type "alternate"',
the second switch condition is:
    The alternate keyword is used with the type  attribute set to the
    value application/rss+xml or the value application/atom+xml

For consistency, start with "If".
Comment 1 Michael Dyck 2013-03-30 05:35:06 UTC
Also, in 4.11.3 "The menu element",
in the "construct and show a menu" algorithm,
step 2 has 4 switch conditions of the form:
    If the child is a foo element ...
and then the last is:
    Any other node

That should maybe be:
    If the child is any other node
or just:
    Otherwise
Comment 2 contributor 2013-04-01 19:07:43 UTC
Checked in as WHATWG revision r7789.
Check-in comment: Fix some typos or copypasta.
http://html5.org/tools/web-apps-tracker?from=7788&to=7789