Re: [xml] Patch for HTML SCRIPT

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Sat Oct 14 2000 - 19:16:52 EDT


On Sat, Oct 14, 2000 at 05:26:26PM +0000, Bjorn Reese wrote:
> Attached is patch for the HTML SCRIPT element, whose contents should
> not be parse or encoded. The regression tests breaks, but that is
> because the results of the regression tests are wrong.
>
> A similar problem exists for the HTML STYLE element (which should be
> straight-forward to add), and for attributes containing script code.
> The latter could be solved by recognizing quotes for the attributes.
> My patch does not include any of this.
>
> I have also attached a simplistic .html file used for testing.

  thanks !

 I have applied the patch. However I had to change the function
using CUR_PTR is really not safe in this context. I also had to add
the cdata (that was a good idea to use it in this case!) callback
in the default HTML SAx block and handle this case for the push
parser. Added Style support since it could be merged, included your
example and updated testHTML to show cdata. Then updated the test
results.
  So it really took longer than expected, but it's nice to have this
fixed :-)

    thanks again,

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Oct 14 2000 - 19:43:21 EDT