Commit 46a7981
authored
fix(iOS): empty html blocks parsing (#504)
# Summary
This PR fixes the crash that occurred when we tried to parse empty html
tags:
- `<ul></ul>`
- `<ol></ol>`
- `<codeblock></codeblock>`
- `<blockquote></blockquote>`
Also fixes parsing of `blockquote` and `codeblock` tags only with text
content e.g.:
```
<html>
<blockquote>
x
</blockquote>
</html>
```
## Test Plan
Run example app and try to paste html with empty block tags by "Set
input's value" button.
Example html to paste:
```
<html>
<p>Hey, how's it going?</p>
<br>
<ul>
</ul></html>
```
```
<html>
<ol>
</ol></html>
```
```
<html>
<codeblock>
xxxx
</codeblock>
</html>
```
The app should not crash!
## Screenshots / Videos
https://github.com/user-attachments/assets/e5ea3476-9072-4e1d-9ccd-a130e46a0933
## Compatibility
| OS | Implemented |
| ------- | :---------: |
| iOS | ✅ |
| Android | ❌ |
## Checklist
- [x] E2E tests are passing
- [x] Required E2E tests have been added (if applicable)1 parent 437ecf4 commit 46a7981
4 files changed
Lines changed: 55 additions & 12 deletions
File tree
- .maestro
- flows
- screenshots
- android
- ios
- ios/inputParser
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| |||
798 | 804 | | |
799 | 805 | | |
800 | 806 | | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
801 | 825 | | |
802 | 826 | | |
803 | 827 | | |
| |||
1146 | 1170 | | |
1147 | 1171 | | |
1148 | 1172 | | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
1155 | 1178 | | |
1156 | 1179 | | |
1157 | 1180 | | |
| |||
1171 | 1194 | | |
1172 | 1195 | | |
1173 | 1196 | | |
1174 | | - | |
1175 | | - | |
1176 | | - | |
1177 | | - | |
1178 | | - | |
1179 | | - | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
1180 | 1205 | | |
1181 | 1206 | | |
1182 | 1207 | | |
| |||
0 commit comments