spelling: quirk

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
pull/7974/head
Josh Soref 4 years ago
parent 526b946c31
commit bea39da6ae

@ -250,7 +250,7 @@ export default class Element extends Node {
if (this.name === 'pre' || this.name === 'textarea') { if (this.name === 'pre' || this.name === 'textarea') {
const first = info.children[0]; const first = info.children[0];
if (first && first.type === 'Text') { 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 // 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). // innerHTML (NOT if set through the innerHTML of the tag or dynamically).
// Therefore strip it here but add it back in the appropriate // Therefore strip it here but add it back in the appropriate

Loading…
Cancel
Save