TiddlyWiki.org

Changeset 4044

Show
Ignore:
Timestamp:
18/03/08 12:30:25 (6 months ago)
Author:
JeremyRuston
Message:

Added ALT attribute for images (ticket #388)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Trunk/core/js/Formatter.js

    r2803 r4044  
    373373                        else if(lookaheadMatch[2]) 
    374374                                img.align = "right"; 
    375                         if(lookaheadMatch[3]) 
     375                        if(lookaheadMatch[3]) { 
    376376                                img.title = lookaheadMatch[3]; 
     377                                img.setAttribute("alt",lookaheadMatch[3]); 
     378                        } 
    377379                        img.src = lookaheadMatch[4]; 
    378380                        w.nextMatch = this.lookaheadRegExp.lastIndex;