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 19801 - Pattern matching algorithm doesn't handle TT bytes
Summary: Pattern matching algorithm doesn't handle TT bytes
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: MIME (show other bugs)
Version: unspecified
Hardware: PC All
: P5 normal
Target Milestone: Unsorted
Assignee: Gordon P. Hemsley
QA Contact: sideshowbarker+mimespec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-31 19:06 UTC by Ian 'Hixie' Hickson
Modified: 2014-09-20 21:57 UTC (History)
2 users (show)

See Also:


Attachments

Description Ian 'Hixie' Hickson 2012-10-31 19:06:17 UTC
The pattern matching algorithm doesn't mention TT bytes.
Comment 1 Gordon P. Hemsley 2012-10-31 19:41:44 UTC
0xTT is an alias for "tag-terminating byte" (as mentioned in the definition).

How can I mark it up to make that clearer?

(I considered using <abbr>, but I wasn't sure.)
Comment 2 Ian 'Hixie' Hickson 2012-10-31 22:15:37 UTC
Just put it in the algorithm, along the lines of "if the byte in the pattern is 'TT', then...".

Note that technically, "TT" isn't a "byte" as you've defined them. You might want to massage your terminology a bit so that the patterns are made of "pattern components" or some such, which can be either byte values or "TT" or something.
Comment 3 Gordon P. Hemsley 2014-09-20 21:57:41 UTC
I've attempted to address this by adding more explicit markup and wording:

https://github.com/whatwg/mimesniff/commit/444276e08f9cfdc7e40c1c33c1004aaeece35d0f

I don't think that this is really that ambiguous, so I'm going to close this, but feel free to reopen if this isn't sufficient.