File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
compiler/phases/2-analyze Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
import {
2
- disallowed_parapgraph_contents ,
2
+ disallowed_paragraph_contents ,
3
3
interactive_elements ,
4
4
is_tag_valid_with_parent
5
5
} from '../../../constants.js' ;
@@ -535,7 +535,7 @@ const validation = {
535
535
}
536
536
}
537
537
538
- if ( disallowed_parapgraph_contents . includes ( node . name ) ) {
538
+ if ( disallowed_paragraph_contents . includes ( node . name ) ) {
539
539
const path = context . path ;
540
540
for ( let parent of path ) {
541
541
if ( parent . type === 'RegularElement' && parent . name === 'p' ) {
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ export const interactive_elements = new Set([
99
99
'textarea'
100
100
] ) ;
101
101
102
- export const disallowed_parapgraph_contents = [
102
+ export const disallowed_paragraph_contents = [
103
103
'address' ,
104
104
'article' ,
105
105
'aside' ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { is_promise, noop } from '../common.js';
3
3
import { subscribe_to_store } from '../../store/utils.js' ;
4
4
import {
5
5
DOMBooleanAttributes ,
6
- disallowed_parapgraph_contents ,
6
+ disallowed_paragraph_contents ,
7
7
interactive_elements ,
8
8
is_tag_valid_with_parent
9
9
} from '../../constants.js' ;
@@ -127,7 +127,7 @@ export function push_element(tag, payload) {
127
127
element = element . parent ;
128
128
}
129
129
}
130
- if ( disallowed_parapgraph_contents . includes ( tag ) ) {
130
+ if ( disallowed_paragraph_contents . includes ( tag ) ) {
131
131
let element = current_element ;
132
132
while ( element !== null ) {
133
133
if ( element . tag === 'p' ) {
You can’t perform that action at this time.
0 commit comments