Changes between Initial Version and Version 1 of Ticket #52990, comment 8
- Timestamp:
- 06/11/2021 12:22:11 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #52990, comment 8
initial v1 5 5 On the other hand the WordPress editor (both the block editor and TinyMCE) normalize HTML attributes to always use double quotes. The "template functions" also output HTML with double quotes. 6 6 7 Yes, the conditional where the quote is checked can have false positives. It 's purpose is to bypass adding of the `loading` attribute, i.e. if `src`, `width`, or `height` are missing or in case of a false positive it falls back to the "safe" option of not changing the tag.7 Yes, the conditional where the quote is checked can have false positives. Its purpose is to bypass adding of the `loading` attribute, i.e. if `src`, `width`, or `height` are missing or in case of a false positive it falls back to the "safe" option of not changing the tag. 8 8 9 9 At the time #44427 was implemented it seemed that the slowdown of getting the quote style for each image would have larger negative impact than not adding the `loading` attribute when the tags attributes are with single quotes or no quotes.