Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-06 22:03:36

zoeglingjulian
Member
From: London, UK
Registered: 2004-12-23
Posts: 52
Website

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

#3 2005-12-07 04:53:06

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: setting a doctype (regarding self-closing tags produced by plugins)

A similar discussion

I also suggested something similar to Mary’s suggestion.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB