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.



Reply via email to