diff options
author | nsandonato | 2010-09-29 14:20:36 +0000 |
---|---|---|
committer | nsandonato | 2010-09-29 14:20:36 +0000 |
commit | 6dd9fcafd5b68a20d5f19bece29b61ef9582de22 (patch) | |
tree | bb2f72a5f8d188cdfc6c63420feb18f4a9980256 /bundles/org.eclipse.wst.html.core/src/org | |
parent | 9736130837ff88be9ac9d92436b18a5bd39d4d45 (diff) | |
download | webtools.sourceediting-6dd9fcafd5b68a20d5f19bece29b61ef9582de22.tar.gz webtools.sourceediting-6dd9fcafd5b68a20d5f19bece29b61ef9582de22.tar.xz webtools.sourceediting-6dd9fcafd5b68a20d5f19bece29b61ef9582de22.zip |
[326542] [content model] target attribute in <a> tag incorrectly flagged as warning in HTML5 page
Diffstat (limited to 'bundles/org.eclipse.wst.html.core/src/org')
-rw-r--r-- | bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/contentmodel/HTML5AttributeCollection.java | 8 |
1 files changed, 1 insertions, 7 deletions
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 801dbdff43..155b67a2bb 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 @@ public class HTML5AttributeCollection extends AttributeCollection implements HTM * (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 @@ public class HTML5AttributeCollection extends AttributeCollection implements HTM 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); |