Activity for Vincent Massol

  • Vincent Massol Vincent Massol posted a comment on ticket #228

    Hi @scottwilson. Long time no speak! How are you? We have several issues reported quite a while ago, like this one (also reported at https://sourceforge.net/p/htmlcleaner/bugs/231/) or https://sourceforge.net/p/htmlcleaner/bugs/230/ and are wondering if we could expect some fixes. Anything we could do to help out? Thank you very much, you've always been very helpful to the XWiki project. -Vincent

  • Vincent Massol Vincent Massol posted a comment on ticket #212

    Thanks Scott for fixing these bugs! :)

  • Vincent Massol Vincent Massol created ticket #212

    Returned DOM Document instance should not contain escaped characters for attribute values

  • Vincent Massol Vincent Massol posted a comment on ticket #2

    Hmm... I don't understand why the user would need to specify and know in which version an issue would be fixed :) However what's important is to report in which version of CSS4J the problem occurred. That's not possible?

  • Vincent Massol Vincent Massol created ticket #2

    CSS4J strips HTML entities

  • Vincent Massol Vincent Massol posted a comment on ticket #203

    I've gone ahead yesterday and applied the HC 2.22 upgrade with the change of tests. I'm crossing fingers now since it's hard to foresee what the behavior changes will lead to. Thx

  • Vincent Massol Vincent Massol posted a comment on ticket #203

    For (1) do you mean that, where before you had a line feed character as a unicode entity, you are now getting a standard line feed character? Yes correct.

  • Vincent Massol Vincent Massol posted a comment on ticket #203

    1) I'm also getting this now: assertHTML("<p>\n</p>", "<p>&#xA;</p>"); whereas before, I had: assertHTML("<p>&#xA;</p>", "<p>&#xA;</p>"); (&#xA; is a line feed) Does that seem normal to you? 2) Should I open an issue for the overzealous quote escape? Thanks

  • Vincent Massol Vincent Massol modified a comment on ticket #203

    AFAIR what we wanted was XHTML so it's normal to escape ampersand (since it's one of the 5 special characters in XML) but the quote doesn't need to be escaped in XHTML. So are you saying there's no way to escape only what's needed for XHTML and translateSpecialEntities=true will escape more than needed?

  • Vincent Massol Vincent Massol posted a comment on ticket #203

    AFAIR what we wanted was XHTML so it's normal to escape ampersand (since it's one of the 5 special characters in XML) but the quote doesn't need to be escaped in XHTML. So are you saying there's no to escape only what's needed?

  • Vincent Massol Vincent Massol posted a comment on ticket #203

    Yes thanks for that hint, that fixes Problem 1 (and Problem 2 for some reason). I now have Problem 3 + a new one: Problem 4 @Test public void specialCharacters() { // TODO: We still have a problem I think in that if there are characters such as "&" or quote in the source // text they are not escaped. This is because we have use "false" in DefaultHTMLCleaner here: // Document document = new JDomSerializer(this.cleanerProperties, false).createJDom(cleanedNode); // See the problem described here: http://sourceforge.net/forum/forum.php?thread_id=2243880&forum_id=637246...

  • Vincent Massol Vincent Massol posted a comment on ticket #203

    Note that if I use DOMSerializer instead of XWikiDOMSerializer I also get these 3 problems (and 2 more failing tests related to CDATA).

  • Vincent Massol Vincent Massol posted a comment on ticket #203

    And I believe you're confirming that the cleaner has changed behavior since 2.16 and that it's normal and wanted that it doesn't escape attribute values any more, correct?

  • Vincent Massol Vincent Massol posted a comment on ticket #203

    Yes it helps,, thanks. I hadn't realized we were initializing the XWikiDOMSerialize with escapeXml=false (had forgotten). I tried putting it to true and indeed it fixes this issue, but breaks 3 other tests (which is why it was off before ;)): Problem 1 @Test public void verifyEntitiesAreNotBroken() { assertHTML("<p>&Eacute;</p>", "&Eacute;"); } Generates <html><head></head><body><p>É</p></body></html> instead of <html><head></head><body><p>&Eacute;</p></body></html>. Problem 2 @Test public void specialCharacters()...

  • Vincent Massol Vincent Massol posted a comment on ticket #203

    Ok I've done more tests: With HC 2.16 if I check the content of the cleaned node, I can see that the attribute has proper escaped values, i.e. aaa&quot;bbb&amp;ccc&gt;ddd&lt;eee With HC 2.22, the value is not escaped aaa"bbb&ccc>ddd<eee If I replace XWikiDOMSerializer by DOMSerializer with HC 2.22, I still get the problem and the test is not passing so the issue is not coming from XWikiDOMSerializer but from the cleaner it seems. Any idea? Thanks

  • Vincent Massol Vincent Massol posted a comment on ticket #203

    Thanks a lot Scott for this code/diff :) I've tried it but it doesn't work though. I'll need to look at the commit 521 a bit later. Thx

  • Vincent Massol Vincent Massol posted a comment on ticket #203

    Hi Scott! You're as fast as usal :) I would have thought about some XWiki-related thing but for the fact that keeping the same code and just changing the HC version in the POM changes the result so this clearly suggests a change in behavior. Maybe HC between 2.16 and 2.22 changed some default config values? Note that "setAllowHtmlInsideAttributes(false)" is the default and we're not setting it (I've set it to test and same result). FTR this is the config we have: https://github.com/xwiki/xwiki-commons/blob/d1657b0da41bc6fdca0cefd6e03b2a3705b17cec/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/internal/html/DefaultHTMLCleaner.java#L211...

  • Vincent Massol Vincent Massol posted a comment on ticket #203

    For reference this is out issue on the XWiki side: https://jira.xwiki.org/browse/XCOMMONS-1164

  • Vincent Massol Vincent Massol created ticket #203

    HC doesn't properly escape < and > characters anymore in attributes

  • Vincent Massol Vincent Massol modified a comment on ticket #197

    Confirmed! The problem is on XWiki side... Seems I can't close this issue though... Thx and sorry again for the false positive.

  • Vincent Massol Vincent Massol posted a comment on ticket #197

    Confired! The problem is on XWiki side... Seems I can't close this issue though... Thx and sorry again for the false positive.

  • Vincent Massol Vincent Massol posted a comment on ticket #197

    hmmm hold on, I think the problem is comig from filters we have in XWiki. I'm debugging further and will close this issue if it's on our side... sorry about that.

  • Vincent Massol Vincent Massol created ticket #197

    Problems cleaning IFRAME

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    This is awesome, thanks! I've tried it and it works just fine ;) So the only difference...

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    ok I've retested and it's much better :) Remaining issues for XWiki: Using //instead...

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    Thanks for looking into this Scott!

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    ok Scott, so I've slowly examined all the XWiki unit tests related to CData inside...

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    Guillaume, what does IE10 gives (see https://sourceforge.net/p/htmlcleaner/bugs/...

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    ok so I guess we need to test your input above in IE. I've checked and XWiki supports...

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    So I think the consensus emerging here is that HC is correct on (1) and (3), but...

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    Would you also know if what is at https://github.com/xwiki/xwiki-commons/blob/a6976cfccfa4713dcb1ced7ee30cb28475d6f6fc/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/htmlcleaner/XWikiDOMSerializer.java#L265-L265...

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    Hmm the probem is that I really don't remember how I coded the XWikiDOMSerializer...

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    Hi Scott. Thanks for working on those. I've upgraded to HC 2.19 and unfortunately...

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    Awesome Scott! I see you've fixed several issues I had raised thanks a lot for that....

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    Thanks Scott, that would be awesome to have all our CDATA test pass with htmlcleaner....

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    Ok after removing our custom XWikiDOMSerializer I get several failing tests. Just...

  • Vincent Massol Vincent Massol modified a comment on ticket #169

    I've rebuilt and tested trunk without making any modification to xwiki (ie I still...

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    I've rebuilt and tested trunk without making any modification to xwiki (ie I still...

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    If the original content of the script tag is invalid, I'm not sure there's much you...

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    See http://stackoverflow.com/a/4227942

  • Vincent Massol Vincent Massol modified a comment on ticket #169

    Oh I think I understand. The question is not whether to have CDATA or not. It's whether...

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    Oh I think I understand. The question is not whether to have CDATA or not. It's whether...

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    I probably don't understand the issue. At first glance, if you ask for useCdataFor="script,style"...

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    Regarding this last test case, you want to support it right (it's just not done ...

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    Thanks for looking into this Scott! Yes, I couldn't find another solution either...

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    cool!

  • Vincent Massol Vincent Massol posted a comment on ticket #169

    Note: XWikiDOMSerialized has now been moved to the org.htmlcleaner package to circumvent...

  • Vincent Massol Vincent Massol created ticket #169

    Several issues with CDATA blocks

  • Vincent Massol Vincent Massol created ticket #168

    DomSerializer doesn't seem to take into account the namespacesAware configuration

  • Vincent Massol Vincent Massol created ticket #167

    Make it easier to extend DomSerializer

  • Vincent Massol Vincent Massol posted a comment on ticket #53

    Thanks for answering. The generated jjMoveNfa_0 method is huge (over 4000+ lines)...

  • Vincent Massol Vincent Massol created ticket #53

    Error while instrumenting class com/steadystate/css/parser/SACParserCSS21TokenManager

  • Vincent Massol Vincent Massol posted a comment on ticket #128

    great!

  • Vincent Massol Vincent Massol posted a comment on ticket #128

    Still planned for tomorrow? :) Thanks!

  • Vincent Massol Vincent Massol posted a comment on ticket #128

    ok, waiting for that date eagerly then :) Thanks!

  • Vincent Massol Vincent Massol posted a comment on ticket #128

    Hi Scott, The XWiki project is waiting for HC 2.10 to be released in order to get...

  • Vincent Massol Vincent Massol posted a comment on ticket #128

    The following works but it's probably not correct: tagInfo = new TagInfo("legend",...

  • Vincent Massol Vincent Massol posted a comment on ticket #128

    Could someone help out on this since I don't fully understand the parameters to use...

  • Vincent Massol Vincent Massol posted a comment on ticket #128

    So the regression was done by patmoore in: r203 | patmoore | 2013-02-26 05:53:49...

  • Vincent Massol Vincent Massol posted a comment on ticket #128

    Seems it's just missing from DefaultTagProvider()... I see that it was added in rev...

  • Vincent Massol Vincent Massol posted a comment on ticket #128

    ok found the problem, it's apparently an unknown tag: cp.setOmitUnknownTags(true);...

  • Vincent Massol Vincent Massol posted a comment on ticket #128

    hmm actually if I modify it like this it passes so the problem is elsewhere... @Test...

  • Vincent Massol Vincent Massol posted a comment on ticket #128

    Found a test for it in HtmlCleanerTest but this test has no asserts! @Test public...

  • Vincent Massol Vincent Massol created ticket #128

    Regression: <legend> tag is stripped

  • Vincent Massol Vincent Massol posted a comment on ticket #103

    Thanks a lot Scott! :)

  • Vincent Massol Vincent Massol posted a comment on ticket #100

    CleanerProperties defaultProperties = new CleanerProperties(); defaultProperties.setOmitUnknownTags(true);...

  • Vincent Massol Vincent Massol modified a comment on ticket #100

    I've tested again with 2.7 and by upgrading to 2.8 and the attribute is still not...

  • Vincent Massol Vincent Massol posted a comment on ticket #100

    I've tested again with 2.7 and by upgrading to 2.8 and the attribute is still not...

  • Vincent Massol Vincent Massol posted a comment on ticket #100

    Hi Scott, Thanks for looking into this. The use case I had is described at https://sourceforge.net/p/htmlcleaner/bugs/99/#cfc2...

  • Vincent Massol Vincent Massol posted a comment on ticket #100

    Getting ready for a 2.8 release? :) Too bad this is slipping from 2.8 since I consider...

1 >