Skip to content

Commit 2bb1b5a

Browse files
devvaannshabose
authored andcommitted
fix: failing html instrumention test as has and get attribute apis not present
1 parent 5eb803b commit 2bb1b5a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎test/spec/HTMLInstrumentation-test.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,12 @@ define(function (require, exports, module) {
233233
removeAttribute: function (key) {
234234
delete this.attributes[key];
235235
},
236+
hasAttribute: function (key) {
237+
return !!this.attributes && this.attributes.hasOwnProperty(key);
238+
},
239+
getAttribute: function (key) {
240+
return (this.attributes && this.attributes.hasOwnProperty(key)) ? this.attributes[key] : null;
241+
},
236242

237243
returnFailure: function (other) {
238244
console.log("TEST FAILURE AT TAG ID ", this.tagID, this, other);

0 commit comments

Comments
 (0)