diff options
author | Nitin Dahyabhai | 2017-11-07 23:07:31 +0000 |
---|---|---|
committer | Nitin Dahyabhai | 2017-11-08 00:31:04 +0000 |
commit | 84ed919917bc757930db10b55040ee9db21517de (patch) | |
tree | 26dd7536d96f90f996ca828892033f7a0ff0cbe4 | |
parent | 3be3552a32efe7625c0184f9fe03317080e700f0 (diff) | |
download | webtools.sourceediting-84ed919917bc757930db10b55040ee9db21517de.tar.gz webtools.sourceediting-84ed919917bc757930db10b55040ee9db21517de.tar.xz webtools.sourceediting-84ed919917bc757930db10b55040ee9db21517de.zip |
[462343] Unrecognized muted attribute for video tag
2 files changed, 10 insertions, 2 deletions
diff --git a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/contentmodel/HedMediaElement.java b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/contentmodel/HedMediaElement.java index d36aa40079..c5fdfe256a 100644 --- a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/contentmodel/HedMediaElement.java +++ b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/contentmodel/HedMediaElement.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2011 IBM Corporation and others. + * Copyright (c) 2010, 2017 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -39,6 +39,7 @@ class HedMediaElement extends HTMLElemDeclImpl { * (autoplay %ENUM; #IMPLIED) * (loop %ENUM; #IMPLIED) * (controls %MediaType; #IMPLIED) + * (muted %MediaType; #IMPLIED) * Global attributes */ protected void createAttributeDeclarations() { @@ -87,7 +88,13 @@ class HedMediaElement extends HTMLElemDeclImpl { attr = new HTMLAttrDeclImpl(HTML50Namespace.ATTR_NAME_CONTROLS, atype, CMAttributeDeclaration.OPTIONAL); attributes.putNamedItem(HTML50Namespace.ATTR_NAME_CONTROLS, attr); - + // (muted (boolean) #IMPLIED) + atype = new HTMLCMDataTypeImpl(CMDataType.ENUM); + String[] mutedValues = {HTML50Namespace.ATTR_NAME_MUTED}; + atype.setEnumValues(mutedValues); + attr = new HTMLAttrDeclImpl(HTML50Namespace.ATTR_NAME_MUTED, atype, CMAttributeDeclaration.OPTIONAL); + attributes.putNamedItem(HTML50Namespace.ATTR_NAME_MUTED, attr); + // global attributes attributeCollection.getAttrs(attributes); } diff --git a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/provisional/HTML50Namespace.java b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/provisional/HTML50Namespace.java index 0f48d426ce..d99d4e3f8a 100644 --- a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/provisional/HTML50Namespace.java +++ b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/provisional/HTML50Namespace.java @@ -133,6 +133,7 @@ public interface HTML50Namespace extends HTML40Namespace { String ATTR_NAME_AUTOPLAY = "autoplay"; // %mediaElement; //$NON-NLS-1$ String ATTR_NAME_LOOP = "loop"; // %mediaElement; //$NON-NLS-1$ String ATTR_NAME_CONTROLS = "controls"; // %mediaElement; //$NON-NLS-1$ + String ATTR_NAME_MUTED = "muted"; // %mediaElement; //$NON-NLS-1$ String ATTR_NAME_POSTER = "poster"; // %video; //$NON-NLS-1$ String ATTR_NAME_OPEN = "open"; // details //$NON-NLS-1$ String ATTR_NAME_PUBDATE = "pubdate"; //time //$NON-NLS-1$ |