By the way, something more about the compatibility of SGML(or HTML):
<a href=http://www.somethin.com/?q=abc&arg1=efg&arg2=hij>haha</a>
In the real browner this is ok, but SGML recognize it as:
({ /* 1 element */
SGMLatom(<a ="hij" href="http://www.somethin.com/?q"/>
"haha")
})
This is deep in the HTML cmod, It's to much for me to hack it.
Maybe someone can help to fix it.
--------------------------------------------------
From: "Martin Stjernholm" <<mast[at]lysator.liu.se>>
Sent: Sunday, April 05, 2009 3:31 AM
To: "PeterPan" <<zenothing[at]hotmail.com>>
Cc: <<pike[at]roxen.com>>
Subject: Re: submit modify of Parser.SGML
> "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.
>
>
|