[ 
https://issues.apache.org/jira/browse/LUCENE-10520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex Alishevskikh updated LUCENE-10520:
---------------------------------------
    Description: 
If HTML input contains attributes with '<' or '>' characters in their values, 
HTMLStripCharFilter 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.  


 

  was:
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.  


 

         Labels: HTMLStripCharFilter  (was: HTMLCharStripFilter)
        Summary: HTMLStripCharFilter fails on '>' or '<' characters in 
attribute values   (was: HTMLCharStripFilter fails on '>' or '<' characters in 
attribute values )

> HTMLStripCharFilter 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
>    Affects Versions: 9.1
>            Reporter: Alex Alishevskikh
>            Priority: Major
>              Labels: HTMLStripCharFilter
>             Fix For: 9.1
>
>         Attachments: HTMLStripCharFilterTest.java
>
>
> If HTML input contains attributes with '<' or '>' characters in their values, 
> HTMLStripCharFilter 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to