html5/html-author/utils compare-template.html,1.1,1.2 compare.html,1.3,1.4 compare.py,1.2,1.3 elementdesc.txt,1.7,1.8

Update of /sources/public/html5/html-author/utils
In directory hutz:/tmp/cvs-serv6770/utils

Modified Files:
	compare-template.html compare.html compare.py elementdesc.txt 
Log Message:
Added colour coding to comparison table

Index: compare-template.html
===================================================================
RCS file: /sources/public/html5/html-author/utils/compare-template.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- compare-template.html	9 Mar 2009 14:17:01 -0000	1.1
+++ compare-template.html	9 Mar 2009 14:56:03 -0000	1.2
@@ -14,5 +14,5 @@
 			<td></td>
 			<td></td>
 		</tr>
-	</tbody>
+		</tbody>
 </table>
\ No newline at end of file

Index: elementdesc.txt
===================================================================
RCS file: /sources/public/html5/html-author/utils/elementdesc.txt,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- elementdesc.txt	9 Mar 2009 14:30:04 -0000	1.7
+++ elementdesc.txt	9 Mar 2009 14:56:03 -0000	1.8
@@ -84,7 +84,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [nav]
 desc=The <code>nav</code> element represents a section of a page containing primary navigation links to other pages or to parts within the page.
@@ -92,7 +92,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [article]
 desc=The <code>article</code> element represents an independent section of a document, page, or site. This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, or any other independent item of content.
@@ -100,7 +100,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [aside]
 desc=The <code>aside</code> element represents a section of a page that consists of content that is tangentially related to the content around the <code>aside</code> element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography.
@@ -108,7 +108,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [h1]
 desc=These elements define headers for their sections.
@@ -165,7 +165,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [footer]
 desc=The <code>footer</code> element represents a footer of a section, typically containing information such as who wrote it, links to related documents, and copyright notices.
@@ -173,7 +173,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [address]
 desc=The <code>address</code> element represents the contact information for the section it <a href="#applyToSection">applies</a> to. If it applies to <span>the body element</span>, then it instead applies to the document as a whole.
@@ -221,7 +221,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [blockquote]
 desc=The <code>blockquote</code> element represents a section that is quoted from another source.
@@ -333,7 +333,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [dfn]
 desc=The <code>dfn</code> element represents the defining instance of a term, where its definition is provided nearby.
@@ -358,7 +358,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [progress]
 desc=The <code>progress</code> element represents the completion progress of a task.
@@ -366,7 +366,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [meter]
 desc=The <code>meter</code> element represents a scalar measurement within a known range, or a fractional value.
@@ -374,7 +374,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [code]
 desc=The <code>code</code> element represents a fragment of computer code.
@@ -462,7 +462,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [rt]
 desc=The <code>rt</code> element marks the ruby text component of a ruby annotation.
@@ -470,7 +470,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [rp]
 desc=The <code>rp</code> element can be used to provide parentheses around a ruby text component of a ruby annotation, to be shown by user agents that don’t support ruby annotations.
@@ -478,7 +478,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [ins]
 desc=The <code>ins</code> element represents an addition to the document.
@@ -502,7 +502,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [img]
 desc=An <code>img</code> element represents an image.
@@ -526,7 +526,7 @@
 start=required
 end=empty
 status=active
-html4=-
+html4=none
 
 [object]
 desc=The <code>object</code> element can represent an external resource, which, depending on the type of the resource, will either be treated as an image, as a nested <span>browsing context</span>, or as an external resource to be processed by a <span>plugin</span>.
@@ -550,7 +550,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [audio]
 desc=An <code>audio</code> element represents a sound or audio stream.
@@ -558,7 +558,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [source]
 desc=The <code>source</code> element allows authors to specify multiple <span title="media resource">media resources</span> for <span title="media element">media elements</span>.
@@ -566,7 +566,7 @@
 start=required
 end=empty
 status=active
-html4=-
+html4=none
 
 [canvas]
 desc=The <code>canvas</code> element represents a resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, or other visual images on the fly.
@@ -574,7 +574,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [map]
 desc=The <code>map</code> element, in conjunction with any <code>area</code> element descendants, defines an <span>image map</span>.
@@ -726,7 +726,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [optgroup]
 desc=The <code>optgroup</code> element represents a group of <code>option</code> elements with a common label.
@@ -758,7 +758,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [details]
 desc=The <code>details</code> element represents additional information or controls which the user can obtain on demand.
@@ -766,7 +766,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [datagrid]
 desc=The <code><a href="#datagrid">datagrid</a></code> element <a href="#represents">represents</a> an interactive representation of tree, list, or tabular data.
@@ -774,7 +774,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [command]
 desc=The <code>command</code> element represents a command that the user can invoke.
