Allow xlink:href to get removed, fix option.value in mock

This commit is contained in:
Isiah Meadows 2017-10-01 19:26:43 -04:00
parent e36a8db9d4
commit 348bed0a7e
6 changed files with 30 additions and 11 deletions

View file

@ -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", {