Index: third_party/WebKit/LayoutTests/inspector-protocol/resources/dom-helper.js |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/resources/dom-helper.js b/third_party/WebKit/LayoutTests/inspector-protocol/resources/dom-helper.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..196e70380ec4d9766ccb17e38863930627e78bd7 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/resources/dom-helper.js |
@@ -0,0 +1,10 @@ |
+(class DOMHelper { |
+ static attributes(node) { |
+ var attr = new Map(); |
+ if (!node.attributes) |
+ return attr; |
+ for (var i = 0; i < node.attributes.length; i += 2) |
+ attr.set(node.attributes[i], node.attributes[i + 1]); |
+ return attr; |
+ } |
+}) |