Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Port nonce #604

Merged
merged 4 commits into from
Sep 30, 2016
Merged

Port nonce #604

merged 4 commits into from
Sep 30, 2016

Conversation

stevefaulkner
Copy link
Contributor

ports nonce on link to w3c html as per #599

2 issues with build:
LINK ERROR: No 'dfn' refs found for 'nonce'.
LINK ERROR: No 'idl-name' refs found for 'boolean'.

can't work out why these are occuring...

please review @adanilo, @travisleithead @arronei

@@ -490,7 +496,9 @@
<var>url</var> and <var>corsAttributeState</var>.
5. Set <var>request</var>'s <a>client</a> to the <{link}> element's <a>node document</a>'s
{{Window}} object's <a>environment settings object</a>.
6. <a>Fetch</a> <var>request</var>.
6. Set <var>request</var>'s <span>cryptographic
nonce metadata</span> to the current state of the <{link}> element's <a>nonce</a> content attribute.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll need to declare what kind of nonce you're looking for. Probably something like <a element-attr for="link">, or the shortcut <{link/nonce}> (which will produce prettier output).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -667,6 +675,7 @@
<dfn attribute for="HTMLLinkElement"><code>rel</code></dfn>,
<dfn attribute for="HTMLLinkElement"><code>rev</code></dfn>,
<dfn attribute for="HTMLLinkElement"><code>media</code></dfn>,
<dfn attribute for="HTMLLinkElement"><code>nonce</code></dfn>,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Spacing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -334,6 +334,7 @@
<dd><{link/rel}> — Relationship of this document (or subsection/topic) to the destination resource</dd>
<dd><{link/rev}> — <a>Reverse link</a> relationship of the destination resource to this document (or subsection/topic)</dd>
<dd><code>media</code> — Applicable media</dd>
<dd><code>nonce</code> — Cryptographic nonce used in Content Security Policy checks [[CSP3]]</dd>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Spacing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -542,7 +542,7 @@
</tr>
<tr>
<th><code>nonce</code></th>
<td><{script}>; <{style}></td>
<td><{link}>; <{script}>; <{style}></td>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two indices in the WHATWG spec: one for attribute -> element, and one for the inverse. I don't know if the W3C doc follows that model.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, found it and added, thanks

@@ -334,6 +334,7 @@
<dd><{link/rel}> — Relationship of this document (or subsection/topic) to the destination resource</dd>
<dd><{link/rev}> — <a>Reverse link</a> relationship of the destination resource to this document (or subsection/topic)</dd>
<dd><code>media</code> — Applicable media</dd>
<dd><code>nonce</code> — Cryptographic nonce used in Content Security Policy checks [[CSP3]]</dd>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: The leading whitespace here still seems incorrect.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'll render the same... noted, thanks

@mikewest
Copy link
Member

Thanks.

Copy link

@adanilo adanilo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@adanilo adanilo merged commit 755136d into master Sep 30, 2016
W3C-HTML-Bot pushed a commit that referenced this pull request Sep 30, 2016
@stevefaulkner stevefaulkner deleted the port-nonce branch October 3, 2016 15:29
arronei pushed a commit to arronei/html that referenced this pull request Apr 17, 2017
* ported nonce on link

refer to whatwg/html#1820

* fixed link/nonce dfn

* code error forgot to close <a>

* updated nonce after mw review

w3c#604 (review)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants