-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0.1.0 - security improvements from #1
- Loading branch information
1 parent
1f9b99a
commit 814e928
Showing
5 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains 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
This file contains 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 |
---|---|---|
@@ -1,12 +1,31 @@ | ||
{ | ||
"name": "iframe", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "higher level api for creating and using iframes in browsers", | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:maxogden/iframe.git" | ||
}, | ||
"engines": { | ||
"node": "0.8.x" | ||
}, | ||
"devDependencies": { | ||
"tape": "~2.3.2" | ||
}, | ||
"testling": { | ||
"files": "test/*.js", | ||
"browsers": [ | ||
"ie/8..latest", | ||
"firefox/17..latest", | ||
"firefox/nightly", | ||
"chrome/22..latest", | ||
"chrome/canary", | ||
"opera/12..latest", | ||
"opera/next", | ||
"safari/5.1..latest", | ||
"ipad/6.0..latest", | ||
"iphone/6.0..latest", | ||
"android-browser/4.2..latest" | ||
] | ||
} | ||
} |
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
var test = require('tape') | ||
var iframe = require('./') | ||
|
||
test('it adds an iframe to the document by default', function(t) { | ||
t.equal(document.querySelectorAll('iframe').length, 0, 'no frames') | ||
var frame = iframe({ body: 'hello world' }) | ||
t.equal(document.querySelectorAll('iframe').length, 1, 'one frame') | ||
t.end() | ||
}) |