Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#4128 closed enhancement (fixed)

allow lang attribute in div elements to enable per-post language setting

Reported by: conoro Owned by: rob1n
Milestone: 2.3 Priority: normal
Severity: normal Version: 2.2
Component: General Keywords:
Focuses: Cc:


Currently kses.php strips out lang attributes from divs.

If you use an external blog publishing tool, some of them support per-post language setting e.g. for multi-lingual blogs. It would be useful to allow for this rather than just at an overall blog level.

This is also used in things like the hReview microformat which can begin with:
<div class="hreview" lang="de">

Change History (3)

#1 @Otto42
15 years ago

It should also allow for the xml:lang attribute, if it's going to allow lang. W3C says that best practice is to use both.

#2 @rob1n
15 years ago

  • Milestone changed from 2.2 to 2.3
  • Owner changed from anonymous to rob1n

#3 @rob1n
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [5375]) Add lang and xml:lang attributes to allowed list for p, div and blockquote. fixes #4128

Note: See TracTickets for help on using tickets.