diff options
author | nitind | 2009-01-07 20:16:41 +0000 |
---|---|---|
committer | nitind | 2009-01-07 20:16:41 +0000 |
commit | 55d3ec1ffa186f04eb4d5b27f656838e86564bc2 (patch) | |
tree | a182e621fadf8157f7d3f34769913ea06696d7ef | |
parent | 149d404a486425b15cd73f8c4ddbb6752b746a4e (diff) | |
download | webtools.sourceediting-55d3ec1ffa186f04eb4d5b27f656838e86564bc2.tar.gz webtools.sourceediting-55d3ec1ffa186f04eb4d5b27f656838e86564bc2.tar.xz webtools.sourceediting-55d3ec1ffa186f04eb4d5b27f656838e86564bc2.zip |
[nobug] ignore script type mime-subtypes
-rw-r--r-- | bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/text/StructuredTextPartitionerForHTML.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/text/StructuredTextPartitionerForHTML.java b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/text/StructuredTextPartitionerForHTML.java index fdde5c755a..e2ae7b8de4 100644 --- a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/text/StructuredTextPartitionerForHTML.java +++ b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/text/StructuredTextPartitionerForHTML.java @@ -105,6 +105,15 @@ public class StructuredTextPartitionerForHTML extends StructuredTextPartitionerF language = StringUtils.strip(node.getText(region)); else if (attrName.equalsIgnoreCase(HTML40Namespace.ATTR_NAME_TYPE)) { type = StringUtils.strip(node.getText(region)); + /* + * Avoid partition names built with MIME subtypes, + * e.g. type="text/javascript;e4x=1" + */ + if (type != null) { + int index = type.indexOf(';'); + if (index > 1) + type = type.substring(0, index); + } break; } attrNameRegion = null; |