-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Match pattern fragment clarification #36069
base: main
Are you sure you want to change the base?
Conversation
Preview URLs External URLs (1)URL:
(comment last updated: 2024-11-17 22:47:01) |
@@ -342,6 +342,10 @@ The special value `<all_urls>` matches all URLs under any of the supported schem | |||
<td><code>https://mozilla.org</code></td> | |||
<td>No path.</td> | |||
</tr> | |||
<tr> | |||
<td><code>https://mozilla.org/#section1</code></td> | |||
<td>Contains an unsupported match character.</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a syntactically invalid match pattern, just one that never matches.
The other examples here are examples of match patterns that are rejected as a value for "match pattern" types, but this one is accepted.
On the other hand, the example below with a host name is also syntactically valid but listed as invalid. In Chrome it is valid but in Firefox it is ignored.
@@ -342,6 +342,10 @@ The special value `<all_urls>` matches all URLs under any of the supported schem | |||
<td><code>https://mozilla.org</code></td> | |||
<td>No path.</td> | |||
</tr> | |||
<tr> | |||
<td><code>https://mozilla.org/#section1</code></td> | |||
<td>Contains an unsupported match character.</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<td>Contains an unsupported match character.</td> | |
<td>Contains a reference fragment, which are never included in the URLs to match against.</td> |
Can probably be phrased better than this. It is not that the character is unsupported technically, but that the URL that the pattern is matched against never includes the reference fragment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rob--W made some changes to address, let me know what you think
Description
Clarifies how fragments are handled in response to #14018
Related issues and pull requests
Fixes #14018