cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Stevens (JIRA)" <>
Subject [jira] Updated: (COCOON-1639) [patch] NekoHTMLTransformer
Date Sat, 25 Mar 2006 01:11:41 GMT
     [ ]

Andrew Stevens updated COCOON-1639:


To test out various neko properties, I did a couple of unit tests for the neko generator.
 Unfortunately, all they really showed was how troublesome nekohtml is :-(  For example, with

    function doNothing() { return 0; }
in the source file, despite setting the property
(" Specifies whether the scanner should strip HTML comment delimiters (i.e. "<!--" and
"-->") from <script> element content.") I still got the comment delimiters in the
output.  I also discovered it "fixes" <b><i>foo</b></i> as <b><i>foo</i></b><i/>
rather than just the <b><i>foo</i></b> I was expecting.  And when
I omitted a closing </h1> tag, leaving <h1>foo<p>bar..., Neko didn't close
it until the end of the body, even though IIRC headings can only contain inline elements and
<p> is a block element.  Or maybe that's only the case for 4.01 Strict?  At any rate,
there was also the fact that when I set the various doctype properties, although I'd specified
"false" for the "validate" parameter on the xml-parser component something still read the
strict.dtd from and then complained that it contained syntax errors!

All in all, I don't think I'll bother uploading my test cases here ;-)  However, in the course
of all this I did discover that escaping the colons in the properties file is indeed necessary,
so here's an updated for the WEB-INF directory.

> [patch] NekoHTMLTransformer
> ---------------------------
>          Key: COCOON-1639
>          URL:
>      Project: Cocoon
>         Type: Improvement
>   Components: Blocks: HTML
>     Versions: 2.1.8
>  Environment: Operating System: All
> Platform: All
>     Reporter: Andrew Stevens
>     Assignee: Jean-Baptiste Quenot
>     Priority: Minor
>  Attachments:,, cocoon.log, combined.diff,
htmlblock.diff,,, samples.diff
> The html block contains HTMLGenerator, HTMLTransformer, NekoHTMLGenerator and...
> hey, where's the NekoHTMLTransformer?
> So, just to complete the set, here's one I prepared earlier :-)
> I've also included an (empty) configuration file, and updated
> the neko generator's setup bits to allow for setting parser features as well as
> properties.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message