Plugin Directory

Changeset 3125978


Ignore:
Timestamp:
07/26/2024 01:06:39 PM (20 months ago)
Author:
akari_doi
Message:

Update to version 1.0.3 from GitHub

Location:
empty-alt-image-container-swap
Files:
2 added
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • empty-alt-image-container-swap/tags/1.0.3/empty-alt-image-container-swap.php

    r3125814 r3125978  
    33Plugin Name: Empty Alt Image Container Swap
    44Description: For image blocks with an empty alt attribute, this plugin replaces the figure tags wrapping the image with div tags, and vice versa.
    5 Version: 1.0
     5Version: 1.0.3
    66Author: Akari Doi
    77Text Domain: empty-alt-image-container-swap
  • empty-alt-image-container-swap/tags/1.0.3/readme.txt

    r3125841 r3125978  
    66Requires at least: 5.0
    77Tested up to: 6.5.3
    8 Stable tag: 1.0.2
     8Stable tag: 1.0.3
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1414== Description ==
    1515This plugin enhances the accessibility of image blocks in the WordPress block editor by converting the wrapping `<figure>` tags to `<div>` tags when the image has an empty alt attribute.
    16 The `<figure>` element is typically used to provide a description of its content, especially for images. However, when an image lacks alternative text (alt text) that describes its content, wrapping it in a `<figure>` element can be semantically incorrect because the figure lacks a description of its content.
     16Images that are purely decorative and lack an alt attribute do not contribute directly to the understanding of the content, and therefore, wrapping them in a <figure> element is not appropriate.
    1717By replacing `<figure>` tags with `<div>` tags for images missing alt text, this plugin ensures proper HTML semantics. `<div>` elements are generic containers without implicit meaning, making them suitable for presenting images without associated descriptions.
    1818In summary, this lightweight plugin dynamically adjusts the markup of image blocks based on the presence of alt text, thereby enhancing their accessibility.
  • empty-alt-image-container-swap/trunk/empty-alt-image-container-swap.php

    r3125814 r3125978  
    33Plugin Name: Empty Alt Image Container Swap
    44Description: For image blocks with an empty alt attribute, this plugin replaces the figure tags wrapping the image with div tags, and vice versa.
    5 Version: 1.0
     5Version: 1.0.3
    66Author: Akari Doi
    77Text Domain: empty-alt-image-container-swap
  • empty-alt-image-container-swap/trunk/readme.txt

    r3125841 r3125978  
    66Requires at least: 5.0
    77Tested up to: 6.5.3
    8 Stable tag: 1.0.2
     8Stable tag: 1.0.3
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1414== Description ==
    1515This plugin enhances the accessibility of image blocks in the WordPress block editor by converting the wrapping `<figure>` tags to `<div>` tags when the image has an empty alt attribute.
    16 The `<figure>` element is typically used to provide a description of its content, especially for images. However, when an image lacks alternative text (alt text) that describes its content, wrapping it in a `<figure>` element can be semantically incorrect because the figure lacks a description of its content.
     16Images that are purely decorative and lack an alt attribute do not contribute directly to the understanding of the content, and therefore, wrapping them in a <figure> element is not appropriate.
    1717By replacing `<figure>` tags with `<div>` tags for images missing alt text, this plugin ensures proper HTML semantics. `<div>` elements are generic containers without implicit meaning, making them suitable for presenting images without associated descriptions.
    1818In summary, this lightweight plugin dynamically adjusts the markup of image blocks based on the presence of alt text, thereby enhancing their accessibility.
Note: See TracChangeset for help on using the changeset viewer.