-
Notifications
You must be signed in to change notification settings - Fork 63
Closed
Labels
EPUB33Issues fixed in the EPUB 3.3 revisionIssues fixed in the EPUB 3.3 revisionSpec-EPUB3The issue affects the core EPUB 3.X RecommendationThe issue affects the core EPUB 3.X Recommendation
Description
§5.4 of the core defines a scripting context base on the presence of the <script> element in, say, HTML. However, the HTML <script> element is not restricted to active 'scripts', i.e., javascript code. It can hold any type of data: a typical case is schema.org metadata in JSON-LD format.
The HTML spec says of the type attribute:
Omitting the attribute, setting it to the empty string, or setting it to a JavaScript MIME type essence match [...] to be interpreted according to the JavaScript Script top-level production.
which probably gives us the way we should restrict the case when we consider the scripting context: it does not have a type or the value of the type is a JavaScript MIME type essence match.
Metadata
Metadata
Assignees
Labels
EPUB33Issues fixed in the EPUB 3.3 revisionIssues fixed in the EPUB 3.3 revisionSpec-EPUB3The issue affects the core EPUB 3.X RecommendationThe issue affects the core EPUB 3.X Recommendation