ignore case when comparing tag names

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@646799 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2008-04-10 13:36:23 +00:00
parent 2f9879d5ef
commit dc9bb60c4a
1 changed files with 1 additions and 1 deletions

View File

@ -441,7 +441,7 @@ public class HTMLStripReader extends Reader {
// We only get to this point after we have read the // We only get to this point after we have read the
// entire tag. Now let's see if it's a special tag. // entire tag. Now let's see if it's a special tag.
String name=sb.toString(); String name=sb.toString();
if (name.equals("script") || name.equals("style")) { if (name.equalsIgnoreCase("script") || name.equalsIgnoreCase("style")) {
// The content of script and style elements is // The content of script and style elements is
// CDATA in HTML 4 but PCDATA in XHTML. // CDATA in HTML 4 but PCDATA in XHTML.