diff options
Diffstat (limited to 'WebCore/inspector/front-end/Section.js')
-rw-r--r-- | WebCore/inspector/front-end/Section.js | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/WebCore/inspector/front-end/Section.js b/WebCore/inspector/front-end/Section.js index 7710192..913d495 100644 --- a/WebCore/inspector/front-end/Section.js +++ b/WebCore/inspector/front-end/Section.js @@ -82,7 +82,22 @@ WebInspector.Section.prototype = { if (this._subtitle === x) return; this._subtitle = x; - this.subtitleElement.innerHTML = x; + this.subtitleElement.setAttribute("data-uncopyable", x); + }, + + get subtitleAsText() + { + var result = ""; + var data = this.subtitleElement.getAttribute("data-uncopyable"); + if (data) + result += data; + var child = this.subtitleElement.querySelector("[data-uncopyable]"); + if (child) { + var linkData = child.getAttribute("data-uncopyable"); + if (linkData) + result += linkData; + } + return result; }, get expanded() |