Skip to content

Conversation

@chrishow
Copy link
Contributor

@chrishow chrishow commented Nov 7, 2023

I have the need to match on 'empty' attribute values, specifically:

<div data-drupal-messages-fallback class="hidden"></div>

Attributes with no value also commonly appear as boolean attributes, for example:

<input type="checkbox" checked />

Currently, internalQuerySelectorAll() is not matching these attributes.

I have modified internalQuerySelectorAll to find these 'empty' attributes.

@ivopetkov ivopetkov merged commit efe6472 into ivopetkov:master Nov 24, 2023
@chrishow chrishow deleted the queryselectors-find-empty-attribute branch November 25, 2023 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants