Provide a site-wide default value for ALT-Text

Comments

4 comments

  • Avatar
    Greg DeVore

    Rob -

    I don't know when we would be able to build something like this in - but in the meantime this javascript should get 90% of the cases where the title and alt are the same:

    https://gist.github.com/bluemango/9002559

    Just add that javascript to your site.

    0
    Comment actions Permalink
  • Avatar
    Rob Nevin

    Thanks for your (typically) rocket-fast response and the script.

    Tried it but it appears that the change we intend (ALT=""), when modified post-code by the script,  is being seen by the browser as literally 'Quote  Quote' and not a null value (the result if used at the code level).  Since the browser sees it as Quote Quote that's what is made available to the Screen Reader.  Instead of ignoring the text, it's reading Quote Quote.

     

     

    0
    Comment actions Permalink
  • Avatar
    Greg DeVore

    I updated the gist. Can you try the new version?

    0
    Comment actions Permalink
  • Avatar
    Rob Nevin

    Thanks Greg.  This is actually worse.  It's now reading the entire link of the image (you can imagine how long that takes!).

    I'll have to connect with Dave to explore this a bit further.  Stay tuned.    In the meantime I'll revert to blank.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk