[Pkg-javascript-commits] [node-jade] 09/10: Fix path.
Jelmer Vernooij
jelmer at moszumanska.debian.org
Sun Jul 3 18:02:40 UTC 2016
This is an automated email from the git hooks/post-receive script.
jelmer pushed a commit to branch 0.11-packaging
in repository node-jade.
commit 85e0cdf81ac1422cb407a31144431eebcb2f09c6
Author: Jelmer Vernooij <jelmer at jelmer.uk>
Date: Sun Jul 3 17:44:21 2016 +0000
Fix path.
---
debian/patches/0000_import_void-elements.patch | 2 +-
lib/index.js | 2 +-
lib/voidElements.js | 21 +++++++++++++++++++++
3 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/debian/patches/0000_import_void-elements.patch b/debian/patches/0000_import_void-elements.patch
index a46c57b..259bc1d 100644
--- a/debian/patches/0000_import_void-elements.patch
+++ b/debian/patches/0000_import_void-elements.patch
@@ -63,7 +63,7 @@ index 7d734e5..d689d79 100644
// FIXME: either stop exporting selfClosing in v2 or export the new object
// form
-exports.selfClosing = Object.keys(require('void-elements'));
-+exports.selfClosing = Object.keys(require('voidElements'));
++exports.selfClosing = Object.keys(require('./voidElements'));
/**
* Default supported doctypes.
diff --git a/lib/index.js b/lib/index.js
index d689d79..0571b1f 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -24,7 +24,7 @@ var Parser = require('./parser')
// FIXME: either stop exporting selfClosing in v2 or export the new object
// form
-exports.selfClosing = Object.keys(require('voidElements'));
+exports.selfClosing = Object.keys(require('./voidElements'));
/**
* Default supported doctypes.
diff --git a/lib/voidElements.js b/lib/voidElements.js
new file mode 100644
index 0000000..412d249
--- /dev/null
+++ b/lib/voidElements.js
@@ -0,0 +1,21 @@
+// From:
+// http://www.w3.org/html/wg/drafts/html/master/syntax.html#void-elements
+
+module.exports = [
+ "area",
+ "base",
+ "br",
+ "col",
+ "embed",
+ "hr",
+ "img",
+ "input",
+ "keygen",
+ "link",
+ "menuitem",
+ "meta",
+ "param",
+ "source",
+ "track",
+ "wbr"
+];
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-jade.git
More information about the Pkg-javascript-commits
mailing list