Re: IDL problem

Thanks Marcos, but can you give me a bit more of the sample code.  I 
should say that this is not a document i wrote - i'm just trying to 
publish it. I don't really have a clue about which bits go where.

Or better yet, just rearrange this code for me?

         <pre class="idlx">dictionary <dfn 
id="textencodeoptions">TextEncodeOptions</dfn> {
   boolean stream = false;
};

[<a href="#dom-textencoder" 
title="dom-TextEncoder">Constructor</a>(optional DOMString <var 
title="">utfLabel</var> = "utf-8")]
interface <dfn id="textencoder">TextEncoder</dfn> {
   readonly attribute DOMString <a href="#dom-textencoder-encoding" 
title="dom-TextEncoder-encoding">encoding</a>;
   <a class="external" data-anolis-spec="typedarray" 
href="http://www.khronos.org/registry/typedarray/specs/latest/#7">Uint8Array</a> 
<a href="#dom-textencoder-encode" 
title="dom-TextEncoder-encode">encode</a>(optional [EnsureUTF16] 
DOMString <var title="">input</var> = "", optional <a 
href="#textencodeoptions">TextEncodeOptions</a> <var 
title="">options</var>);
};</pre>

Cheers,
RI



On 18/09/2013 17:15, Marcos Caceres wrote:
>
>
> On Wednesday, September 18, 2013 at 5:09 PM, Richard Ishida wrote:
>
>> I'm now struggling with respec with the following code:
>>
>> <h3 id="interface-textdecoder">Interface <code
>> title="">TextDecoder</code></h3>
>> <pre class="idl">dictionary <dfn
>> id="textdecoderoptions">TextDecoderOptions</dfn> {
>> boolean fatal = false;
>> };
>
>
> Here is an example from another spec:
>
> <dl title="dictionary MmsAttachment" class="idl">
> <dt>DOMString contentID</dt>
>
> <dd>bla bla…</dd>
> </dl>
>
> Note the use of a "dl" instead of a <pre>. So, just add your members as "dt" and "dd"s.
>
>
>


-- 
Richard Ishida

Received on Wednesday, 18 September 2013 16:27:49 UTC