Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
setting a doctype (regarding self-closing tags produced by plugins)
Hi,
something just popped into my mind… Let’s say I’ve got a plugin that’s outputting a list of images. Now how does the plugin know wether it should self-close the tags (<img ... />
) or not (<img ...>
)? That depends on the doctype. Same thing with css-links in the head and some other things I right now can’t think of. So what about a property “doctype” or, simpler “self-close tags”?
Last edited by zoeglingjulian (2005-12-06 22:04:07)
Offline
#2 2005-12-07 04:23:42
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: setting a doctype (regarding self-closing tags produced by plugins)
…how does the plugin know…?
It doesn’t. The plugin author would need to add that as an attribute setting for the tag; I do that with mine. A preference like:
Markup output: XHTML () or HTML ()
would be nice.
Offline
Re: setting a doctype (regarding self-closing tags produced by plugins)
I also suggested something similar to Mary’s suggestion.
Offline