From: <ad...@us...> - 2010-11-07 14:29:31
|
Revision: 1178 http://jtidy.svn.sourceforge.net/jtidy/?rev=1178&view=rev Author: aditsu Date: 2010-11-07 14:29:25 +0000 (Sun, 07 Nov 2010) Log Message: ----------- fixed test 443576 - use prefix matches for javascript tags' language attribute Modified Paths: -------------- branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/TagCheckImpl.java Modified: branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/TagCheckImpl.java =================================================================== --- branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/TagCheckImpl.java 2010-11-06 16:17:19 UTC (rev 1177) +++ branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/TagCheckImpl.java 2010-11-07 14:29:25 UTC (rev 1178) @@ -210,8 +210,8 @@ if (lang != null) { String str = lang.value; - if ("javascript".equalsIgnoreCase(str) || "jscript".equalsIgnoreCase(str)) - { + if (str.regionMatches(true, 0, "javascript", 0, 10) || + str.regionMatches(true, 0, "jscript", 0, 7)) { node.addAttribute("type", "text/javascript"); } else if ("vbscript".equalsIgnoreCase(str)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |