Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

HTML5Parser has incorrect behavior #558

Closed
@theRealProHacker

Description

@theRealProHacker

On Version 1.1

The doc strings give this example, which would be great, if it worked, but actually it fails whentree = "lxml"

def__init__(self,tree=None,strict=False,namespaceHTMLElements=True,debug=False):"""        :arg tree: a treebuilder class controlling the type of tree that will be            returned. Built in treebuilders can be accessed through            html5lib.treebuilders.getTreeBuilder(treeType)        :arg strict: raise an exception when a parse error is encountered        :arg namespaceHTMLElements: whether or not to namespace HTML elements        :arg debug: whether or not to enable debug mode which logs things        Example:        >>> from html5lib.html5parser import HTMLParser        >>> parser = HTMLParser()                     # generates parser with etree builder        >>> parser = HTMLParser('lxml', strict=True)  # generates parser with lxml builder which is strict        """

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp