Support » Plugin: wp-Typography » img alt tags changed

  • Resolved snoffel


    I am currently testing your plugin – so far I am very impressed, thanks a lot!

    The only thing i am wondering about: empty alt tags in images get changed, why is this? (it happens with images with or without captions)

    <img alt="" src="


    <img alt src="

    I checked the W3C Validator and simply alt seems to be valid HTML, but I do not know if it still works for screenreaders as expected.
    Can i somehow stop this behaviour?


    • This topic was modified 4 years, 1 month ago by snoffel.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author pepe


    That’s a result of the HTML being parsed by the HTML5-PHP library and regenerated after the typography fixes have been applied. Internally, HTML5-PHP uses the PHP DOM implementation, so I’m not sure this can be changed without modifying the underlying C library.

    Thread Starter snoffel


    Thanks for your quick reply!

    So, this means there is no setting to get around this behaviour, right?

    I checked with the – it recognizes pure alt as images are marked to be omitted from non-graphical presentations (alt=””).

    As the HTML5-PHP guys seem to be quite strict with standards, i probably simply should trust them that alt is enough.

    Plugin Author pepe


    alt and alt="" are merely syntactic variants with identical semantics, so you should be fine with screen readers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘img alt tags changed’ is closed to new replies.