@ -78,7 +78,10 @@ export function createPatchFunction (backend) {
function removeElement (el) {
const parent = nodeOps.parentNode(el)
nodeOps.removeChild(parent, el)
// element may have already been removed due to v-html
if (parent) {
}
function createElm (vnode, insertedVnodeQueue, nested) {
@ -17,7 +17,7 @@ function updateDOMProps (oldVnode: VNodeWithData, vnode: VNodeWithData) {
for (key in oldProps) {
if (props[key] == null) {
elm[key] = undefined
elm[key] = ''
for (key in props) {
@ -22,7 +22,7 @@ describe('vdom domProps module', () => {
const vnode2 = new VNode('a', { domProps: {}})
patch(null, vnode1)
const elm = patch(vnode1, vnode2)
expect(elm.src).toBeUndefined()
expect(elm.src).toBe('')
})
it('should initialize the elements value to zero', () => {