Changeset 3125833
- Timestamp:
- 07/26/2024 09:40:25 AM (20 months ago)
- Location:
- empty-alt-image-container-swap
- Files:
-
- 2 edited
- 1 copied
-
tags/1.0.1 (copied) (copied from empty-alt-image-container-swap/trunk)
-
tags/1.0.1/readme.txt (modified) (4 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
empty-alt-image-container-swap/tags/1.0.1/readme.txt
r3125814 r3125833 1 1 === Empty Alt Image Container Swap === 2 2 3 Contributors: Akari Doi 3 Contributors: akari_doi 4 Author: akari_doi 4 5 Tags: images, accessibility, alt text, figure, div 5 6 Requires at least: 5.0 … … 9 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 11 11 == Short Description ==12 12 This plugin improves accessibility by converting figure tags to div tags for image blocks with missing alt text. 13 13 14 14 == Description == 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.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.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. 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. 19 19 … … 38 38 5. Once installed, click "Activate Plugin" to activate it. 39 39 40 After activating the plugin through either method, it will automatically convert <figure> tags to <div>tags for image blocks with missing alt text when using the block editor. No further configuration is required.41 For best accessibility practices, it's recommended to provide descriptive alt text for all images. However, if you forget or choose not to add alt text for certain images, this plugin ensures proper markup by using <div> containers instead of <figure>.40 After activating the plugin through either method, it will automatically convert `<figure>` tags to `<div>` tags for image blocks with missing alt text when using the block editor. No further configuration is required. 41 For best accessibility practices, it's recommended to provide descriptive alt text for all images. However, if you forget or choose not to add alt text for certain images, this plugin ensures proper markup by using `<div>` containers instead of `<figure>`. 42 42 43 43 == Frequently Asked Questions == … … 45 45 = What happens if I deactivate the plugin? = 46 46 47 When you deactivate the plugin, image blocks that were using <div> tags due to missing alt text will not automatically revert to using <figure>tags. You may need to manually update these image blocks if necessary to maintain your preferred markup.47 When you deactivate the plugin, image blocks that were using `<div>` tags due to missing alt text will not automatically revert to using `<figure>` tags. You may need to manually update these image blocks if necessary to maintain your preferred markup. -
empty-alt-image-container-swap/trunk/readme.txt
r3125814 r3125833 1 1 === Empty Alt Image Container Swap === 2 2 3 Contributors: Akari Doi 3 Contributors: akari_doi 4 Author: akari_doi 4 5 Tags: images, accessibility, alt text, figure, div 5 6 Requires at least: 5.0 … … 9 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 11 11 == Short Description ==12 12 This plugin improves accessibility by converting figure tags to div tags for image blocks with missing alt text. 13 13 14 14 == Description == 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.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.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. 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. 19 19 … … 38 38 5. Once installed, click "Activate Plugin" to activate it. 39 39 40 After activating the plugin through either method, it will automatically convert <figure> tags to <div>tags for image blocks with missing alt text when using the block editor. No further configuration is required.41 For best accessibility practices, it's recommended to provide descriptive alt text for all images. However, if you forget or choose not to add alt text for certain images, this plugin ensures proper markup by using <div> containers instead of <figure>.40 After activating the plugin through either method, it will automatically convert `<figure>` tags to `<div>` tags for image blocks with missing alt text when using the block editor. No further configuration is required. 41 For best accessibility practices, it's recommended to provide descriptive alt text for all images. However, if you forget or choose not to add alt text for certain images, this plugin ensures proper markup by using `<div>` containers instead of `<figure>`. 42 42 43 43 == Frequently Asked Questions == … … 45 45 = What happens if I deactivate the plugin? = 46 46 47 When you deactivate the plugin, image blocks that were using <div> tags due to missing alt text will not automatically revert to using <figure>tags. You may need to manually update these image blocks if necessary to maintain your preferred markup.47 When you deactivate the plugin, image blocks that were using `<div>` tags due to missing alt text will not automatically revert to using `<figure>` tags. You may need to manually update these image blocks if necessary to maintain your preferred markup.
Note: See TracChangeset
for help on using the changeset viewer.