IDEA-24966 HTML select tag cannot have width attribute
authorunknown <Maxim.Mossienko@.Labs.IntelliJ.Net>
Wed, 7 Oct 2009 16:32:55 +0000 (20:32 +0400)
committerunknown <Maxim.Mossienko@.Labs.IntelliJ.Net>
Wed, 7 Oct 2009 16:32:55 +0000 (20:32 +0400)
xml/impl/resources/standardSchemas/xhtml1-transitional.xsd
xml/impl/src/com/intellij/codeInspection/htmlInspections/HtmlUnknownAttributeInspection.java

index 51b06414471682aae4996de8c281ac4ba728ab43..c77b53e8f56925d14179a65e5ea858b605dfef75 100644 (file)
     <xs:choice minOccurs="0" maxOccurs="unbounded">
       <xs:group ref="block"/>
       <xs:element ref="form"/>
+      <xs:element ref="embed"/>
       <xs:group ref="inline"/>
       <xs:group ref="misc"/>
     </xs:choice>
     </xs:complexType>
   </xs:element>
 
+  <xs:element name="embed">
+    <xs:complexType>
+      <xs:attribute name="alt" type="Text" />
+      <xs:attribute name="width" type="Length"/>
+      <xs:attribute name="height" type="Length"/>
+      <xs:attribute name="hidden" type="xs:boolean"/>
+      <xs:attribute name="pluginspage" type="URI"/>
+      <xs:attribute name="src" type="URI"/>
+      <xs:attribute name="type" type="xs:string"/>
+      <xs:attribute name="wmode" type="xs:string"/>
+    </xs:complexType>
+  </xs:element>
 </xs:schema>
\ No newline at end of file
index 6562bc6ec3e95a9f52db85443a32791ba189e472..288377c8709a57072bd7217f47a2f6227afcfc35 100644 (file)
@@ -31,7 +31,7 @@ public class HtmlUnknownAttributeInspection extends HtmlUnknownTagInspection {
   @NonNls public static final String ATTRIBUTE_SHORT_NAME = "HtmlUnknownAttribute";
 
   public HtmlUnknownAttributeInspection() {
-    super("type,wmode,src,width,height");
+    super("");
   }
 
   @Nls