Ticket #8745 (closed defect (bug): fixed)
language_attributes always check for 'xhtml', never for 'html'
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7.1 |
| Component: | Template | Version: | 2.7 |
| Severity: | normal | Keywords: | language_attributes html xhtml doctype |
| Cc: |
Description
To choose between "lang=" or "xml:lang=", the language_attributes checks both 'html_type' option and doctype received as argument. The bug is that it checks twice whether doctype equals 'xhtml', instead of testing the opposite case. I made a patch to change the first test (for html-like "lang=" case) to check doctype == 'html' (well, maybe quicker to remove the 'x' than apply a patch, though ;-) ).
Attachments
Change History
-
attachment
wrong_html_type.patch
added
- Status changed from new to closed
- Resolution set to fixed
Note: See
TracTickets for help on using
tickets.

Patch to fix this issue