HTML: Fix crash on reading Node.sourceSpan (#9372)

This commit is contained in:
fisker Cheung authored and GitHub committed 2020-10-13 09:17:57 +08:00
1 parent 07f6d49ef3
commit e10aeee5c9
8 files changed
+78 -14

No files matched your search

+14
View File
@@ -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>-
```