Commit 27659ec
authored
fix: normalizer does not strip br nodes inside blockquote (#720)
# Summary
The `<br>` was getting stripped when inside of a `<blockquote>`
The example HTML that was reproducing the issue:
```html
<html><blockquote><p>this is a pretty short blockquote.</p><br><p>This is a line after an empty line.</p></blockquote></html>
```
## Screenshots
When setting the input's value with that HTML I mentioned in the
summary.
Before:
<img width="335" height="82" alt="image"
src="https://github.com/user-attachments/assets/3d76e4f1-b2ea-406b-bcbc-3c58ddf853a5"
/>
After:
<img width="375" height="106" alt="image"
src="https://github.com/user-attachments/assets/d83dc9d7-93d0-44e4-9f44-a9f559d52d67"
/>
## Compatibility
| OS | Implemented |
| ------- | :---------: |
| iOS | ✅ |
| Android | ✅ |
| Web | ✅ |
## Checklist
- [ ] E2E tests are passing
- [ ] Required E2E tests have been added (if applicable)1 parent ec1c03f commit 27659ec
4 files changed
Lines changed: 33 additions & 7 deletions
File tree
- cpp
- parser
- tests
- src/web
- __tests__
- normalization
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
601 | | - | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
602 | 606 | | |
603 | 607 | | |
604 | 608 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
| 404 | + | |
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
511 | 518 | | |
512 | 519 | | |
513 | 520 | | |
| |||
581 | 588 | | |
582 | 589 | | |
583 | 590 | | |
584 | | - | |
585 | | - | |
586 | | - | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
587 | 595 | | |
588 | 596 | | |
589 | 597 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
| 362 | + | |
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| |||
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
480 | 490 | | |
481 | 491 | | |
482 | 492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
405 | 409 | | |
406 | 410 | | |
407 | 411 | | |
| |||
0 commit comments