summaryrefslogtreecommitdiff
path: root/node_modules/xmlbuilder/lib/XMLCharacterData.js
diff options
context:
space:
mode:
authorLinuxWizard42 <computerwizard@linuxmail.org>2022-10-12 22:54:37 +0300
committerLinuxWizard42 <computerwizard@linuxmail.org>2022-10-12 22:54:37 +0300
commit703e03aba33f234712206769f57717ba7d92d23d (patch)
tree0041f04ccb75bd5379c764e9fe42249fffe75fc3 /node_modules/xmlbuilder/lib/XMLCharacterData.js
parentab6e257e6e9d9a483d7e86f220d8b209a2cd7753 (diff)
downloadFlashRunner-703e03aba33f234712206769f57717ba7d92d23d.tar.gz
FlashRunner-703e03aba33f234712206769f57717ba7d92d23d.tar.zst
Added export_allowed file to make repository visible in cgit
Diffstat (limited to 'node_modules/xmlbuilder/lib/XMLCharacterData.js')
-rw-r--r--node_modules/xmlbuilder/lib/XMLCharacterData.js86
1 files changed, 86 insertions, 0 deletions
diff --git a/node_modules/xmlbuilder/lib/XMLCharacterData.js b/node_modules/xmlbuilder/lib/XMLCharacterData.js
new file mode 100644
index 0000000..13b9c00
--- /dev/null
+++ b/node_modules/xmlbuilder/lib/XMLCharacterData.js
@@ -0,0 +1,86 @@
+// Generated by CoffeeScript 2.4.1
+(function() {
+ var XMLCharacterData, XMLNode;
+
+ XMLNode = require('./XMLNode');
+
+ // Represents a character data node
+ module.exports = XMLCharacterData = (function() {
+ class XMLCharacterData extends XMLNode {
+ // Initializes a new instance of `XMLCharacterData`
+
+ constructor(parent) {
+ super(parent);
+ this.value = '';
+ }
+
+
+ // Creates and returns a deep clone of `this`
+ clone() {
+ return Object.create(this);
+ }
+
+ // DOM level 1 functions to be implemented later
+ substringData(offset, count) {
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
+ }
+
+ appendData(arg) {
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
+ }
+
+ insertData(offset, arg) {
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
+ }
+
+ deleteData(offset, count) {
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
+ }
+
+ replaceData(offset, count, arg) {
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
+ }
+
+ isEqualNode(node) {
+ if (!super.isEqualNode(node)) {
+ return false;
+ }
+ if (node.data !== this.data) {
+ return false;
+ }
+ return true;
+ }
+
+ };
+
+ // DOM level 1
+ Object.defineProperty(XMLCharacterData.prototype, 'data', {
+ get: function() {
+ return this.value;
+ },
+ set: function(value) {
+ return this.value = value || '';
+ }
+ });
+
+ Object.defineProperty(XMLCharacterData.prototype, 'length', {
+ get: function() {
+ return this.value.length;
+ }
+ });
+
+ // DOM level 3
+ Object.defineProperty(XMLCharacterData.prototype, 'textContent', {
+ get: function() {
+ return this.value;
+ },
+ set: function(value) {
+ return this.value = value || '';
+ }
+ });
+
+ return XMLCharacterData;
+
+ }).call(this);
+
+}).call(this);