Allow xlink:href to get removed, fix option.value in mock
This commit is contained in:
parent
e36a8db9d4
commit
348bed0a7e
6 changed files with 30 additions and 11 deletions
|
|
@ -445,7 +445,7 @@ module.exports = function(options) {
|
|||
if (element.nodeName === "OPTION") {
|
||||
var valueSetter = spy(function(value) {
|
||||
/*eslint-disable no-implicit-coercion*/
|
||||
this.setAttribute("value", value === null ? "" : "" + value)
|
||||
this.setAttribute("value", "" + value)
|
||||
/*eslint-enable no-implicit-coercion*/
|
||||
})
|
||||
Object.defineProperty(element, "value", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue