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

Add element.sourceline (lxml) #97

Open
Milestone
@SimonSapin

Description

@SimonSapin

Elements in lxml have asourceline attribute, but it is alwaysNone in trees parsed with html5lib.

html5lib also appears tokeep track of source line numbers for error messages.

I’d like to connect the two so that WeasyPrint can do its own error reporting based on line numbers of HTML elements. It seems like the attribute should be setin etree_lxml.py, but I don’t know how to access the input stream from there.

Suggestions?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp