Commit 17c99e5
committed
HTML API: Preserve raw text contents in serialization.
The contents of `iframe`, `noembed`, and `noframes` elements are parsed as raw text and must be appended literally when serializing rather than escaped or omitted. Setting the modifiable text of these elements, as well as `xmp`, is now supported.
Developed in WordPress#12289.
Follow-up to [62542].
Props jonsurrell, dmsnell.
See #65372.
git-svn-id: https://develop.svn.wordpress.org/trunk@62715 602fd350-edb4-49c9-b593-d223f7449a821 parent c2b126a commit 17c99e5
4 files changed
Lines changed: 72 additions & 23 deletions
File tree
- src/wp-includes/html-api
- tests/phpunit/tests/html-api
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1511 | 1511 | | |
1512 | 1512 | | |
1513 | 1513 | | |
1514 | | - | |
1515 | | - | |
1516 | | - | |
1517 | 1514 | | |
1518 | 1515 | | |
1519 | 1516 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| |||
4075 | 4075 | | |
4076 | 4076 | | |
4077 | 4077 | | |
| 4078 | + | |
| 4079 | + | |
| 4080 | + | |
| 4081 | + | |
| 4082 | + | |
| 4083 | + | |
| 4084 | + | |
| 4085 | + | |
| 4086 | + | |
| 4087 | + | |
| 4088 | + | |
| 4089 | + | |
| 4090 | + | |
| 4091 | + | |
| 4092 | + | |
| 4093 | + | |
| 4094 | + | |
| 4095 | + | |
| 4096 | + | |
| 4097 | + | |
| 4098 | + | |
| 4099 | + | |
| 4100 | + | |
| 4101 | + | |
| 4102 | + | |
| 4103 | + | |
4078 | 4104 | | |
4079 | 4105 | | |
4080 | 4106 | | |
| |||
4132 | 4158 | | |
4133 | 4159 | | |
4134 | 4160 | | |
4135 | | - | |
| 4161 | + | |
4136 | 4162 | | |
4137 | 4163 | | |
4138 | 4164 | | |
| |||
Lines changed: 36 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | 273 | | |
290 | 274 | | |
291 | 275 | | |
| |||
481 | 465 | | |
482 | 466 | | |
483 | 467 | | |
484 | | - | |
| 468 | + | |
485 | 469 | | |
486 | | - | |
| 470 | + | |
487 | 471 | | |
488 | 472 | | |
489 | 473 | | |
| |||
492 | 476 | | |
493 | 477 | | |
494 | 478 | | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
495 | 482 | | |
496 | 483 | | |
497 | 484 | | |
498 | 485 | | |
499 | 486 | | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
500 | 518 | | |
501 | 519 | | |
502 | 520 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
437 | 441 | | |
438 | 442 | | |
439 | 443 | | |
| |||
624 | 628 | | |
625 | 629 | | |
626 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
627 | 635 | | |
628 | 636 | | |
629 | 637 | | |
| |||
0 commit comments