You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Alex Alishevskikh (Jira)" <ji...@apache.org> on 2022/04/18 10:24:00 UTC

[jira] [Created] (LUCENE-10520) HTMLCharStripFilter fails on '>' or '<' characters in attribute values

Alex Alishevskikh created LUCENE-10520:
------------------------------------------

             Summary: HTMLCharStripFilter fails on '>' or '<' characters in attribute values 
                 Key: LUCENE-10520
                 URL: https://issues.apache.org/jira/browse/LUCENE-10520
             Project: Lucene - Core
          Issue Type: Bug
          Components: modules/analysis
            Reporter: Alex Alishevskikh
         Attachments: HTMLStripCharFilterTest.java

If HTML input contains attributes with '<' or '>' characters in their values, HTMLCharStripFilter produces unexpected results.

See the attached unit test for example.

These characters are valid in attribute values, as by the [HTML5 specification |https://html.spec.whatwg.org/#syntax-attribute-value]. The [W3C validator|https://validator.w3.org/nu/#textarea] does not have issues with the test HTML.  


 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org