Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 24b7578

Browse files
author
Eduardo Fullea
committed
Remove nullable attributes. Issue #6
1 parent 83f84b5 commit 24b7578

File tree

1 file changed

+22
-15
lines changed

1 file changed

+22
-15
lines changed

index.html

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,8 @@ <h3>Steps</h3>
552552
Data (TP-UD) field of the SMS message
553553
<li>set the <code>state</code> of the <code>SmsMessage</code> to
554554
'received'
555+
<li>set the <code>deliveryStatus</code> of the <code>SmsMessage</code> to
556+
'not-applicable'
555557
<li><a>queue a task</a> to <a>fire an event</a> named
556558
<code><a>received</a></code> with the <code>message</code> attribute set
557559
to the newly created <code>SmsMessage</code> instance.
@@ -604,6 +606,9 @@ <h3>Steps</h3>
604606
<li>set the <code>state</code> of the <code>MmsMessage</code> to
605607
'received' if the message has been downloaded or otherwise to
606608
'not-downloaded'
609+
<li>add a new element in the <code>deliveryStatus</code> array of the
610+
<code>MmsMessage</code> for each of recipients in the 'To', 'Cc' and 'Bcc'
611+
fields with value 'not-applicable'
607612
<li><a>queue a task</a> to <a>fire an event</a> named
608613
<code><a>received</a></code> with the <code>message</code> attribute set
609614
to the newly created <code>MmsMessage</code> instance.
@@ -818,7 +823,8 @@ <h3>Steps</h3>
818823
<li>set the <code>state</code> of the <code>SmsMessage</code> to
819824
'sending'
820825
<li>set the <code>deliveryStatus</code> of the <code>SmsMessage</code> to
821-
'pending' if a delivery report has been requested.
826+
'pending' if a delivery report has been requested or to 'not-applicable'
827+
otherwise.
822828
<li>Make a request to the system to send an SMS message with text passed
823829
in the <code>text</code> parameter to the number of the recipient
824830
indicated in the <code>to</code> parameter, using the proper service as
@@ -1036,7 +1042,8 @@ <h3>Steps</h3>
10361042
<li>add a new element in the <code>deliveryStatus</code> array of the
10371043
<code>MmsMessage</code> for each of the addresses included in the
10381044
<code>to</code>, <code>cc</code> and <code>bcc</code> parameters, with
1039-
value 'pending' if a delivery report has been requested.
1045+
value 'pending' if a delivery report has been requested or with value
1046+
'not-applicable' otherwise.
10401047
<li>Make a request to the system to send an MMS message with the content
10411048
passed in the <code>content</code> parameter to the number(s) of indicated
10421049
in the <code>to</code> parameter, using the proper service as described
@@ -1252,12 +1259,12 @@ <h2><a>SmsMessage</a> Interface</h2>
12521259
<dt>readonly attribute DOMString? deliveryStatus</dt>
12531260
<dd>MUST return 'success' if the SMS message has been succesfully delivered
12541261
to the recipient, 'pending' if it is pending delivery, 'error' if the
1255-
delivery has failed. It MUST return null if the delivery status is not
1256-
applicable either because a delivery report has not been requested or the
1257-
message is an inbound message.
1262+
delivery has failed. It MUST return 'not-applicable' if the delivery status
1263+
is not applicable either because a delivery report has not been requested or
1264+
the message is an inbound message.
12581265
</dd>
12591266

1260-
<dt>readonly attribute DOMString? messageClass</dt>
1267+
<dt>readonly attribute DOMString messageClass</dt>
12611268
<dd>MUST return the SMS message class, with possible values: 'class-0',
12621269
'class-1', 'class-2', 'class-3' or 'normal' (same as 'class-1'), according
12631270
to the value indicated in the TP-Data-Coding-Scheme (TP-DCS) field of the
@@ -1278,19 +1285,19 @@ <h2><a>MmsMessage</a> Interface</h2>
12781285
<dd>MUST return an array containing the recipient(s) included
12791286
in the 'To' field of the MMS message.</dd>
12801287

1281-
<dt>readonly attribute DOMString[]? cc</dt>
1288+
<dt>readonly attribute DOMString[] cc</dt>
12821289
<dd>MUST return an array containing the recipient(s) included
12831290
in the 'Cc' field of the MMS message.</dd>
12841291

1285-
<dt>readonly attribute DOMString[]? bcc</dt>
1292+
<dt>readonly attribute DOMString[] bcc</dt>
12861293
<dd>MUST return an array containing the recipient(s) included
12871294
in the 'Bcc' field of the MMS message.</dd>
12881295

1289-
<dt>readonly attribute DOMString? subject</dt>
1296+
<dt>readonly attribute DOMString subject</dt>
12901297
<dd>MUST return the subject of the MMS message, corresponding to the
12911298
'Subject' field of the MMS message.</dd>
12921299

1293-
<dt>readonly attribute Document? smil</dt>
1300+
<dt>readonly attribute Document smil</dt>
12941301
<dd>MUST return the SMIL document, i.e. the presentation element that
12951302
determines the way the content of the MMS message MUST be displayed.</dd>
12961303

@@ -1302,15 +1309,15 @@ <h2><a>MmsMessage</a> Interface</h2>
13021309
values: 'received', 'draft', 'sending', 'sent', 'failed' and
13031310
'not-downloaded'.</dd>
13041311

1305-
<dt>readonly attribute DOMString? deliveryStatus[]</dt>
1312+
<dt>readonly attribute DOMString deliveryStatus[]</dt>
13061313
<dd>MUST return an array with each of the elements indicating the delivery
13071314
status to each of the recipients of the message, in order starting with the
13081315
recipients in the 'To' field, followed by those in 'Cc' and ending with
13091316
those in 'Bcc'. The possible values indicate whether the MMS message has
13101317
been succesfully delivered to the recipient ('success'), it is pending
1311-
delivery ('pending'), the delivery has failed ('error'). It MUST return null
1312-
if a delivery report has not been requested or the message is an inbound
1313-
message.</dd>
1318+
delivery ('pending'), the delivery has failed ('error'). It MUST return
1319+
'not-applicable' if a delivery report has not been requested or the message
1320+
is an inbound message.</dd>
13141321

13151322
</dl>
13161323
</section>
@@ -1404,7 +1411,7 @@ <h2><a>Conversation</a> Interface</h2>
14041411
return the union of the participants of all the messages in the
14051412
conversation.</dd>
14061413

1407-
<dt>readonly attribute DOMString? subject</dt>
1414+
<dt>readonly attribute DOMString subject</dt>
14081415
<dd>MUST return the subject of the conversation, if there is a single
14091416
one.</dd>
14101417

0 commit comments

Comments
 (0)