Skip to content
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

Is-element-nonceable should check if the attribute's name |contains| <script or <style> #636

Merged
merged 1 commit into from
Jan 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4108,13 +4108,11 @@ this algorithm returns normally if compilation is allowed, and throws a
2. If |element| is a <{script}> element, then <a for=list>for each</a> |attribute| of
|element|'s <a for=Element>attribute list</a>:

1. If |attribute|'s name is an <a>ASCII case-insensitive</a> match for
the string "<code>&lt;script</code>" or the string
"<code>&lt;style</code>", return "`Not Nonceable`".
1. If |attribute|'s name contains an <a>ASCII case-insensitive</a> match for
"<code>&lt;script</code>" or "<code>&lt;style</code>", return "`Not Nonceable`".

2. If |attribute|'s value contains an <a>ASCII case-insensitive</a> match
the string "<code>&lt;script</code>" or the string
"<code>&lt;style</code>", return "`Not Nonceable`".
2. If |attribute|'s value contains an <a>ASCII case-insensitive</a> match for
"<code>&lt;script</code>" or "<code>&lt;style</code>", return "`Not Nonceable`".

3. If |element| had a [=duplicate-attribute=] [=parse error=] during tokenization, return
"`Not Nonceable`".
Expand Down
Loading