[wp-trac] [WordPress Trac] #54698: Add 'ruby' tag and its friends to kses

WordPress Trac noreply at wordpress.org
Tue Dec 28 08:22:39 UTC 2021

#54698: Add 'ruby' tag and its friends to kses
 Reporter:  upsuper      |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  6.0
Component:  Formatting   |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:

Comment (by upsuper):

 Replying to [comment:3 mukesh27]:
 > I updated the patch [attachment:"54698.patch"] with parent-child
 elements hierarchy because `<ruby>` is the main parent for all the other

 Indeed that `<ruby>` is the ancestor for all the other elements, but I'm
 confused by your patch. It seems to me that the second level of arrays are
 for attributes of the tag, not possible child tags, and `<table>` which
 has a similar structure as `<ruby>` doesn't contain any such child element
 either. If the same idea holds, `<table>` should include `<caption>`,
 `<tbody>`, `<thead>`, `<tfoot>`, `<tr>`, `<td>`, `<th>`, `<colgroup>`,
 `<col>`. Also, `<summary>` can only meaningfully be inside `<details>`,
 and `<li>` only in `<ol>` and `<ul>`, `<track>` only in `<video>` and
 `<audio>`, etc.  But none of them seems to be listed in the way your patch

 Could you clarify?

Ticket URL: <https://core.trac.wordpress.org/ticket/54698#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list