On 11/29/07, Mark Jaroski mark@geekhive.net wrote:
I thought code was an extension-like preprocessor tag.
Afaik it's just a whitelisted HTML tag. It's treated that way by setupAttributeWhitelist() and removeHTMLtags() in Sanitizer.php.
Interestingly, something (Tidy?) goes out of its way to support this behaviour. This code: --- foo<b>blah
blah --- renders as:
---- <p>foo<b>blah</b></p>
<p><b>blah</b></p> ----
So whereas an unclosed ''' is closed at the end of the paragraph (by doAllQuotes()), an unclosed <b> is closed then explicitly re-opened in the next paragraph (and then closed, re-opened etc).
I hadn't appreciated that difference between ''' and <b> before.
Steve
----- Original Message ----- From: "Steve Bennett" stevagewp@gmail.com To: "Wikitext-l" wikitext-l@lists.wikimedia.org Sent: 29 November 2007 05:42 Subject: [Wikitext-l] From Wikitech-l (Determining the behavior ofapostrophes)
On 11/29/07, Mark Jaroski mark@geekhive.net wrote:
I thought code was an extension-like preprocessor tag.
Afaik it's just a whitelisted HTML tag. It's treated that way by setupAttributeWhitelist() and removeHTMLtags() in Sanitizer.php.
Interestingly, something (Tidy?) goes out of its way to support this behaviour. This code:
foo<b>blah
blah
renders as:
<p>foo<b>blah</b></p>
<p><b>blah</b></p> ----
So whereas an unclosed ''' is closed at the end of the paragraph (by doAllQuotes()), an unclosed <b> is closed then explicitly re-opened in the next paragraph (and then closed, re-opened etc).
I hadn't appreciated that difference between ''' and <b> before.
imho there should be no difference between them. If they behave differently, then that is a bug...
- Mark Clements (HappyDog)
wikitext-l@lists.wikimedia.org