summaryrefslogtreecommitdiff
path: root/bin/wiki/ImportarDesdeURL/node_modules/domhandler/lib/element.js
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wiki/ImportarDesdeURL/node_modules/domhandler/lib/element.js')
-rw-r--r--bin/wiki/ImportarDesdeURL/node_modules/domhandler/lib/element.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/wiki/ImportarDesdeURL/node_modules/domhandler/lib/element.js b/bin/wiki/ImportarDesdeURL/node_modules/domhandler/lib/element.js
new file mode 100644
index 00000000..e1472156
--- /dev/null
+++ b/bin/wiki/ImportarDesdeURL/node_modules/domhandler/lib/element.js
@@ -0,0 +1,20 @@
+// DOM-Level-1-compliant structure
+var NodePrototype = require('./node');
+var ElementPrototype = module.exports = Object.create(NodePrototype);
+
+var domLvl1 = {
+ tagName: "name"
+};
+
+Object.keys(domLvl1).forEach(function(key) {
+ var shorthand = domLvl1[key];
+ Object.defineProperty(ElementPrototype, key, {
+ get: function() {
+ return this[shorthand] || null;
+ },
+ set: function(val) {
+ this[shorthand] = val;
+ return val;
+ }
+ });
+});