[wp-trac] [WordPress Trac] #48996: Add lang attribute to the content in the backend

WordPress Trac noreply at wordpress.org
Mon Dec 16 09:26:09 UTC 2019


#48996: Add lang attribute to the content in the backend
-------------------------------+------------------------------
 Reporter:  Chouby             |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  I18N               |     Version:  4.7
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  accessibility
-------------------------------+------------------------------
Changes (by audrasjb):

 * keywords:   => reporter-feedback


Comment:

 Hi @Chouby and thank you for opening this ticket,

 I think there is already a `lang` attribute added in the `<body>` tag. We
 don't need to add it to each HTML tag if the lang of this content is
 actually the same than the language attribute provided in `<body
 lang="xx">`. Adding `lang` attribute to specific HTML tags is only
 necessary if their content is in a different language.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48996#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list