[Laszlo-dev] compilation errors

Lou Iorio liorio at laszlosystems.com
Wed Nov 7 07:31:54 PST 2007


In Chapter 33. Extending Classes, example 33.8:

<canvas height="50">
   <class name="htmlText">
     <attribute name="text" type="html"/>
     <text resize="true" text="${parent.text}"/>
   </class>

   <simplelayout/>
   <htmlText>
     <b>bold</b> text declared here with
     <a href="http://www.openlaszlo.org"><i>anchor</i></a>
   </htmlText>
   <htmlText text="&lt;b&gt;bold&lt;/b&gt; text set here"/>
</canvas>

to which the compiler says:

class-inheritance-$12.lzx:9:13: The tag 'b' cannot be used as a child  
of htmlText
class-inheritance-$12.lzx:9:13: The tag 'a' cannot be used as a child  
of htmlText

I can't tell what's going on here, since the example seems to work.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20071107/fea0afe3/attachment-0001.html


More information about the Laszlo-dev mailing list