diff --git a/index.bs b/index.bs index 270b67219c..3e33116ba3 100644 --- a/index.bs +++ b/index.bs @@ -4015,7 +4015,9 @@ this algorithm returns normally if compilation is allowed, and throws a
    1. If |host| is not a [=domain=], return "`Does Not Match`". - 2. If |pattern| starts with "`*.`": + 2. If |pattern| is "`*`", return "`Matches`". + + 3. If |pattern| starts with "`*.`": 1. Let |remaining| be |pattern| with the leading U+002A (`*`) removed and ASCII lowercased. @@ -4023,10 +4025,10 @@ this algorithm returns normally if compilation is allowed, and throws a 3. Return "`Does Not Match`". - 3. If |pattern| is not an ASCII case-insensitive match for |host|, return + 4. If |pattern| is not an ASCII case-insensitive match for |host|, return "`Does Not Match`". - 4. Return "`Matches`". + 5. Return "`Matches`".