Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The itemtype attribute is a space-separated list #1027

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

da2x
Copy link

@da2x da2x commented Mar 2, 2022

The itemtype attribute accepts a space-separated list of URLs.
https://html.spec.whatwg.org/#attr-itemtype

Tidy incorrectly merges space-separated itemtype values into one value and URL-encodes the separator whitespace.

E.g.

<div itemtype="https://schema.org/Organization https://schema.org/WebSite">

turns into

<div itemtype="https://schema.org/Organization%20https://schema.org/WebSite">

This patch changes CH_URL to CH_PCDATA. (CH_RDFATERMS, used on the RDFa-equivalent typeof attribute, is the closest datatype, but it expects prefixes and not URLS. CH_URLS is the most similar data type, but it also allows comma-separated lists, which isn’t appropriate here. Switching to CH_PCDATA is better than leaving it broken.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant