HTML: Fix crash on reading Node.sourceSpan (#9372)
This commit is contained in:
1 parent
07f6d49ef3
commit
e10aeee5c9
8 files changed
+78
-14
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#### Fix crash on reading `Node.sourceSpan` (#9368 by @fisker)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```html
|
||||
<!-- Input -->
|
||||
<strong>a</strong>-<strong>b</strong>-
|
||||
|
||||
<!-- Prettier stable -->
|
||||
TypeError: Cannot read property 'line' of undefined
|
||||
at forceNextEmptyLine ...
|
||||
|
||||
<!-- Prettier master -->
|
||||
<strong>a</strong>-<strong>b</strong>-
|
||||
```
|
||||
Reference in new issue
Block a user