|
|
|
|
@ -250,7 +250,7 @@ export default class Element extends Node {
|
|
|
|
|
if (this.name === 'pre' || this.name === 'textarea') {
|
|
|
|
|
const first = info.children[0];
|
|
|
|
|
if (first && first.type === 'Text') {
|
|
|
|
|
// The leading newline character needs to be stripped because of a qirk,
|
|
|
|
|
// The leading newline character needs to be stripped because of a quirk,
|
|
|
|
|
// it is ignored by browsers if the tag and its contents are set through
|
|
|
|
|
// innerHTML (NOT if set through the innerHTML of the tag or dynamically).
|
|
|
|
|
// Therefore strip it here but add it back in the appropriate
|
|
|
|
|
|