Re: IDL problem

Mkay… below is what I got…. but now I'm worried that you sent me what looks like generated code. Which spec are you trying to publish? It might be that you are trying to fix the wrong version.   


<dl title="dictionary TextEncodeOptions" class="idl">
<dt>boolean stream = false</dt>
<dd></dd>
</dl>
<dl title="[Constructor(optional DOMString utfLabel = 'utf-8')] interface TextEncoder">
<dt>readonly attribute DOMString encoding</dt>
<dd></dd>
<dt>Uint8Array encode(optional [EnsureUTF16] DOMString input = "", optional TextEncodeOptions options)</dt>
<dd></dd>
</dl>





--  
Marcos Caceres


On Wednesday, September 18, 2013 at 5:27 PM, Richard Ishida wrote:

> 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:44:31 UTC