There is a small documentation typo within function template_preprocess_responsive_image() :

This:

    // There is only one source tag with an empty media attribute. This means
    // we can output an image tag with the srcset attribute in stead of a
    // picture tag.

Should be:

    // There is only one source tag with an empty media attribute. This means
    // we can output an image tag with the srcset attribute instead of a
    // picture tag.

Patch coming shortly.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chrisfree created an issue. See original summary.

chrisfree’s picture

Issue summary: View changes
chrisfree’s picture

Title: Typo » Typo within Responsive Image module
chrisfree’s picture

Here is a patch that corrects the spelling of "instead".

markdorison’s picture

Status: Active » Reviewed & tested by the community

Patch applies cleanly; change makes sense to me.

chrisfree’s picture

Assigned: chrisfree » Unassigned

  • xjm committed 385982d on 8.3.x
    Issue #2820875 by chrisfree: Typo within Responsive Image module
    

  • xjm committed 45cd045 on 8.2.x
    Issue #2820875 by chrisfree: Typo within Responsive Image module
    
    (...
xjm’s picture

Status: Reviewed & tested by the community » Fixed

I confirmed that this is the only instance of this particular documentation typo:

grep -r "in stead" *
core/modules/responsive_image/responsive_image.module:    // we can output an image tag with the srcset attribute in stead of a

Committed 385982d and pushed to 8.3.x and 8.2.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.