Skip to content

Add test for #115 #132

Closed
Closed
@gsnedders

Description

@gsnedders

Not sure why #115 has no test, but it appears not to.

walker = html5lib.getTreeWalker("lxml")
tree = html5lib.parseFragment("a", treebuilder="lxml")
assert list(walker(tree)) == [{'data': 'a', u'type': 'Characters'}]

That should work, but we probably want to test with all tree walkers.

Activity

gsnedders

gsnedders commented on Dec 23, 2013

@gsnedders
MemberAuthor

Or maybe that needs to be something like å and not a (i.e., non-ASCII)?

modified the milestones: 0.99999999, 1.0 on Jun 6, 2016
added a commit that references this issue on Jun 6, 2016

Fix html5lib#132: add test for html5lib#115, single character fragments

e9b5fb7
added a commit that references this issue on Jun 6, 2016

fixup! Fix html5lib#132: add test for html5lib#115, single character …

7c00775
added a commit that references this issue on Jun 6, 2016

Fix #132: add test for #115, single character fragments (#264)

5197f55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @gsnedders

        Issue actions

          Add test for #115 · Issue #132 · html5lib/html5lib-python