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

[Large] Port dependent changes for CSP (and other good stuff) from WHATWG #387

Merged
merged 21 commits into from
May 16, 2016
Merged

[Large] Port dependent changes for CSP (and other good stuff) from WHATWG #387

merged 21 commits into from
May 16, 2016

Conversation

travisleithead
Copy link
Member

  • Cleanup of single-page.bs (helps with infrastructure.include cleanup #333)
  • Many of Domenic's ECMA-Script algorithms (for security, various exotic elements, etc.)
  • Script infrastructure for modules (sans the module part--on retainer for 5.2; branch created in w3c/html which includes this addition.)

Validated fixes:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 820 200">
<style><![CDATA[
<?xml version="1.0"?>
<svg width="820" height="140" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
Copy link
Contributor

Choose a reason for hiding this comment

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

Change this to viewBox and remove width and height

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

3. If the <a>origin</a> of <var>url</var> is not the same as the <a>origin</a> of
<var>document</var>, throw a <code>SecurityError</code> exception and abort these steps.
2. <a>Parse</a> <var>url</var>, relative to the <a>entry settings object</a>. If this is not
successful, throw a "<code>SyntaxError</code>" {{DOMException}} and abort these steps.
Copy link
Contributor

Choose a reason for hiding this comment

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

change to {{SyntaxError}}

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed all occurrences in the spec to link as such.

@arronei arronei merged commit 1b70bac into w3c:master May 16, 2016
W3C-HTML-Bot pushed a commit that referenced this pull request May 16, 2016
@travisleithead travisleithead deleted the csp-ports branch May 16, 2016 20:17
edent added a commit that referenced this pull request Feb 17, 2018
This was originally added by #387 in response to #186 and was ported over from whatwg/html@882803c

We currently don't have a `style/nonce` nor `script/nonce`- neither do WHATWG.

`nonce` is already covered by `global`.

* Re whatwg/html#2373
* Re https://github.com/whatwg/html/pull/2373/files#r117354683
* Fixes #1215
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.