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

ARIA related attributes are dropped by sanitizer #399

Open
Labels
@tushuhei

Description

@tushuhei

When I serialize a HTML document including elements with ARIA related attributes,serialize method drops them off as a result of sanitization.

importhtml5libdoc='<div>the description</div><span aria-describedby="foo">bar</span>'print(html5lib.serialize(html5lib.parseFragment(doc),sanitize=True,quote_attr_values='always'))# <div>the description</div><span>bar</span>

ARIA related attributes are not dangerous for my understanding, soserialize method should keep them even if the parametersanitize isTrue.

Metadata

Metadata

Assignees

No one assigned

    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