8414158fa9
Previously, `nextElem` was not actually proceeding to the next element, and therefore aborting the paragraph at the first `<br>` (rather than the first `<br><br>` as the comment indicates).
29 lines
1.2 KiB
HTML
29 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<title>Replace brs test</title>
|
|
</head>
|
|
<body>
|
|
<article>
|
|
<h1>Lorem</h1>
|
|
<div>
|
|
Lorem ipsum<br/>dolor sit<br/> <br/><br/>amet, consectetur adipisicing elit, sed do eiusmod<br/>
|
|
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,<br/>
|
|
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo<br/> <br/>
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse<br/>
|
|
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non<br/>
|
|
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</div>
|
|
<h2>Foo</h2>
|
|
<div>
|
|
Tempor<br/><br/>incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,<br/>
|
|
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo<br/>
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse<br/><br/>
|
|
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non<br/>
|
|
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</div>
|
|
</article>
|
|
</body>
|
|
</html>
|