[wp-trac] [WordPress Trac] #54699: dir, lang, and xml:lang should be global attributes supported on all tags

WordPress Trac noreply at wordpress.org
Mon Dec 27 13:55:29 UTC 2021


#54699: dir, lang, and xml:lang should be global attributes supported on all tags
-------------------------+-----------------------------
 Reporter:  upsuper      |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Formatting   |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Currently in kses, `dir`, `lang`, and `xml:lang` are only supported in
 several selected elements, however, as can be found in the
 [https://html.spec.whatwg.org/multipage/dom.html#the-lang-and-xml:lang-
 attributes HTML standard], they are all global attributes and can be
 applied to any element.

 It doesn't make sense, for example, to have to write `<span lang="ja"><em>
 こんにちは</em></span>` while you can pretty much just use `<em lang="ja">
 こんにちは</em>`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54699>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list