When morphing with ignoreActiveValue: true, the <body> element and its children (that is, the entire document) can be preserved if no other element has focus.
Its common in some browsers (for example, Safari) to return document.body from document.activeElement when no other element has focus.
This commit incorporates that condition into the
ignoreValueOfActiveElement() predicate function.
When morphing with
ignoreActiveValue: true
, the<body>
element and its children (that is, the entire document) can be preserved if no other element has focus.Its common in some browsers (for example, Safari) to return
document.body
fromdocument.activeElement
when no other element has focus.This commit incorporates that condition into the
ignoreValueOfActiveElement()
predicate function.