Content-Length: 268025 | pFad | https://github.com/w3c/epub-specs/issues/1388

33 Disallowed namespaces for custom attributes (§5.1.3.6) · Issue #1388 · w3c/epub-specs · GitHub
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

Disallowed namespaces for custom attributes (§5.1.3.6) #1388

Closed
iherman opened this issue Oct 29, 2020 · 6 comments · Fixed by #1404
Closed

Disallowed namespaces for custom attributes (§5.1.3.6) #1388

iherman opened this issue Oct 29, 2020 · 6 comments · Fixed by #1404
Labels
EPUB33 Issues addressed in the EPUB 3.3 revision Spec-ReadingSystems The issue affects the EPUB Reading Systems 3.3 Recommendation Topic-ContentDocs The issue affects EPUB content documents

Comments

@iherman
Copy link
Member

iherman commented Oct 29, 2020

The text disallows adding custom attributes to the xhtml and epub namespaces. Shouldn't at least ssml be disallowed, too?

@murata2makoto
Copy link
Contributor

SSML is heavily used by some publishers in Japan. Dropping them from EPUB 3 is unacceptable.

@iherman
Copy link
Member Author

iherman commented Oct 30, 2020

SSML is heavily used by some publishers in Japan. Dropping them from EPUB 3 is unacceptable.

@murata2makoto, you completely misunderstood what I said, probably I was not clear enough. It is by no means proposing to drop SSML from EPUB3.

§5.1.3.6 talks about custom attributes in XHTML content. The relevant text is:

Custom attributes MAY be included on any element in an XHTML Content Document provided such attributes are from a foreign namespace, which is defined as a namespace [XML-NAMES] that does not map to either of the following URIs:

My reading is that the aim is to protect some privileged namespaces. As SSML can be spread over all over the content document, my proposal is to protect the SSML namespace, i.e., adding https://www.w3.org/2001/10/synthesis to that list.

@murata2makoto
Copy link
Contributor

@iherman

Sorry for my confusion. I agree to list the SSML namespace in this list.

@mattgarrish
Copy link
Member

The ops namespace is there because we wanted to ensure control over anything "epub" (i.e., avoid a reading system adding an attribute that looks like it comes from a spec). The xhtml namespace purpose kind of eludes me, as HTML attributes aren't in any namespace.

We kind of violated the rules of good behaviour by minting SSML attributes in the first place (I don't know that that was coordinated in any way). And given that the world is moving on from this idea, I don't know how important it is to worry about.

We could always throw a blanket restriction over "http(s)://www.w3.org/" and call it a day?

@mattgarrish mattgarrish added Type-SpecIssue Topic-ContentDocs The issue affects EPUB content documents labels Oct 30, 2020
@iherman
Copy link
Member Author

iherman commented Oct 30, 2020

We could always throw a blanket restriction over "http(s)://www.w3.org/" and call it a day?

and the idpf.org namespaces? Maybe a blanket over w3.org and idpf.org is fine. Essentially, external bodies should not mess with these namespaces...

@mattgarrish
Copy link
Member

Works for me!

@mattgarrish mattgarrish added EPUB33 Issues addressed in the EPUB 3.3 revision Spec-ReadingSystems The issue affects the EPUB Reading Systems 3.3 Recommendation labels Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EPUB33 Issues addressed in the EPUB 3.3 revision Spec-ReadingSystems The issue affects the EPUB Reading Systems 3.3 Recommendation Topic-ContentDocs The issue affects EPUB content documents
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/w3c/epub-specs/issues/1388

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy