Commit 2161d9b
committed
HTML API: Preserve decoder match length on named-reference miss.
The HTML decoder could report a match byte length when there was no match. Ensure the pass-by-reference match byte length is unmodified if there is no match.
Developed in WordPress#12379.
Follow-up to [58281].
Props jonsurrell, dmsnell, mukesh27.
See #65372.
git-svn-id: https://develop.svn.wordpress.org/trunk@62626 602fd350-edb4-49c9-b593-d223f7449a821 parent 006522b commit 2161d9b
2 files changed
Lines changed: 34 additions & 1 deletion
File tree
- src/wp-includes/html-api
- tests/phpunit/tests/html-api
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
| 364 | + | |
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
113 | 146 | | |
114 | 147 | | |
115 | 148 | | |
| |||
0 commit comments