roxen.lists.pike.general

Subject Author Date
Re: submit modify of Parser.SGML Martin Stjernholm <mast[at]lysator[dot]liu[dot]se> 04-04-2009
"PeterPan" <<zenothing[at]hotmail.com>> wrote:

> * recognize xml-compatible tag such as <p/>, set open=0 for these tags

This doesn't seem to work though:

  > object o = Parser.SGML.SGML();
  > o->feed ("<p><x/></p>")->finish();
  (1) Result: ({ /* 1 element */
                  SGMLatom(size 1)
              })
  > o->result()[0]->open;
  (2) Result: 0

I.e. it incorrectly flags the <p> tag as not open.