Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix the :only-of-type pseudo class selector #33777

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 1, 2019

Conversation

jakzal
Copy link
Contributor

@jakzal jakzal commented Sep 30, 2019

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #33773
License MIT
Doc PR -

@@ -116,7 +116,7 @@ public function testHtmlIds($css, array $elementsId)
$this->assertCount(\count($elementsId), $elementsId);
foreach ($elements as $element) {
if (null !== $element->attributes()->id) {
$this->assertTrue(\in_array($element->attributes()->id, $elementsId));
$this->assertContains((string) $element->attributes()->id, $elementsId);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not strictly related, but it improves an error message shown when the test fails. Before the change, the message would say "expected true, got false". Now it will indicate what's the missing id.

@jakzal jakzal force-pushed the bugfix/css-selector/only-of-type branch 3 times, most recently from 9bfc715 to bd314d3 Compare September 30, 2019 21:36
@fabpot fabpot force-pushed the bugfix/css-selector/only-of-type branch from bd314d3 to c2a9bf0 Compare October 1, 2019 11:57
@fabpot
Copy link
Member

fabpot commented Oct 1, 2019

Thank you @jakzal.

fabpot added a commit that referenced this pull request Oct 1, 2019
This PR was squashed before being merged into the 3.4 branch (closes #33777).

Discussion
----------

Fix the :only-of-type pseudo class selector

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #33773
| License       | MIT
| Doc PR        | -

Commits
-------

c2a9bf0 Fix the :only-of-type pseudo class selector
@fabpot fabpot merged commit c2a9bf0 into symfony:3.4 Oct 1, 2019
@jakzal jakzal deleted the bugfix/css-selector/only-of-type branch October 1, 2019 13:24
This was referenced Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.