Opened 11 years ago
Closed 11 years ago
#11582 closed enhancement (fixed)
Allow doctype to be specified
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.2 |
Component: | rendering | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: |
The HTML DocType can be specified through |
||
Internal Changes: |
Description
The proposed changed, backported from Bloodhound, would allow the HTML doctype to be set by a theme.
Attachments (0)
Change History (5)
comment:1 by , 11 years ago
Milestone: | next-stable-1.0.x → 1.0.2 |
---|---|
Owner: | set to |
Status: | new → assigned |
comment:2 by , 11 years ago
Fine by me. But I'd like to be the following.
- doctype = {'text/html': Chrome(self.env).html_doctype} \ - .get(content_type) + doctype = None + if content_type == 'text/html': + doctype = self.html_doctype
comment:3 by , 11 years ago
Yeah, that is cleaner. Is there any use case for setting html_doctype = None
, or can we just join the body of the two conditionals as I've done in log:rjollos.git:t11582.2?
comment:4 by , 11 years ago
I think it's quite unlikely to set html_doctype = None
. Therefore rjollos.git:t11582.2 looks good to me.
comment:5 by , 11 years ago
API Changes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Proposed changes in log:rjollos.git:t11582.