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

supportitemscope as a boolean attribute #194

Closed
Milestone
@jvanasco

Description

@jvanasco

itemscope should be supported as a boolean attribute.

for reference,schema.org has been pushing it as such (https://schema.org/docs/gs.html#microdata_itemscope_itemtype)

running something through the Tokenizer/Sanitizer will set it to an empty attribute

input:<article itemscope>
output:<article itemscope="">

it looks like this can be handled by editing constants.py and doing the following to enable it on all tags:

booleanAttributes = {-    "": frozenset(["irrelevant"]),+    "": frozenset(["irrelevant", "itemscope"]),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp