mirror of https://github.com/sveltejs/svelte
fix: allow nested `<dt>`/`<dd>` elements if they are within a `<dl>` element (#12681)
* fix: allow nested `<dt>`/`<dd>` elements if they are within a `<dl>` element This introduces a resets array, which means descendants that are forbidden are allowed again, if an element within the resets array is encountered between the tag and the forbidden descendant fixes #12676 * better namemigrate-member-assignment
parent
9411b6f9f1
commit
9eca3d0736
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: allow nested `<dt>`/`<dd>` elements if they are within a `<dl>` element
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"code": "node_invalid_placement",
|
||||
"message": "`<dt>` is invalid inside `<dd>`",
|
||||
"start": {
|
||||
"line": 11,
|
||||
"column": 3
|
||||
},
|
||||
"end": {
|
||||
"line": 11,
|
||||
"column": 19
|
||||
}
|
||||
}
|
||||
]
|
@ -0,0 +1,14 @@
|
||||
<dl>
|
||||
<dt>valid</dt>
|
||||
<dd>
|
||||
<!-- dl resets the validation -->
|
||||
<dl>
|
||||
<dt>valid</dt>
|
||||
<dd>valid</dd>
|
||||
</dl>
|
||||
<!-- other tags don't -->
|
||||
<div>
|
||||
<dt>invalid</dt>
|
||||
</div>
|
||||
</dd>
|
||||
</dl>
|
Loading…
Reference in new issue