Author: yradtsevich
Date: 2011-05-13 11:32:15 -0400 (Fri, 13 May 2011)
New Revision: 31297
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.html/templates/vpe-templates-html.xml
trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css
Log:
https://issues.jboss.org/browse/JBIDE-8480 : HTML 5 support in Visual Page Editor
- added ~15 new HTML5 templates
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css 2011-05-13 15:04:10 UTC
(rev 31296)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css 2011-05-13 15:32:15 UTC
(rev 31297)
@@ -362,8 +362,16 @@
a[\_moz_anonclass="mozTableRemoveRow"]:active {
background-image: url("resource://gre/res/table-remove-row-active.gif");
-}
+}
+mark {
+ background-color: yellow;/*the same color as in XULRunner 2.0*/
+}
+
+section {
+ display: block;
+}
+
/*JBIDE-3995 #1*/
select div {
display: inline;
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.html/templates/vpe-templates-html.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.html/templates/vpe-templates-html.xml 2011-05-13
15:04:10 UTC (rev 31296)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.html/templates/vpe-templates-html.xml 2011-05-13
15:32:15 UTC (rev 31297)
@@ -143,6 +143,12 @@
</vpe:dnd>
</vpe:template>
</vpe:tag>
+
+ <vpe:tag name="audio" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy
attrs="id,style,class,dir,hidden,autoplay,controls,loop,preload,src" />
+ </vpe:template>
+ </vpe:tag>
<vpe:tag name="b" case-sensitive="no">
<vpe:template children="yes" modify="yes">
@@ -615,6 +621,12 @@
</vpe:textFormatting>
</vpe:template>
</vpe:tag>
+
+ <vpe:tag name="details" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir,hidden,open" />
+ </vpe:template>
+ </vpe:tag>
<vpe:tag name="dfn" case-sensitive="no">
<vpe:template children="yes" modify="yes">
@@ -1442,6 +1454,12 @@
</vpe:template>
</vpe:tag>
+ <vpe:tag name="mark" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir,hidden" />
+ </vpe:template>
+ </vpe:tag>
+
<vpe:tag name="menu" case-sensitive="no">
<vpe:template children="yes" modify="no">
<vpe:copy attrs="id,style,class,dir" />
@@ -1453,7 +1471,19 @@
<vpe:tag name="meta" case-sensitive="no">
<vpe:template children="no" modify="no" />
</vpe:tag>
+
+ <vpe:tag name="meter" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy
attrs="id,style,class,dir,hidden,form,high,low,max,min,optimum,value" />
+ </vpe:template>
+ </vpe:tag>
+ <vpe:tag name="nav" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir,hidden" />
+ </vpe:template>
+ </vpe:tag>
+
<vpe:tag name="nobr" case-sensitive="no">
<vpe:template children="yes" modify="no" >
<vpe:copy />
@@ -1522,6 +1552,12 @@
<vpe:copy attrs="id,style,class,value,label,dir,disabled,selected" />
</vpe:template>
</vpe:tag>
+
+ <vpe:tag name="output" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir,hidden,for,form,name" />
+ </vpe:template>
+ </vpe:tag>
<vpe:tag name="p" case-sensitive="no">
<vpe:template children="yes" modify="yes">
@@ -1592,6 +1628,12 @@
</vpe:template>
</vpe:tag>
+ <vpe:tag name="progress" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir,hidden,max,value" />
+ </vpe:template>
+ </vpe:tag>
+
<vpe:tag name="q" case-sensitive="no">
<vpe:template children="yes" modify="yes">
<vpe:copy attrs="id,style,class,dir" />
@@ -1613,6 +1655,24 @@
</vpe:textFormatting>
</vpe:template>
</vpe:tag>
+
+ <vpe:tag name="rp" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir,hidden" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="rt" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir,hidden" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="ruby" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir,hidden" />
+ </vpe:template>
+ </vpe:tag>
<vpe:tag name="s" case-sensitive="no">
<vpe:template children="yes" modify="yes">
@@ -1676,6 +1736,12 @@
<vpe:tag name="script" case-sensitive="no">
<vpe:template children="no" modify="no" />
</vpe:tag>
+
+ <vpe:tag name="section" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir,hidden" />
+ </vpe:template>
+ </vpe:tag>
<vpe:tag name="select" case-sensitive="no">
<vpe:template children="yes" modify="yes">
@@ -1744,6 +1810,12 @@
</vpe:textFormatting>
</vpe:template>
</vpe:tag>
+
+ <vpe:tag name="source" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir,hidden,media,src,type" />
+ </vpe:template>
+ </vpe:tag>
<vpe:tag name="span" case-sensitive="no">
<vpe:template children="yes" modify="yes">
@@ -1849,6 +1921,12 @@
</vpe:textFormatting>
</vpe:template>
</vpe:tag>
+
+ <vpe:tag name="summary" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir,hidden" />
+ </vpe:template>
+ </vpe:tag>
<vpe:tag name="sup" case-sensitive="no">
<vpe:template children="yes" modify="yes">
@@ -2076,6 +2154,12 @@
<vpe:tag name="title" case-sensitive="no">
<vpe:template children="no" modify="no" />
</vpe:tag>
+
+ <vpe:tag name="time" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir,hidden,datetime,pubdate" />
+ </vpe:template>
+ </vpe:tag>
<vpe:tag name="tr" case-sensitive="no">
<vpe:template children="yes" modify="yes">
@@ -2197,6 +2281,12 @@
</vpe:textFormatting>
</vpe:template>
</vpe:tag>
+
+ <vpe:tag name="video" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy
attrs="id,style,class,dir,hidden,audio,autoplay,controls,height,loop,poster,preload,src,width"
/>
+ </vpe:template>
+ </vpe:tag>
<vpe:tag name="#comment" case-sensitive="no">
<vpe:template children="no" modify="yes"