diff options
Diffstat (limited to 'ext/js/dom')
-rw-r--r-- | ext/js/dom/text-source-element.js | 4 | ||||
-rw-r--r-- | ext/js/dom/text-source-range.js | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ext/js/dom/text-source-element.js b/ext/js/dom/text-source-element.js index 499ee45d..11bf7eb0 100644 --- a/ext/js/dom/text-source-element.js +++ b/ext/js/dom/text-source-element.js @@ -24,6 +24,10 @@ class TextSourceElement { this._content = this._fullContent.substring(this._startOffset, this._endOffset); } + get type() { + return 'element'; + } + get element() { return this._element; } diff --git a/ext/js/dom/text-source-range.js b/ext/js/dom/text-source-range.js index 377016da..591429da 100644 --- a/ext/js/dom/text-source-range.js +++ b/ext/js/dom/text-source-range.js @@ -29,6 +29,10 @@ class TextSourceRange { this._imposterSourceElement = imposterSourceElement; } + get type() { + return 'range'; + } + get range() { return this._range; } |