Problem/Motivation
Log a warning if the attribute name contains a space and we strip the attribute all together (e.g. ['selected href' => 'http://example.com']). Because we're only checking that the output attribute names match the ones we pass in this will be stripped.
Steps to reproduce
Proposed resolution
If an attribute name contains a space log a warning and strip the attribute entirely.
Remaining tasks
Add logger
Need steps to reproduce
Address Unit Test failures - https://git.drupalcode.org/issue/drupal-3514612/-/pipelines/457672/failures
Test the fix
User interface changes
A warning will be logged if an attribute name contains a space.
Introduced terminology
n/a
API changes
n/a
Data model changes
n/a
Release notes snippet
TBC