wiki.techinc.nl/includes/parser
Aryeh Gregor bc65c6bb12 (bug 368) Allow alt= attribute for images
Alt text is now set in the following ways, in decreasing priority:

1) Set to the alt= parameter if present.
2) Set to the unnamed (caption) parameter if present, and if the image does not have the thumb or frame option set (i.e., if the unnamed parameter is not actually being used for a caption -- using it as both caption and alt text would just lead to text being repeated).
3) Set to the empty string.

Title text and captions should not be affected in any case.  The only backward-compatibility effect (i.e., on images not using the new alt= syntax) should be that if previously the same text was repeated in the alt text and then again in the caption, the alt text will now be empty.  Setting the alt parameter should never change the HTML output compared to not setting it, except of course changing the alt text.

All parser tests pass, except the usual ones.
2008-10-08 16:33:36 +00:00
..
CoreLinkFunctions.php Committing todays work on LinkHooks and the link rewrite: 2008-08-19 04:44:34 +00:00
CoreParserFunctions.php (bug 14229) Trim attribute name in #tag 2008-10-06 07:37:37 +00:00
DateFormatter.php
LinkHolderArray.php * Fix bug 15344. Was caused by the overwrite of $entry, assigned by reference to the last link and then overwritten in later code. 2008-08-28 05:22:17 +00:00
Parser.php (bug 368) Allow alt= attribute for images 2008-10-08 16:33:36 +00:00
Parser_DiffTest.php * Revert back to my parser pseudo-branch again. Note: if you feel like reverting this, reverting Parser.php alone to r40010 will work just fine. 2008-08-26 14:37:15 +00:00
Parser_LinkHooks.php Committing todays work on LinkHooks and the link rewrite: 2008-08-19 04:44:34 +00:00
Parser_OldPP.php (bug 15563) port PHP bug workaround to Parser_OldPP 2008-10-06 08:21:41 +00:00
ParserCache.php Revert r38196, r38204 -- "(bugs 6089, 13079) Show edit section links for transcluded template if, and only if the user can edit it, made Title::getUserPermissionsErrorsInternal() public so that it can be used in Parser and it can pass the User object from ParserOptions. " & co 2008-07-29 23:56:30 +00:00
ParserOptions.php Revert revert r41406 of r41333, and removed one space between attributes. 2008-09-30 01:00:40 +00:00
ParserOutput.php Move some member variable initialization to the declarations and out of constructors. This is better style and less error-prone: OutputPage::$mIsPrintable was first being set to true and then to false in the constructor, and $mAllowUserJs and $mLinkColours are missing defaults entirely. Also, Tim said there's some lazy-loading or shared memory or something if it's done this way, so it might be a performance boost. 2008-07-25 01:27:51 +00:00
Preprocessor.php added PPCustomFrame classes to restore ability to use replaceVariables with a custom map of values. This should unbreak some extensions that were broken by the new PP stuff, like the News extension. 2008-06-26 13:05:40 +00:00
Preprocessor_DOM.php add profile calls 2008-08-18 07:59:37 +00:00
Preprocessor_Hash.php Add 3 new functions to the PPTemplateFrames to allow extensions to efficiently extract the whole list of parameters (or only numbered or named) passed to the template they are nested inside of. 2008-08-09 06:08:54 +00:00