[Pkg-javascript-commits] [node-domelementtype] 01/02: Imported Upstream version 1.3.0
Thorsten Alteholz
alteholz at moszumanska.debian.org
Thu Feb 4 20:46:30 UTC 2016
This is an automated email from the git hooks/post-receive script.
alteholz pushed a commit to branch master
in repository node-domelementtype.
commit ad154b6059af4e2ed0be57c1c7faf5b8e60d4ff9
Author: Thorsten Alteholz <debian at alteholz.de>
Date: Thu Feb 4 21:46:25 2016 +0100
Imported Upstream version 1.3.0
---
LICENSE | 11 +++++++++++
index.js | 15 +++++++++++++++
package.json | 15 +++++++++++++++
readme.md | 1 +
4 files changed, 42 insertions(+)
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..c464f86
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,11 @@
+Copyright (c) Felix Böhm
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR B [...]
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..ab15b0f
--- /dev/null
+++ b/index.js
@@ -0,0 +1,15 @@
+//Types of elements found in the DOM
+module.exports = {
+ Text: "text", //Text
+ Directive: "directive", //<? ... ?>
+ Comment: "comment", //<!-- ... -->
+ Script: "script", //<script> tags
+ Style: "style", //<style> tags
+ Tag: "tag", //Any tag
+ CDATA: "cdata", //<![CDATA[ ... ]]>
+ Doctype: "doctype",
+
+ isTag: function(elem){
+ return elem.type === "tag" || elem.type === "script" || elem.type === "style";
+ }
+};
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..d3c8db6
--- /dev/null
+++ b/package.json
@@ -0,0 +1,15 @@
+{
+ "name": "domelementtype",
+ "version": "1.3.0",
+ "description": "all the types of nodes in htmlparser2's dom",
+ "main": "index.js",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/FB55/domelementtype.git"
+ },
+ "keywords": [
+ "dom",
+ "htmlparser2"
+ ],
+ "author": "Felix Boehm <me at feedic.com>"
+}
diff --git a/readme.md b/readme.md
new file mode 100644
index 0000000..cbb43db
--- /dev/null
+++ b/readme.md
@@ -0,0 +1 @@
+all the types of nodes in htmlparser2's dom
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-domelementtype.git
More information about the Pkg-javascript-commits
mailing list