Skip to content

Commit

Permalink
Preparing 0.6.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
cure53 committed Sep 17, 2015
1 parent 1443780 commit 4fb4fbd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "DOMPurify",
"version": "0.6.6",
"version": "0.6.7",
"homepage": "https://github.com/cure53/DOMPurify",
"author": "Cure53 <[email protected]>",
"description": "A DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"name": "dompurify",
"description": "DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else using Blink or WebKit). DOMPurify is written by security people who have vast background in web attacks and XSS. Fear not.",
"version": "0.6.6",
"version": "0.6.7",
"main": "purify.js",
"directories": {
"test": "test"
Expand Down
3 changes: 2 additions & 1 deletion src/purify.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* Version label, exposed for easier checks
* if DOMPurify is up to date or not
*/
DOMPurify.version = '0.6.6';
DOMPurify.version = '0.6.7';

if (!window || !window.document || window.document.nodeType !== 9) {
// not running in a browser, provide a factory function
Expand Down Expand Up @@ -302,6 +302,7 @@
*/
var _initDocument = function(dirty) {

/* Create a HTML document using DOMParser */
var doc = new DOMParser().parseFromString(dirty, "text/html");

/* Work on whole document or just its body */
Expand Down
4 changes: 2 additions & 2 deletions website/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<html>
<head>
<meta charset="UTF-8">
<title>DOMPurify 0.6.6 "Stonefish"</title>
<title>DOMPurify 0.6.7 "Sandhopper"</title>
<script src="https://rawgithub.com/cure53/DOMPurify/master/purify.js"></script>
<!-- we don't actually need it - just to demo and test the $(html) sanitation -->
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
</head>
<body>
<h4>DOMPurify 0.6.6 "Stonefish"</h4>
<h4>DOMPurify 0.6.7 "Sandhopper"</h4>
<p>
This is the demo for <a href="https://github.com/cure53/DOMPurify">DOMPurify</a>, a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, SVG and MathML.
The textarea below contains sample-payload - you can also add your own. Watch it sanitize on the console or in the Iframe below.
Expand Down

0 comments on commit 4fb4fbd

Please sign in to comment.