separate tests for parent/sibling case

pull/15932/head
Rich Harris 4 months ago
parent a7631f21d8
commit ad846db643

@ -0,0 +1,6 @@
<main><div class="hello"></main>
<main>
<div class="hello">
<p>hello</p>
</main>

@ -1,26 +1,26 @@
[
{
"code": "element_implicitly_closed",
"message": "The tag `<p>` was implicitly closed by the parent or a next element. This may cause DOM structure being other than expected one.",
"message": "The tag `<div>` was implicitly closed by the parent or a next element. This may cause DOM structure being other than expected one.",
"start": {
"line": 4,
"column": 4
"line": 1,
"column": 6
},
"end": {
"line": 4,
"column": 7
"line": 1,
"column": 25
}
},
{
"code": "element_implicitly_closed",
"message": "The tag `<div>` was implicitly closed by the parent or a next element. This may cause DOM structure being other than expected one.",
"start": {
"line": 3,
"column": 4
"line": 4,
"column": 1
},
"end": {
"line": 3,
"column": 9
"line": 4,
"column": 20
}
}
]

@ -0,0 +1,9 @@
<div>
<p class="hello">
<span></span>
<p></p>
</div>
<div>
<p class="hello"><p></p>
</div>

@ -0,0 +1,26 @@
[
{
"code": "element_implicitly_closed",
"message": "The tag `<p>` was implicitly closed by the parent or a next element. This may cause DOM structure being other than expected one.",
"start": {
"line": 2,
"column": 1
},
"end": {
"line": 2,
"column": 18
}
},
{
"code": "element_implicitly_closed",
"message": "The tag `<p>` was implicitly closed by the parent or a next element. This may cause DOM structure being other than expected one.",
"start": {
"line": 8,
"column": 1
},
"end": {
"line": 8,
"column": 18
}
}
]
Loading…
Cancel
Save