@@ -4316,21 +4316,21 @@ private void documentModeInternal(DocumentMode m, String publicIdentifier,
43164316
43174317 private boolean isAlmostStandards (String publicIdentifier ,
43184318 String systemIdentifier ) {
4319- if (Portability .lowerCaseLiteralEqualsIgnoreAsciiCaseString (
4320- "-//w3c//dtd xhtml 1.0 transitional//en " , publicIdentifier )) {
4319+ if (Portability .lowerCaseLiteralIsPrefixOfIgnoreAsciiCaseString (
4320+ "-//w3c//dtd xhtml 1.0 transitional//" , publicIdentifier )) {
43214321 return true ;
43224322 }
4323- if (Portability .lowerCaseLiteralEqualsIgnoreAsciiCaseString (
4324- "-//w3c//dtd xhtml 1.0 frameset//en " , publicIdentifier )) {
4323+ if (Portability .lowerCaseLiteralIsPrefixOfIgnoreAsciiCaseString (
4324+ "-//w3c//dtd xhtml 1.0 frameset//" , publicIdentifier )) {
43254325 return true ;
43264326 }
43274327 if (systemIdentifier != null ) {
4328- if (Portability .lowerCaseLiteralEqualsIgnoreAsciiCaseString (
4329- "-//w3c//dtd html 4.01 transitional//en " , publicIdentifier )) {
4328+ if (Portability .lowerCaseLiteralIsPrefixOfIgnoreAsciiCaseString (
4329+ "-//w3c//dtd html 4.01 transitional//" , publicIdentifier )) {
43304330 return true ;
43314331 }
4332- if (Portability .lowerCaseLiteralEqualsIgnoreAsciiCaseString (
4333- "-//w3c//dtd html 4.01 frameset//en " , publicIdentifier )) {
4332+ if (Portability .lowerCaseLiteralIsPrefixOfIgnoreAsciiCaseString (
4333+ "-//w3c//dtd html 4.01 frameset//" , publicIdentifier )) {
43344334 return true ;
43354335 }
43364336 }
@@ -4363,11 +4363,11 @@ private boolean isQuirky(@Local String name, String publicIdentifier,
43634363 }
43644364 }
43654365 if (systemIdentifier == null ) {
4366- if (Portability .lowerCaseLiteralEqualsIgnoreAsciiCaseString (
4367- "-//w3c//dtd html 4.01 transitional//en " , publicIdentifier )) {
4366+ if (Portability .lowerCaseLiteralIsPrefixOfIgnoreAsciiCaseString (
4367+ "-//w3c//dtd html 4.01 transitional//" , publicIdentifier )) {
43684368 return true ;
4369- } else if (Portability .lowerCaseLiteralEqualsIgnoreAsciiCaseString (
4370- "-//w3c//dtd html 4.01 frameset//en " , publicIdentifier )) {
4369+ } else if (Portability .lowerCaseLiteralIsPrefixOfIgnoreAsciiCaseString (
4370+ "-//w3c//dtd html 4.01 frameset//" , publicIdentifier )) {
43714371 return true ;
43724372 }
43734373 } else if (Portability .lowerCaseLiteralEqualsIgnoreAsciiCaseString (
0 commit comments