-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add a |source| argument to inline behavior algorithm #1051
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11343,9 +11343,9 @@ Transport Protocol">HTTP</abbr> today.</p></pre> <!-- DO NOT REWRAP THIS L | |
|
|
||
| <p>However, if the <span>Should element's inline behavior be blocked by Content Security | ||
| Policy?</span> algorithm returns "<code data-x="">Blocked</code>" when executed upon the | ||
| attribute's <span>element</span> and "<code data-x="">style attribute</code>", then the style | ||
| rules defined in the attribute's value must not be applied to the <span>element</span>. <ref | ||
| spec="CSP"></p> | ||
| attribute's <span>element</span>, "<code data-x="">style attribute</code>", and the attribute's | ||
| value, then the style rules defined in the attribute's value must not be applied to the | ||
| <span>element</span>. <ref spec="CSP"></p> | ||
|
|
||
| </div> | ||
|
|
||
|
|
@@ -13861,8 +13861,8 @@ own thing rather than part of the extended sentence --> | |
|
|
||
| <li><p>If the <span>Should element's inline behavior be blocked by Content Security | ||
| Policy?</span> algorithm returns "<code data-x="">Blocked</code>" when executed upon the | ||
| <code>style</code> element and "<code data-x="">style</code>", then abort these steps. | ||
| <ref spec="CSP"></p></li> | ||
| <code>style</code> element, "<code data-x="">style</code>", and the <code>style</code> | ||
| element's <code>style data</code>, then abort these steps. <ref spec="CSP"></p></li> | ||
|
|
||
| <!-- note that the browsing context isn't needed: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2739 --> | ||
|
|
||
|
|
@@ -58629,9 +58629,9 @@ o............A....e | |
| <li id="script-processing-csp"><p>If the <code>script</code> element does not have a <code | ||
| data-x="attr-script-src">src</code> content attribute, and the <span>Should element's inline | ||
| behavior be blocked by Content Security Policy?</span> algorithm returns "<code | ||
| data-x="">Blocked</code>" when executed upon the <code>script</code> element and "<code | ||
| data-x="">script</code>", then abort these steps. The script is not executed. <ref | ||
| spec="CSP"></p></li> | ||
| data-x="">Blocked</code>" when executed upon the <code>script</code> element, "<code | ||
| data-x="">script</code>", and the <code>script</code> element's <code>child text content</code>, | ||
| then abort these steps. The script is not executed. <ref spec="CSP"></p></li> | ||
|
|
||
|
||
| <li id="script-processing-for"> | ||
|
|
||
|
|
@@ -88425,8 +88425,8 @@ dictionary <dfn>PromiseRejectionEventInit</dfn> : <span>EventInit</span> { | |
| <ol> | ||
| <li><p>If the <span>Should element's inline behavior be blocked by Content Security | ||
| Policy?</span> algorithm returns "<code data-x="">Blocked</code>" when executed upon the | ||
| attribute's <span>element</span> and "<code data-x="">script attribute</code>", then abort these | ||
| steps. <ref spec="CSP"></p></li> | ||
| attribute's <span>element</span>, "<code data-x="">script attribute</code>", and the attribute's | ||
| value, then abort these steps. <ref spec="CSP"></p></li> | ||
|
|
||
| <li><p>Set the corresponding <span data-x="event handlers">event handler</span> to an | ||
| <span>internal raw uncompiled handler</span> consisting of the attribute's new value and the | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 seems wrong given https://html.spec.whatwg.org/multipage/semantics.html#style-data. Only child
Textnodes matter for<style>.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.
Also, does this check happen after we determined this is CSS?
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.
I don't think it matters whether we consider this CSS or not, does it? Whatever style language we support, we'd run it through
style-srcand check against inline.That's what I was looking for, thanks!