This node: http://london.openguides.org/index.cgi?Smiths_Of_Smithfield,_EC1M_6HJ
Has a trailing <i> without a </i> which means that everything below that is italic. Any way to fix this everywhere?
Rev Simon Rumble wrote:
This node: http://london.openguides.org/index.cgi?Smiths_Of_Smithfield,_EC1M_6HJ
Problem is in version 6 - 7 fixes this instance of it.
Has a trailing <i> without a </i> which means that everything below that is italic. Any way to fix this everywhere?
How widespread a problem is this. If it only happens once a year then prob not worth loosing too much time over.
It seems to me that the Wiki being too generous/ trusting to allow the punter to enter their own HTML tags. If a punter puts an <i> in then it is presumably his responsibility to put in the </i> which did not happen in this case. On the other hand if they use Wiki style formatting - '' in this case then they will get it right - if you only put one '' in the Wiki doesn't make the text italic. Personally I (if I were specing the Wiki) would strip html out of the text before processing. The alternative would be to validate that the entered text is a correct snippet of HTML.
Actually - looking at it in a bit more detail - it seems that something is adding extra <i> and </i> - presumably to make the HTML it generates valid HTML.
Example : <p> ..snip.. . -- Flick</i></p> <p><i><i> ..snip.. -- Chris</i></i></p>
<!-- NODE CONTENT ENDS -->
<i><i><br clear="all"> </i></i><div id="find_within_distance">
<i><i> </i></i><form action="supersearch.cgi"> <i><i> <label for="distance">Find all things within</label>
On Tue 11 Jan 2005, Andrew Black andrew3@black1.org.uk wrote:
It seems to me that the Wiki being too generous/ trusting to allow the punter to enter their own HTML tags.
The tags that are allowed are:
a p b strong i em pre small img table td tr th br hr ul li center blockquote kbd div code strike sub sup font
Anything else is stripped. I'm fairly sure each of those is in there because somebody has wanted them at some point, and I don't see anything really malicious that can be done with them. Actually we could probably do without center and font now we have div, perhaps some others too.
We could make it a config option if any Guide operators wanted it to be, but I'm slightly wary of config options that might get too long since Config::Tiny won't handle them properly if they get linewrapped by someone's editor. (And I believe there are editors that will do this without asking you.)
If a punter puts an <i> in then it is presumably his responsibility to put in the </i> which did not happen in this case.
Or someone else will fix it when they see it's wrong, just like any other typo or formatting mistake.
On the other hand if they use Wiki style formatting - '' in this case then they will get it right - if you only put one '' in the Wiki doesn't make the text italic.
I hate that bit of wiki formatting. No, I don't hate it exactly, but I never use it because I can't remember which way round bold and italic go. So I think it's best to have a choice.
(It is also nice to have some universally-understood formatting tools available, if only for the new/passing visitor who isn't yet excited enough about OpenGuides to believe the time worth reading the formatting conventions worthwhile on top of the time already spent reading the "how to use this guide" and "local conventions" and so on.)
(People don't read documentation until they have to.)
Example :
<p> ..snip.. . -- Flick</i></p> <p><i><i> ..snip.. -- Chris</i></i></p>
<!-- NODE CONTENT ENDS -->
Which URL is this at? I can't find it. I looked in versions 5 and 6 of the Smiths of Smithfield node.
Kake
Kake L Pugh wrote:
I hate that bit of wiki formatting. No, I don't hate it exactly, but I never use it because I can't remember which way round bold and italic go. So I think it's best to have a choice.
(It is also nice to have some universally-understood formatting tools available, if only for the new/passing visitor who isn't yet excited enough about OpenGuides to believe the time worth reading the formatting conventions worthwhile on top of the time already spent reading the "how to use this guide" and "local conventions" and so on.)
(People don't read documentation until they have to.)
OK - agree with that. Particularly if people use multiple Wiki implementations that might do things differently.
Example :
<p> ..snip.. . -- Flick</i></p> <p><i><i> ..snip.. -- Chris</i></i></p>
<!-- NODE CONTENT ENDS -->
Which URL is this at? I can't find it. I looked in versions 5 and 6 of the Smiths of Smithfield node.
Apologies. That seems to be a feature of Firefox. If you "view selection source" it appears to correct the HTML for you. Hmmmm.
Andrew
openguides-london@lists.openguides.org