[326482] [content model] target attribute in <a> tag incorrectly flagged as warning in HTML5 page
diff --git a/bundles/org.eclipse.wst.html.core/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.html.core/META-INF/MANIFEST.MF index e44f0b5..9ab5bf5 100644 --- a/bundles/org.eclipse.wst.html.core/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.wst.html.core/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.wst.html.core; singleton:=true -Bundle-Version: 1.1.402.qualifier +Bundle-Version: 1.1.403.qualifier Bundle-Activator: org.eclipse.wst.html.core.internal.HTMLCorePlugin Bundle-Vendor: %providerName Bundle-Localization: plugin
diff --git a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/contentmodel/HTML5AttributeCollection.java b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/contentmodel/HTML5AttributeCollection.java index 9622122..155b67a 100644 --- a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/contentmodel/HTML5AttributeCollection.java +++ b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/contentmodel/HTML5AttributeCollection.java
@@ -640,7 +640,7 @@ * (coords %Coords; #IMPLIED) */ else if (elementName.equals(HTML40Namespace.ElementName.A)){ - String[] names = { ATTR_NAME_MEDIA, ATTR_NAME_TYPE, ATTR_NAME_HREF, ATTR_NAME_HREFLANG, ATTR_NAME_REL}; + String[] names = { ATTR_NAME_MEDIA, ATTR_NAME_TYPE, ATTR_NAME_HREF, ATTR_NAME_HREFLANG, ATTR_NAME_REL, ATTR_NAME_TARGET}; getDeclarations(attributes, Arrays.asList(names).iterator()); @@ -657,12 +657,6 @@ attr.obsolete(true); attributes.putNamedItem(ATTR_NAME_REV, attr); - // (target %FrameTarget; #IMPLIED) - atype = new HTMLCMDataTypeImpl(HTMLCMDataType.FRAME_TARGET); - attr = new HTMLAttrDeclImpl(ATTR_NAME_TARGET, atype, CMAttributeDeclaration.OPTIONAL); - attr.obsolete(true); - attributes.putNamedItem(ATTR_NAME_TARGET, attr); - // (directkey %Character; #IMPLIED) atype = new HTMLCMDataTypeImpl(HTMLCMDataType.CHARACTER); attr = new HTMLAttrDeclImpl(ATTR_NAME_DIRECTKEY, atype, CMAttributeDeclaration.OPTIONAL); @@ -851,7 +845,7 @@ * (event CDATA #IMPLIED) * (for %URI; #IMPLIED) */ - else if (elementName.equals(HTML40Namespace.ElementName.TEXTAREA)){ + else if (elementName.equals(HTML40Namespace.ElementName.SCRIPT)){ String[] names = {ATTR_NAME_CHARSET, ATTR_NAME_SRC, ATTR_NAME_DEFER}; getDeclarations(attributes, Arrays.asList(names).iterator());