Skip to content

Commit

Permalink
Update to latest version of web-platform-tests.
Browse files Browse the repository at this point in the history
Added `referrerPolicy` property to a number of elements.
  • Loading branch information
cscott committed Jan 27, 2017
1 parent 2e410e7 commit 709e91e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
17 changes: 16 additions & 1 deletion lib/htmlelts.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ function CORS(attr) {
};
}

var REFERRER = {
type: ["", "no-referrer", "no-referrer-when-downgrade", "same-origin", "origin", "strict-origin", "origin-when-cross-origin", "strict-origin-when-cross-origin", "unsafe-url"],
missing: '',
};


// XXX: the default value for tabIndex should be 0 if the element is
// focusable and -1 if it is not. But the full definition of focusable
Expand Down Expand Up @@ -227,6 +232,7 @@ define({
media: String,
hreflang: String,
type: String,
referrerPolicy: REFERRER,
// Obsolete
coords: String,
charset: String,
Expand Down Expand Up @@ -255,6 +261,7 @@ define({
coords: String,
ping: String,
// XXX: also reflect relList
referrerPolicy: REFERRER,
// Obsolete
noHref: Boolean,
}
Expand Down Expand Up @@ -494,7 +501,9 @@ define({
// XXX: sandbox is a reflected settable token list
seamless: Boolean,
allowFullscreen: Boolean,
referrerPolicy: String,
allowUserMedia: Boolean,
allowPaymentRequest: Boolean,
referrerPolicy: REFERRER,
// Obsolete
align: String,
scrolling: String,
Expand All @@ -519,6 +528,7 @@ define({
isMap: Boolean,
height: { type: "unsigned long", default: 0 },
width: { type: "unsigned long", default: 0 },
referrerPolicy: REFERRER,
// Obsolete:
name: String,
lowsrc: URL,
Expand Down Expand Up @@ -652,6 +662,9 @@ define({
hreflang: String,
type: String,
crossOrigin: CORS,
nonce: String,
integrity: String,
referrerPolicy: REFERRER,
// Obsolete
charset: String,
rev: String,
Expand Down Expand Up @@ -914,6 +927,8 @@ define({
defer: Boolean,
async: Boolean,
crossOrigin: CORS,
nonce: String,
integrity: String,
}
});

Expand Down
2 changes: 1 addition & 1 deletion test/web-platform-tests
1 change: 1 addition & 0 deletions test/web-platform-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ var blacklist = [
'interfaces',
'reflection-obsolete',
'documents dom-tree-accessors Document.body',
'documents dom-tree-accessors Document.currentScript',
'documents dom-tree-accessors Document.currentScript.sub',
'documents dom-tree-accessors document.embeds-document.plugins-01',
'documents dom-tree-accessors document.forms',
Expand Down

0 comments on commit 709e91e

Please sign in to comment.