Skip to content

Commit

Permalink
Ignore linear whitespace in data and chunk element #PCDATA (#1003).
Browse files Browse the repository at this point in the history
  • Loading branch information
skynavga committed Jul 14, 2019
1 parent c3e2165 commit e5310d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/ttml2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7270,6 +7270,8 @@ If no <code>clipEnd</code> attribute is specified, then a value equal to the int
</table>
<p>If an <loc href="#embedded-content-attribute-encoding"><att>encoding</att></loc> attribute is specified, then it must denote the actual encoding of the byte sequence represented by the
<el>chunk</el> element. If no <loc href="#embedded-content-attribute-encoding"><att>encoding</att></loc> attribute is specified, then the encoding must be considered to be <code>base64</code>.</p>
<p>Any linear whitespace (<loc href="#style-value-lwsp">&lt;lwsp&gt;</loc>)
character present in the <code>#PCDATA</code> content of this element must be ignored when performing decoding processing.</p>
<p>If a <att>length</att> attribute is specified, then it must denote the number of decoded bytes in the byte sequence represented by the
<el>chunk</el> element. When decoding, if a specified length value does not match the number of decoded bytes, then the chunk and its container <el>data</el>
element must return a zero length byte sequence.
Expand Down Expand Up @@ -7377,6 +7379,8 @@ If chunked or sourced data embedding is used, i.e., the content of the <el>data<
<loc href="#embedded-content-vocabulary-chunk">chunk</loc> or <loc href="#embedded-content-vocabulary-source">source</loc> element, then
an <loc href="#embedded-content-attribute-encoding"><att>encoding</att></loc> attribute must not be specified, and, if specified, must be ignored
for the purpose of content processing.</p>
<p>Furthermore, if simple data embedding is used, then any linear whitespace (<loc href="#style-value-lwsp">&lt;lwsp&gt;</loc>)
character present in the <code>#PCDATA</code> content of this element must be ignored when performing decoding processing.</p>
<p>If a <att>length</att> attribute is specified, then it must denote the number of decoded bytes in the byte sequence represented by the
<el>data</el> element. When decoding, if a specified length value does not match the number of decoded bytes, then a zero length byte sequence must be returned.
If no <att>length</att> attribute is specified, then the data resource is considered to have a length equal to the actual number of decoded bytes.
Expand Down

0 comments on commit e5310d1

Please sign in to comment.