Skip to content

Commit

Permalink
I have correct a few Copy/Paste errors in the documention of the Styl…
Browse files Browse the repository at this point in the history
…eSourceAttr and StyleSourceElem directives. (#152)
  • Loading branch information
ThomasBjallas authored Mar 19, 2024
1 parent 5f79f06 commit 6992bf4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ public class CspBuilder
public StyleSourceDirectiveBuilder AddStyleSrc() => AddDirective(new StyleSourceDirectiveBuilder());

/// <summary>
/// The style-src-attr directive specifies valid sources for stylesheet &lt;style&gt; elements
/// and &lt;link&gt; elements with rel="stylesheet".
/// The style-src-attr directive specifies valid sources for inline styles applied to individual DOM elements.
/// </summary>
/// <returns>A configured <see cref="StyleSourceAttrDirectiveBuilder"/></returns>
public StyleSourceAttrDirectiveBuilder AddStyleSrcAttr() => AddDirective(new StyleSourceAttrDirectiveBuilder());

/// <summary>
/// The style-src-elem directive specifies valid sources for inline styles applied to individual DOM elements.
/// The style-src-elem directive specifies valid sources for stylesheet &lt;style&gt; elements
/// and &lt;link&gt; elements with rel="stylesheet".
/// </summary>
/// <returns>A configured <see cref="StyleSourceAttrDirectiveBuilder"/></returns>
public StyleSourceElemDirectiveBuilder AddStyleSrcElem() => AddDirective(new StyleSourceElemDirectiveBuilder());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
namespace NetEscapades.AspNetCore.SecurityHeaders.Headers.ContentSecurityPolicy;

/// <summary>
/// The style-src-attr directive specifies valid sources for stylesheet &lt;style&gt; elements
/// and &lt;link&gt; elements with rel="stylesheet".
/// The style-src-attr directive specifies valid sources for inline styles applied to individual DOM elements.
///
/// The directive does not set valid sources for inline style attributes; these are
/// set using style-src-attr (and valid sources for all styles may be set with style-src).
/// The directive does not set valid sources for &lt;style&gt; elements and &lt;link&gt; elements with rel="stylesheet".
/// These are set using style-src-elem (and valid sources for all styles may be set with style-src).
/// </summary>
public class StyleSourceAttrDirectiveBuilder : CspDirectiveBuilder
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
namespace NetEscapades.AspNetCore.SecurityHeaders.Headers.ContentSecurityPolicy;

/// <summary>
/// The style-src-elem directive specifies valid sources for inline styles applied to individual DOM elements.
/// The style-src-elem directive specifies valid sources for stylesheet &lt;style&gt; elements
/// and &lt;link&gt; elements with rel="stylesheet".
///
/// The directive does not set valid sources for &lt;style&gt; elements and &lt;link&gt; elements with rel="stylesheet".
/// These are set using style-src-elem (and valid sources for all styles may be set with style-src).
/// The directive does not set valid sources for inline style attributes; these are
/// set using style-src-attr (and valid sources for all styles may be set with style-src).
/// </summary>
public class StyleSourceElemDirectiveBuilder : CspDirectiveBuilder
{
Expand Down

0 comments on commit 6992bf4

Please sign in to comment.