Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js |
| index 499a0113e86e516147a40344ffc916c63f69515d..bfa5d48f9d4ca9b9b9cebba7c48672a8f29e0e29 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js |
| @@ -349,7 +349,17 @@ WebInspector.DOMNode.prototype = { |
| var shadowRootType = this.shadowRootType(); |
| if (shadowRootType) |
| return "#shadow-root (" + shadowRootType + ")"; |
| - return this.isXMLNode() ? this.nodeName() : this.nodeName().toLowerCase(); |
|
dgozman
2016/06/20 23:58:52
Where did the isXMLNode check go?
einbinder
2016/06/21 00:20:51
It is internal to localName()
|
| + |
| + // If there is no local name, it's case sensitive |
| + if (!this.localName()) |
| + return this.nodeName(); |
| + |
| + // If the names are different lengths, there is a prefix and it's case sensitive |
| + if (this.localName().length !== this.nodeName().length) |
| + return this.nodeName(); |
| + |
| + // Return the localname, which will be case insensitive if its an html node |
| + return this.localName(); |
| }, |
| /** |