@@ -782,7 +782,7 @@
 start=required
 end=empty
 status=active
-html4=-
+html4=none
 
 [bb]
 desc=The <code>bb</code> element represents a user agent command that the user can invoke.
@@ -790,7 +790,7 @@
 start=required
 end=required
 status=active
-html4=-
+html4=none
 
 [menu]
 desc=The <code>menu</code> element represents a list of commands.
@@ -852,7 +852,7 @@
 end=empty
 status=obsolete
 notes=Use the <code>audio</code> element.
-html4=-
+html4=none
 
 [big]
 desc=The <code>big</code> element 
@@ -870,7 +870,7 @@
 end=required
 status=obsolete
 notes=CSS provides an alternative with limited browser support, but note that blinking text is annoying.
-html4=-
+html4=none
 
 [center]
 desc=The <code>center</code> element 
@@ -924,7 +924,7 @@
 end=required
 status=obsolete
 notes=Use the <code>pre</code> element.
-html4=-
+html4=none
 
 [marquee]
 desc=The <code>marquee</code> element 
@@ -933,7 +933,7 @@
 end=required
 status=obsolete
 notes=Scripting or CSS animations can be used to simulate scrolling text.
-html4=-
+html4=none
 
 [nobr]
 desc=The <code>nobr</code> element 
@@ -942,7 +942,7 @@
 end=required
 status=obsolete
 notes=Use a semantically appropriate element with CSS for style.
-html4=-
+html4=none
 
 [noembed]
 desc=The <code>noembed</code> element 
@@ -951,7 +951,7 @@
 end=required
 status=obsolete
 notes=
-html4=-
+html4=none
 
 [noframes]
 desc=The <code>noframes</code> element 
@@ -978,7 +978,7 @@
 end=required
 status=obsolete
 notes=Use the <code>pre</code> element.
-html4=-
+html4=none
 
 [s]
 desc=The <code>s</code> element 
@@ -996,7 +996,7 @@
 end=required
 status=obsolete
 notes=Use CSS layout techniques.
-html4=-
+html4=none
 
 [strike]
 desc=The <code>strike</code> element 
@@ -1023,7 +1023,7 @@
 end=empty
 status=obsolete
 notes=
-html4=-
+html4=none
 
 [xmp]
 desc=The <code>xmp</code> element represents a block of preformatted text, in which structure is represented by typographic conventions rather than by elements.
@@ -1032,7 +1032,7 @@
 end=required
 status=obsolete
 notes=Use the <code>pre</code> element.
-html4=-
+html4=none
 
 
 

Index: compare.py
===================================================================
RCS file: /sources/public/html5/html-author/utils/compare.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- compare.py	9 Mar 2009 14:39:39 -0000	1.2
+++ compare.py	9 Mar 2009 14:56:03 -0000	1.3
@@ -25,11 +25,21 @@
 for element in elements:
     tr = copy.deepcopy(rowTemplate)
     tr[0][0].text = element
-    tr[1].text = config.get(element, "html4")
-    if (config.get(element, "status") == "active"):
-        tr[2].text = "yes"
+    html4 = config.get(element, "html4")
+    html5 = config.get(element, "status")
+
+    tr[1].set("class", html4)
+    if (html4 == "none"):
+        tr[1].text = "-"
     else:
+        tr[1].text = html4
+
+    tr[2].set("class", html5)
+    if (html5 == "obsolete"):
         tr[2].text = "-"
+    else:
+        tr[2].text = "yes"
+
     tr[3].text = config.get(element, "meaning")
     tbody.append(tr)
 

Index: compare.html
===================================================================
RCS file: /sources/public/html5/html-author/utils/compare.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- compare.html	9 Mar 2009 14:39:39 -0000	1.3
+++ compare.html	9 Mar 2009 14:56:03 -0000	1.4
@@ -10,758 +10,758 @@
 	<tbody>
 		<tr>
 			<td><code>a</code></td>
-			<td>strict</td>
-			<td>yes</td>
+			<td class="strict">strict</td>
+			<td class="active">yes</td>
 			<td>Hyperlink</td>
 		</tr>
 		<tr>
 			<td><code>abbr</code></td>
[...979 lines suppressed...]
+			<td class="active">yes</td>
 			<td>Video or movie</td>
 		</tr>
 		<tr>
 			<td><code>wbr</code></td>
-			<td>-</td>
-			<td>-</td>
+			<td class="none">-</td>
+			<td class="obsolete">-</td>
 			<td></td>
 		</tr>
 		<tr>
 			<td><code>xmp</code></td>
-			<td>-</td>
-			<td>-</td>
+			<td class="none">-</td>
+			<td class="obsolete">-</td>
 			<td>Preformatted text</td>
 		</tr>
 	</tbody>

Received on Monday, 9 March 2009 14:56:16 UTC