• Resolved snoffel

    (@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="

    gets

    <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?

    Thanks,
    snoffel

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

    (@pputzer)

    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

    (@snoffel)

    Thanks for your quick reply!

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

    I checked with the validator.w3.org/nu/ – 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

    (@pputzer)

    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.