[test-utils/domMock] restore Attr.nodeValue for backwards compatibility
This commit is contained in:
parent
662e0f1a9a
commit
195263d226
2 changed files with 9 additions and 0 deletions
|
|
@ -111,6 +111,10 @@ module.exports = function(options) {
|
|||
nodeValue = "" + value
|
||||
/*eslint-enable no-implicit-coercion*/
|
||||
},
|
||||
get nodeValue() {return nodeValue},
|
||||
set nodeValue(value) {
|
||||
this.value = value
|
||||
}
|
||||
}
|
||||
}
|
||||
function setAttributeNS(ns, name, value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue