Skip to content
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

Do not require namespace for xmlns without prefix #34

Open
Rhobal opened this issue Jan 3, 2017 · 1 comment
Open

Do not require namespace for xmlns without prefix #34

Rhobal opened this issue Jan 3, 2017 · 1 comment

Comments

@Rhobal
Copy link

Rhobal commented Jan 3, 2017

As I have found out after quite some trial and error (see #32), to match XPath in an <html xmlns="http://www.w3.org/1999/xhtml"> tag, I need to use the "http://www.w3.org/1999/xhtml" namespace and need to prefix all tags.

Thus, I cannot just use any XPath tool to create the XPath expressions. It would be simpler if xmlns without prefix would not require a prefix in XhtmlMatchers either. Or more commonly, the prefixes in the XPath should be the same as those in xmlns.

Right now, it seems I'm better off removing the xmlns before feeding the xhtml to XhtmlMatchers.

@dmarkov
Copy link

dmarkov commented Jan 9, 2017

@yegor256 please do something about it, see par.21

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

No branches or pull requests

2 participants