sunlightlabs / django-mediasync

Toolkit to simplify static media development and deployment.
BSD 3-Clause "New" or "Revised" License
174 stars 30 forks source link

mediasync outputs only XHTML #3

Closed robhudson closed 15 years ago

robhudson commented 15 years ago

For projects that use an HTML4 doctype, the output from mediasync produces invalid HTML. Specifically the <link> tag.

I don't know the best way to solve this? Yet another setting?

jcarbaugh commented 15 years ago

I think a setting is the only way to solve it. Sadly a closing tag on link would be invalid in XHTML. MEDIASYNC_XHTML_SYNTAX = True/False, True by default. Any objections to that?

robhudson commented 15 years ago

Or MEDIASYNC_DOCTYPE = 'xhtml1'/'html4'? Is HTML5's link tag any different?

jcarbaugh commented 15 years ago

HTML5 will validate with either the XHTML self-closed tag or an implicitly closed tag. Should the options then be:

html4

html5

xhtml

robhudson commented 15 years ago

Looks pretty good to me.

jcarbaugh commented 15 years ago

add MEDIASYNC_DOCTYPE setting to change the output of template tags for HTML4, HTML5, and XHTML. Closed by 815bc4fb0298a05d10f3dcb200263d8f971c6b83