We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Let's write this test
@pytest.mark.parametrize(*_PARSERS_PARAMETRIZER) def test_empty_attributes(self, parser): html = "<div><p id=''>text</p></div>" selector = "p" for node in parser(html).css(selector): assert 'id' in node.attributes assert node.attributes['id'] == ''
Run it
Passed 1 of 2
Expected :'' Actual :None
> assert node.attributes['id'] == '' E AssertionError: assert None == ''
HTMLParser return None for empty string attribute, but LexborHTMLParser return empty string
The text was updated successfully, but these errors were encountered:
I think there is nothing we can do about it. That's how Modest treats them.
Sorry, something went wrong.
it's a pity
No branches or pull requests
Let's write this test
Run it
Passed 1 of 2
Expected :''
Actual :None
HTMLParser return None for empty string attribute, but LexborHTMLParser return empty string
The text was updated successfully, but these errors were encountered: