Skip to content
Snippets Groups Projects
Commit 84fd0ae0 authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Nikita Hovratov
Browse files

[BUGFIX] Change selector to get container in `files` element

The identifier used to get a container in `type=files` based on
`querySelector()` which flawed if the identifier contained a dot.
The example identifier "#foo-data-foo.bar" resulted in "find an
element with id 'foo-data-foo', having the class 'bar'", which
is wrong.

To solve this issue, while still limiting the scope to the web
component, the selector is changed to use the `[id='']` syntax,
which doesn't show the erroneous behavior.

Resolves: #100777
Releases: main, 12.4
Change-Id: I9edff128c612cc6a614b65866533c3fb1c731f4e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78898


Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
Tested-by: default avatarNikita Hovratov <nikita.h@live.de>
parent 49878314
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment