Changeset 3125978
- Timestamp:
- 07/26/2024 01:06:39 PM (20 months ago)
- Location:
- empty-alt-image-container-swap
- Files:
-
- 2 added
- 4 edited
- 1 copied
-
assets/banner-1544x500.jpg (added)
-
assets/banner-772x250.jpg (added)
-
tags/1.0.3 (copied) (copied from empty-alt-image-container-swap/trunk)
-
tags/1.0.3/empty-alt-image-container-swap.php (modified) (1 diff)
-
tags/1.0.3/readme.txt (modified) (2 diffs)
-
trunk/empty-alt-image-container-swap.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
empty-alt-image-container-swap/tags/1.0.3/empty-alt-image-container-swap.php
r3125814 r3125978 3 3 Plugin Name: Empty Alt Image Container Swap 4 4 Description: 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 5 Version: 1.0.3 6 6 Author: Akari Doi 7 7 Text Domain: empty-alt-image-container-swap -
empty-alt-image-container-swap/tags/1.0.3/readme.txt
r3125841 r3125978 6 6 Requires at least: 5.0 7 7 Tested up to: 6.5.3 8 Stable tag: 1.0. 28 Stable tag: 1.0.3 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 14 14 == Description == 15 15 This 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.16 Images 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. 17 17 By 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. 18 18 In 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 3 3 Plugin Name: Empty Alt Image Container Swap 4 4 Description: 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 5 Version: 1.0.3 6 6 Author: Akari Doi 7 7 Text Domain: empty-alt-image-container-swap -
empty-alt-image-container-swap/trunk/readme.txt
r3125841 r3125978 6 6 Requires at least: 5.0 7 7 Tested up to: 6.5.3 8 Stable tag: 1.0. 28 Stable tag: 1.0.3 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 14 14 == Description == 15 15 This 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.16 Images 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. 17 17 By 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. 18 18 In 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.