[html5] r6681 - [giow] (2) Try to improve compat for legacy <table border='' rules='' and frames [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Oct 13 17:35:26 PDT 2011


Author: ianh
Date: 2011-10-13 17:35:25 -0700 (Thu, 13 Oct 2011)
New Revision: 6681

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Try to improve compat for legacy <table border='' rules='' and frames=''> attributes.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=13915

Modified: complete.html
===================================================================
--- complete.html	2011-10-13 17:03:23 UTC (rev 6680)
+++ complete.html	2011-10-14 00:35:25 UTC (rev 6681)
@@ -240,7 +240,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 13 October 2011</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 14 October 2011</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -93126,12 +93126,9 @@
 table {
   border-spacing: 2px;
   border-collapse: separate;
-  border-style: outset;
-  border-width: 0;
   text-indent: initial;
 }
-
-td, th { padding: 1px; border-style: inset; }
+td, th { padding: 1px; }
 th { font-weight: bold; }
 
 thead, tbody, tfoot, table > tr { vertical-align: middle; }
@@ -93221,20 +93218,26 @@
 
 table[rules=none i], table[rules=groups i], table[rules=rows i],
 table[rules=cols i], table[rules=all i] {
-  border-style: none;
+  border-style: hidden;
   border-collapse: collapse;
 }
+table[border] { border-style: outset; }
+table[frame=void i] { border-style: hidden; }
+table[frame=above i] { border-style: outset hidden hidden hidden; }
+table[frame=below i] { border-style: hidden hidden outset hidden; }
+table[frame=hsides i] { border-style: outset hidden outset hidden; }
+table[frame=lhs i] { border-style: hidden hidden hidden outset; }
+table[frame=rhs i] { border-style: hidden outset hidden hidden; }
+table[frame=vsides i] { border-style: hidden outset; }
+table[frame=box i], table[frame=border i] { border-style: outset; }
 
-table[frame=void i] { border-style: hidden hidden hidden hidden; }
-table[frame=above i] { border-style: solid hidden hidden hidden; }
-table[frame=below i] { border-style: hidden hidden solid hidden; }
-table[frame=hsides i] { border-style: solid hidden solid hidden; }
-table[frame=lhs i] { border-style: hidden hidden hidden solid; }
-table[frame=rhs i] { border-style: hidden solid hidden hidden; }
-table[frame=vsides i] { border-style: hidden solid hidden solid; }
-table[frame=box i],
-table[frame=border i] { border-style: solid solid solid solid; }
-
+table[border] > tr > td, table[border] > tr > th,
+table[border] > thead > tr > td, table[border] > thead > tr > th,
+table[border] > tbody > tr > td, table[border] > tbody > tr > th,
+table[border] > tfoot > tr > td, table[border] > tfoot > tr > th {
+  border-width: 1px;
+  border-style: inset;
+}
 table[rules=none i] > tr > td, table[rules=none i] > tr > th,
 table[rules=none i] > thead > tr > td, table[rules=none i] > thead > tr > th,
 table[rules=none i] > tbody > tr > td, table[rules=none i] > tbody > tr > th,
@@ -93247,40 +93250,60 @@
 table[rules=rows i] > thead > tr > td, table[rules=rows i] > thead > tr > th,
 table[rules=rows i] > tbody > tr > td, table[rules=rows i] > tbody > tr > th,
 table[rules=rows i] > tfoot > tr > td, table[rules=rows i] > tfoot > tr > th {
+  border-width: 1px;
   border-style: none;
 }
-
-table[rules=groups i] > colgroup, table[rules=groups i] > thead,
-table[rules=groups i] > tbody, table[rules=groups i] > tfoot {
-  border-style: solid;
-}
-
-table[rules=rows i] > tr, table[rules=rows i] > thead > tr,
-table[rules=rows i] > tbody > tr, table[rules=rows i] > tfoot > tr {
-  border-style: solid;
-}
-
 table[rules=cols i] > tr > td, table[rules=cols i] > tr > th,
 table[rules=cols i] > thead > tr > td, table[rules=cols i] > thead > tr > th,
 table[rules=cols i] > tbody > tr > td, table[rules=cols i] > tbody > tr > th,
 table[rules=cols i] > tfoot > tr > td, table[rules=cols i] > tfoot > tr > th {
-  border-style: none solid none solid;
+  border-width: 1px;
+  border-style: none solid;
 }
-
 table[rules=all i] > tr > td, table[rules=all i] > tr > th,
 table[rules=all i] > thead > tr > td, table[rules=all i] > thead > tr > th,
 table[rules=all i] > tbody > tr > td, table[rules=all i] > tbody > tr > th,
 table[rules=all i] > tfoot > tr > td, table[rules=all i] > tfoot > tr > th {
+  border-width: 1px;
   border-style: solid;
 }
 
-table[border] > tr > td, table[border] > tr > th,
-table[border] > thead > tr > td, table[border] > thead > tr > th,
-table[border] > tbody > tr > td, table[border] > tbody > tr > th,
-table[border] > tfoot > tr > td, table[border] > tfoot > tr > th {
-  border-width: 1px;
+table[rules=groups i] > colgroup {
+  border-left-width: 1px;
+  border-left-style: solid;
+  border-right-width: 1px;
+  border-right-style: solid;
+}
+table[rules=groups i] > thead,
+table[rules=groups i] > tbody,
+table[rules=groups i] > tfoot {
+  border-top-width: 1px;
+  border-top-style: solid;
+  border-bottom-width: 1px;
+  border-bottom-style: solid;
+}
+
+table[rules=rows i] > tr, table[rules=rows i] > thead > tr,
+table[rules=rows i] > tbody > tr, table[rules=rows i] > tfoot > tr {
+  border-top-width: 1px;
+  border-top-style: solid;
+  border-bottom-width: 1px;
+  border-bottom-style: solid;
 }</pre>
 
+<!--
+ Demos that the above must explain:
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1191
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1194
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1195
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1196
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1197
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1199
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1200
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1201
+-->
+
+
   <p>In <a href=#quirks-mode>quirks mode</a>, the following rules are also
   expected to apply:</p>
 

Modified: index
===================================================================
--- index	2011-10-13 17:03:23 UTC (rev 6680)
+++ index	2011-10-14 00:35:25 UTC (rev 6681)
@@ -240,7 +240,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 13 October 2011</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 14 October 2011</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -93126,12 +93126,9 @@
 table {
   border-spacing: 2px;
   border-collapse: separate;
-  border-style: outset;
-  border-width: 0;
   text-indent: initial;
 }
-
-td, th { padding: 1px; border-style: inset; }
+td, th { padding: 1px; }
 th { font-weight: bold; }
 
 thead, tbody, tfoot, table > tr { vertical-align: middle; }
@@ -93221,20 +93218,26 @@
 
 table[rules=none i], table[rules=groups i], table[rules=rows i],
 table[rules=cols i], table[rules=all i] {
-  border-style: none;
+  border-style: hidden;
   border-collapse: collapse;
 }
+table[border] { border-style: outset; }
+table[frame=void i] { border-style: hidden; }
+table[frame=above i] { border-style: outset hidden hidden hidden; }
+table[frame=below i] { border-style: hidden hidden outset hidden; }
+table[frame=hsides i] { border-style: outset hidden outset hidden; }
+table[frame=lhs i] { border-style: hidden hidden hidden outset; }
+table[frame=rhs i] { border-style: hidden outset hidden hidden; }
+table[frame=vsides i] { border-style: hidden outset; }
+table[frame=box i], table[frame=border i] { border-style: outset; }
 
-table[frame=void i] { border-style: hidden hidden hidden hidden; }
-table[frame=above i] { border-style: solid hidden hidden hidden; }
-table[frame=below i] { border-style: hidden hidden solid hidden; }
-table[frame=hsides i] { border-style: solid hidden solid hidden; }
-table[frame=lhs i] { border-style: hidden hidden hidden solid; }
-table[frame=rhs i] { border-style: hidden solid hidden hidden; }
-table[frame=vsides i] { border-style: hidden solid hidden solid; }
-table[frame=box i],
-table[frame=border i] { border-style: solid solid solid solid; }
-
+table[border] > tr > td, table[border] > tr > th,
+table[border] > thead > tr > td, table[border] > thead > tr > th,
+table[border] > tbody > tr > td, table[border] > tbody > tr > th,
+table[border] > tfoot > tr > td, table[border] > tfoot > tr > th {
+  border-width: 1px;
+  border-style: inset;
+}
 table[rules=none i] > tr > td, table[rules=none i] > tr > th,
 table[rules=none i] > thead > tr > td, table[rules=none i] > thead > tr > th,
 table[rules=none i] > tbody > tr > td, table[rules=none i] > tbody > tr > th,
@@ -93247,40 +93250,60 @@
 table[rules=rows i] > thead > tr > td, table[rules=rows i] > thead > tr > th,
 table[rules=rows i] > tbody > tr > td, table[rules=rows i] > tbody > tr > th,
 table[rules=rows i] > tfoot > tr > td, table[rules=rows i] > tfoot > tr > th {
+  border-width: 1px;
   border-style: none;
 }
-
-table[rules=groups i] > colgroup, table[rules=groups i] > thead,
-table[rules=groups i] > tbody, table[rules=groups i] > tfoot {
-  border-style: solid;
-}
-
-table[rules=rows i] > tr, table[rules=rows i] > thead > tr,
-table[rules=rows i] > tbody > tr, table[rules=rows i] > tfoot > tr {
-  border-style: solid;
-}
-
 table[rules=cols i] > tr > td, table[rules=cols i] > tr > th,
 table[rules=cols i] > thead > tr > td, table[rules=cols i] > thead > tr > th,
 table[rules=cols i] > tbody > tr > td, table[rules=cols i] > tbody > tr > th,
 table[rules=cols i] > tfoot > tr > td, table[rules=cols i] > tfoot > tr > th {
-  border-style: none solid none solid;
+  border-width: 1px;
+  border-style: none solid;
 }
-
 table[rules=all i] > tr > td, table[rules=all i] > tr > th,
 table[rules=all i] > thead > tr > td, table[rules=all i] > thead > tr > th,
 table[rules=all i] > tbody > tr > td, table[rules=all i] > tbody > tr > th,
 table[rules=all i] > tfoot > tr > td, table[rules=all i] > tfoot > tr > th {
+  border-width: 1px;
   border-style: solid;
 }
 
-table[border] > tr > td, table[border] > tr > th,
-table[border] > thead > tr > td, table[border] > thead > tr > th,
-table[border] > tbody > tr > td, table[border] > tbody > tr > th,
-table[border] > tfoot > tr > td, table[border] > tfoot > tr > th {
-  border-width: 1px;
+table[rules=groups i] > colgroup {
+  border-left-width: 1px;
+  border-left-style: solid;
+  border-right-width: 1px;
+  border-right-style: solid;
+}
+table[rules=groups i] > thead,
+table[rules=groups i] > tbody,
+table[rules=groups i] > tfoot {
+  border-top-width: 1px;
+  border-top-style: solid;
+  border-bottom-width: 1px;
+  border-bottom-style: solid;
+}
+
+table[rules=rows i] > tr, table[rules=rows i] > thead > tr,
+table[rules=rows i] > tbody > tr, table[rules=rows i] > tfoot > tr {
+  border-top-width: 1px;
+  border-top-style: solid;
+  border-bottom-width: 1px;
+  border-bottom-style: solid;
 }</pre>
 
+<!--
+ Demos that the above must explain:
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1191
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1194
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1195
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1196
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1197
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1199
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1200
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1201
+-->
+
+
   <p>In <a href=#quirks-mode>quirks mode</a>, the following rules are also
   expected to apply:</p>
 

Modified: source
===================================================================
--- source	2011-10-13 17:03:23 UTC (rev 6680)
+++ source	2011-10-14 00:35:25 UTC (rev 6681)
@@ -105552,12 +105552,9 @@
 table {
   border-spacing: 2px;
   border-collapse: separate;
-  border-style: outset;
-  border-width: 0;
   text-indent: initial;
 }
-
-td, th { padding: 1px; border-style: inset; }
+td, th { padding: 1px; }
 th { font-weight: bold; }
 
 thead, tbody, tfoot, table > tr { vertical-align: middle; }
@@ -105647,20 +105644,26 @@
 
 table[rules=none i], table[rules=groups i], table[rules=rows i],
 table[rules=cols i], table[rules=all i] {
-  border-style: none;
+  border-style: hidden;
   border-collapse: collapse;
 }
+table[border] { border-style: outset; }
+table[frame=void i] { border-style: hidden; }
+table[frame=above i] { border-style: outset hidden hidden hidden; }
+table[frame=below i] { border-style: hidden hidden outset hidden; }
+table[frame=hsides i] { border-style: outset hidden outset hidden; }
+table[frame=lhs i] { border-style: hidden hidden hidden outset; }
+table[frame=rhs i] { border-style: hidden outset hidden hidden; }
+table[frame=vsides i] { border-style: hidden outset; }
+table[frame=box i], table[frame=border i] { border-style: outset; }
 
-table[frame=void i] { border-style: hidden hidden hidden hidden; }
-table[frame=above i] { border-style: solid hidden hidden hidden; }
-table[frame=below i] { border-style: hidden hidden solid hidden; }
-table[frame=hsides i] { border-style: solid hidden solid hidden; }
-table[frame=lhs i] { border-style: hidden hidden hidden solid; }
-table[frame=rhs i] { border-style: hidden solid hidden hidden; }
-table[frame=vsides i] { border-style: hidden solid hidden solid; }
-table[frame=box i],
-table[frame=border i] { border-style: solid solid solid solid; }
-
+table[border] > tr > td, table[border] > tr > th,
+table[border] > thead > tr > td, table[border] > thead > tr > th,
+table[border] > tbody > tr > td, table[border] > tbody > tr > th,
+table[border] > tfoot > tr > td, table[border] > tfoot > tr > th {
+  border-width: 1px;
+  border-style: inset;
+}
 table[rules=none i] > tr > td, table[rules=none i] > tr > th,
 table[rules=none i] > thead > tr > td, table[rules=none i] > thead > tr > th,
 table[rules=none i] > tbody > tr > td, table[rules=none i] > tbody > tr > th,
@@ -105673,40 +105676,60 @@
 table[rules=rows i] > thead > tr > td, table[rules=rows i] > thead > tr > th,
 table[rules=rows i] > tbody > tr > td, table[rules=rows i] > tbody > tr > th,
 table[rules=rows i] > tfoot > tr > td, table[rules=rows i] > tfoot > tr > th {
+  border-width: 1px;
   border-style: none;
 }
-
-table[rules=groups i] > colgroup, table[rules=groups i] > thead,
-table[rules=groups i] > tbody, table[rules=groups i] > tfoot {
-  border-style: solid;
-}
-
-table[rules=rows i] > tr, table[rules=rows i] > thead > tr,
-table[rules=rows i] > tbody > tr, table[rules=rows i] > tfoot > tr {
-  border-style: solid;
-}
-
 table[rules=cols i] > tr > td, table[rules=cols i] > tr > th,
 table[rules=cols i] > thead > tr > td, table[rules=cols i] > thead > tr > th,
 table[rules=cols i] > tbody > tr > td, table[rules=cols i] > tbody > tr > th,
 table[rules=cols i] > tfoot > tr > td, table[rules=cols i] > tfoot > tr > th {
-  border-style: none solid none solid;
+  border-width: 1px;
+  border-style: none solid;
 }
-
 table[rules=all i] > tr > td, table[rules=all i] > tr > th,
 table[rules=all i] > thead > tr > td, table[rules=all i] > thead > tr > th,
 table[rules=all i] > tbody > tr > td, table[rules=all i] > tbody > tr > th,
 table[rules=all i] > tfoot > tr > td, table[rules=all i] > tfoot > tr > th {
+  border-width: 1px;
   border-style: solid;
 }
 
-table[border] > tr > td, table[border] > tr > th,
-table[border] > thead > tr > td, table[border] > thead > tr > th,
-table[border] > tbody > tr > td, table[border] > tbody > tr > th,
-table[border] > tfoot > tr > td, table[border] > tfoot > tr > th {
-  border-width: 1px;
+table[rules=groups i] > colgroup {
+  border-left-width: 1px;
+  border-left-style: solid;
+  border-right-width: 1px;
+  border-right-style: solid;
+}
+table[rules=groups i] > thead,
+table[rules=groups i] > tbody,
+table[rules=groups i] > tfoot {
+  border-top-width: 1px;
+  border-top-style: solid;
+  border-bottom-width: 1px;
+  border-bottom-style: solid;
+}
+
+table[rules=rows i] > tr, table[rules=rows i] > thead > tr,
+table[rules=rows i] > tbody > tr, table[rules=rows i] > tfoot > tr {
+  border-top-width: 1px;
+  border-top-style: solid;
+  border-bottom-width: 1px;
+  border-bottom-style: solid;
 }</pre>
 
+<!--
+ Demos that the above must explain:
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1191
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1194
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1195
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1196
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1197
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1199
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1200
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1201
+-->
+
+
   <p>In <span>quirks mode</span>, the following rules are also
   expected to apply:</p>
 




More information about the Commit-Watchers mailing list