aboutsummaryrefslogtreecommitdiff
path: root/node_modules/jsdom/lib/jsdom/living/nodes/SVGTests-impl.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/jsdom/lib/jsdom/living/nodes/SVGTests-impl.js')
-rw-r--r--node_modules/jsdom/lib/jsdom/living/nodes/SVGTests-impl.js42
1 files changed, 42 insertions, 0 deletions
diff --git a/node_modules/jsdom/lib/jsdom/living/nodes/SVGTests-impl.js b/node_modules/jsdom/lib/jsdom/living/nodes/SVGTests-impl.js
new file mode 100644
index 0000000..6ff1182
--- /dev/null
+++ b/node_modules/jsdom/lib/jsdom/living/nodes/SVGTests-impl.js
@@ -0,0 +1,42 @@
+"use strict";
+
+const { splitOnASCIIWhitespace, splitOnCommas } = require("../helpers/strings");
+const { reserializeCommaSeparatedTokens, reserializeSpaceSeparatedTokens } = require("../helpers/svg/basic-types");
+const SVGStringList = require("../generated/SVGStringList");
+
+class SVGTestsImpl {
+ get requiredExtensions() {
+ return SVGStringList.createImpl(this._globalObject, [], {
+ element: this,
+ attribute: "requiredExtensions"
+ });
+ }
+
+ get systemLanguage() {
+ return SVGStringList.createImpl(this._globalObject, [], {
+ element: this,
+ attribute: "systemLanguage"
+ });
+ }
+}
+
+SVGTestsImpl.attributeRegistry = new Map([
+ // https://svgwg.org/svg2-draft/struct.html#RequiredExtensionsAttribute
+ [
+ "requiredExtensions", {
+ getValue: splitOnASCIIWhitespace,
+ serialize: reserializeSpaceSeparatedTokens,
+ initialValue: undefined
+ }
+ ],
+ // https://svgwg.org/svg2-draft/struct.html#SystemLanguageAttribute
+ [
+ "systemLanguage", {
+ getValue: splitOnCommas,
+ serialize: reserializeCommaSeparatedTokens,
+ initialValue: undefined
+ }
+ ]
+]);
+
+exports.implementation = SVGTestsImpl;