How can I cloneNode as same as the original one? I want to get the same innerText result with cloned Node, but it didn't work.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Test</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<p>Hello
World</p>
<script>
const p = document.querySelector('p');
const pCloned = p.cloneNode(true);
const pText = p.innerText; // Hello World
const pClonedText = pCloned.innerText; // Hello\n World
console.log('pText', pText);
console.log('pClonedText', pClonedText);
console.log(pText === pClonedText); // false
</script>
</body>
</html>