kuma
kuma copied to clipboard
An empty <pre> tag will break the read-only site
Summary
If the document contains the string <pre></pre>
it will break the rendering on the read-only site.
Steps To Reproduce (STR)
- Edit a wiki page and in the source put in
<pre></pre>
- Save
- View on the read-only domain
Actual behavior
![Screen Shot 2020-03-24 at 9 33 12 AM](https://user-images.githubusercontent.com/26739/77431070-91721300-6db2-11ea-8483-3470e754aa06.png)
Expected behavior
Not to crash.
Additional context
Here's the code that assumes that there's always >=1 childNodes
I created this: https://developer.allizom.org/en-US/docs/Web/SVG/Element/feTurbulence