Skip to content

[DomCrawler] xml not being filtered correctly (added failing test) #9732

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

Closed
wants to merge 1 commit into from
Closed

[DomCrawler] xml not being filtered correctly (added failing test) #9732

wants to merge 1 commit into from

Conversation

kbond
Copy link
Member

@kbond kbond commented Dec 10, 2013

I noticed after upgrading a project to 2.4, a bunch of functionality tied to the DomCrawler was not working anymore. Specifically with regards to filtering XML.

This test passes in v2.3.7.

@kbond
Copy link
Member Author

kbond commented Dec 10, 2013

When I remove xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" the test passes.

@fabpot
Copy link
Member

fabpot commented Dec 10, 2013

ping @jakzal

@kbond
Copy link
Member Author

kbond commented Dec 10, 2013

The test also passes if the filter string is default|url.

I just now discovered the changelog for this component (didn't know each component had their own). I see the namespace used to be removed, but is no longer. Is there anything that can be done to revert this BC break?

fabpot added a commit that referenced this pull request Dec 17, 2013
This PR was squashed before being merged into the 2.4 branch (closes #9771).

Discussion
----------

Crawler default namespace fix

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | yes
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #9732, #6650
| License       | MIT
| Doc PR        | symfony/symfony-docs/pull/2979

Fix backwards compatibility of xml namespaces for having only one default namespace.

Commits
-------

cfff054 Crawler default namespace fix
@fabpot fabpot closed this Dec 17, 2013
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