Skip to content

Commit 7e82dbc

Browse files
committed
fix typo
1 parent 7cc5ce4 commit 7e82dbc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/svelte/src/compiler/phases/2-analyze/validation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {
2-
disallowed_parapgraph_contents,
2+
disallowed_paragraph_contents,
33
interactive_elements,
44
is_tag_valid_with_parent
55
} from '../../../constants.js';
@@ -535,7 +535,7 @@ const validation = {
535535
}
536536
}
537537

538-
if (disallowed_parapgraph_contents.includes(node.name)) {
538+
if (disallowed_paragraph_contents.includes(node.name)) {
539539
const path = context.path;
540540
for (let parent of path) {
541541
if (parent.type === 'RegularElement' && parent.name === 'p') {

packages/svelte/src/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const interactive_elements = new Set([
9999
'textarea'
100100
]);
101101

102-
export const disallowed_parapgraph_contents = [
102+
export const disallowed_paragraph_contents = [
103103
'address',
104104
'article',
105105
'aside',

packages/svelte/src/internal/server/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { is_promise, noop } from '../common.js';
33
import { subscribe_to_store } from '../../store/utils.js';
44
import {
55
DOMBooleanAttributes,
6-
disallowed_parapgraph_contents,
6+
disallowed_paragraph_contents,
77
interactive_elements,
88
is_tag_valid_with_parent
99
} from '../../constants.js';
@@ -127,7 +127,7 @@ export function push_element(tag, payload) {
127127
element = element.parent;
128128
}
129129
}
130-
if (disallowed_parapgraph_contents.includes(tag)) {
130+
if (disallowed_paragraph_contents.includes(tag)) {
131131
let element = current_element;
132132
while (element !== null) {
133133
if (element.tag === 'p') {

0 commit comments

Comments
 (0)