Manually suppress redundant (auto-gen) IDL attribute info in Appendix A.
authorGary Kacmarcik <garykac@google.com>
Tue, 04 Jun 2013 13:19:06 -0700
changeset 419 92bc9a229da4
parent 418 4998aa3eb6a5
child 420 e922a8fff209
Manually suppress redundant (auto-gen) IDL attribute info in Appendix A.

respec generates these sections even though they contain no additional information.
html/DOM3-Events.html
html/override.css
--- a/html/DOM3-Events.html	Tue Jun 04 13:15:03 2013 -0700
+++ b/html/DOM3-Events.html	Tue Jun 04 13:19:06 2013 -0700
@@ -65,7 +65,7 @@
 		wgURI: ["http://www.w3.org/2008/webapps/"],
 		wgPublicList: "www-dom",
 		wgPatentURI: ["http://www.w3.org/2004/01/pp-impl/42538/status"],
-		maxTocLevel: 5
+		maxTocLevel: 3
 	};
 	</script>
 </head>
@@ -7814,17 +7814,23 @@
 
 			<section id="idl-interface-Event-initializers">
 				<h3>Initializers for interface Event</h3>
-				<dl class="idl" title="[Constructor(DOMString typeArg, optional EventInit eventInitDict] partial interface Event">
-				</dl>
-			
 				<dl class="idl" title="dictionary EventInit">
 					<dt>boolean bubbles = false</dt><dd></dd>
 					<dt>boolean cancelable = false</dt><dd></dd>
 				</dl>
+				<dl class="idl" title="[Constructor(DOMString typeArg, optional EventInit eventInitDict] partial interface Event">
+				</dl>
 			</section>
 			
 			<section id="idl-interface-CustomEvent-initializers">
 				<h3>Initializers for interface CustomEvent</h3>
+				<dl class="idl" title="dictionary CustomEventInit">
+					<!-- Attributes from Event -->
+					<dt>boolean bubbles = false</dt><dd></dd>
+					<dt>boolean cancelable = false</dt><dd></dd>
+					<!-- Attributes from CustomEvent -->
+					<dt>any detail = null</dt><dd></dd>
+				</dl>
 				<dl class="idl" title="[Constructor(DOMString typeArg, optional CustomEventInit customEventInitDict] partial interface CustomEvent">
 					<dt>// Originally introduced (and deprecated) in DOM Level 3</dt>
 					<dd></dd>
@@ -7850,21 +7856,10 @@
 						</dl>
 					</dd>
 				</dl>
-				
-				<dl class="idl" title="dictionary CustomEventInit">
-					<!-- Attributes from Event -->
-					<dt>boolean bubbles = false</dt><dd></dd>
-					<dt>boolean cancelable = false</dt><dd></dd>
-					<!-- Attributes from CustomEvent -->
-					<dt>any detail = null</dt><dd></dd>
-				</dl>
 			</section>
 
 			<section id="idl-interface-UIEvent-initializers">
 				<h3>Initializers for interface UIEvent</h3>
-				<dl class="idl" title="[Constructor(DOMString typeArg, optional UIEventInit uiEventInitDict] partial interface UIEvent">
-				</dl>
-				
 				<dl class="idl" title="dictionary UIEventInit">
 					<!-- Attributes from Event -->
 					<dt>boolean bubbles = false</dt><dd></dd>
@@ -7873,10 +7868,22 @@
 					<dt>AbstractView? view = null</dt><dd></dd>
 					<dt>long detail = 0</dt><dd></dd>
 				</dl>
+				<dl class="idl" title="[Constructor(DOMString typeArg, optional UIEventInit uiEventInitDict] partial interface UIEvent">
+				</dl>
 			</section>
 
 			<section id="idl-interface-FocusEvent-initializers">
 				<h3>Initializers for interface FocusEvent</h3>
+				<dl class="idl" title="dictionary FocusEventInit">
+					<!-- Attributes from Event -->
+					<dt>boolean bubbles = false</dt><dd></dd>
+					<dt>boolean cancelable = false</dt><dd></dd>
+					<!-- Attributes from UIEvent -->
+					<dt>AbstractView? view = null</dt><dd></dd>
+					<dt>long detail = 0</dt><dd></dd>
+					<!-- Attributes from FocusEvent -->
+					<dt>EventTarget? relatedTarget = null</dt><dd></dd>
+				</dl>
 				<dl class="idl" title="[Constructor(DOMString typeArg, optional FocusEventInit focusEventInitDict] partial interface FocusEvent">
 					<dt>// Originally introduced (and deprecated) in DOM Level 3</dt>
 					<dd></dd>
@@ -7908,24 +7915,10 @@
 						</dl>
 					</dd>
 				</dl>
-				
-				<dl class="idl" title="dictionary FocusEventInit">
-					<!-- Attributes from Event -->
-					<dt>boolean bubbles = false</dt><dd></dd>
-					<dt>boolean cancelable = false</dt><dd></dd>
-					<!-- Attributes from UIEvent -->
-					<dt>AbstractView? view = null</dt><dd></dd>
-					<dt>long detail = 0</dt><dd></dd>
-					<!-- Attributes from FocusEvent -->
-					<dt>EventTarget? relatedTarget = null</dt><dd></dd>
-				</dl>
 			</section>
 
 			<section id="idl-interface-MouseEvent-initializers">
 				<h3>Initializers for interface MouseEvent</h3>
-				<dl class="idl" title="[Constructor(DOMString typeArg, optional MouseEventInit mouseEventInitDict] partial interface UIEvent">
-				</dl>
-				
 				<dl class="idl" title="dictionary MouseEventInit">
 					<!-- Attributes from Event -->
 					<dt>boolean bubbles = false</dt><dd></dd>
@@ -7947,10 +7940,37 @@
 					<dt>unsigned short buttons = 0</dt><dd></dd>
 					<dt>EventTarget? relatedTarget = null</dt><dd></dd>
 				</dl>
+				<dl class="idl" title="[Constructor(DOMString typeArg, optional MouseEventInit mouseEventInitDict] partial interface UIEvent">
+				</dl>
 			</section>
 
 			<section id="idl-interface-WheelEvent-initializers">
 				<h3>Initializers for interface WheelEvent</h3>
+				<dl class="idl" title="dictionary WheelEventInit">
+					<!-- Attributes from Event -->
+					<dt>boolean bubbles = false</dt><dd></dd>
+					<dt>boolean cancelable = false</dt><dd></dd>
+					<!-- Attributes from UIEvent -->
+					<dt>AbstractView? view = null</dt><dd></dd>
+					<dt>long detail = 0</dt><dd></dd>
+					<!-- Attributes from MouseEvent -->
+					<dt>long screenX = 0</dt><dd></dd>
+					<dt>long screenY = 0</dt><dd></dd>
+					<dt>long clientX = 0</dt><dd></dd>
+					<dt>long clientY = 0</dt><dd></dd>
+					<dt>boolean ctrlKey = false</dt><dd></dd>
+					<dt>boolean shiftKey = false</dt><dd></dd>
+					<dt>boolean altKey = false</dt><dd></dd>
+					<dt>boolean metaKey = false</dt><dd></dd>
+					<dt>unsigned short button = 0</dt><dd></dd>
+					<dt>unsigned short buttons = 0</dt><dd></dd>
+					<dt>EventTarget? relatedTarget = null</dt><dd></dd>
+					<!-- Attributes from WheelEvent -->
+					<dt>double deltaX = 0.0</dt><dd></dd>
+					<dt>double deltaY = 0.0</dt><dd></dd>
+					<dt>double deltaZ = 0.0</dt><dd></dd>
+					<dt>unsigned long deltaMode = 0</dt><dd></dd>
+				</dl>
 				<dl class="idl" title="[Constructor(DOMString typeArg, optional WheelEventInit wheelEventInitDict] partial interface WheelEvent">
 					<dt>// Originally introduced (and deprecated) in DOM Level 3</dt>
 					<dd></dd>
@@ -8017,36 +8037,32 @@
 						</dl>
 					</dd>
 				</dl>
-				
-				<dl class="idl" title="dictionary WheelEventInit">
+			</section>
+
+			<section id="idl-interface-KeyboardEvent-initializers">
+				<h3>Initializers for interface KeyboardEvent</h3>
+				<dl class="idl" title="dictionary KeyboardEventInit">
 					<!-- Attributes from Event -->
 					<dt>boolean bubbles = false</dt><dd></dd>
 					<dt>boolean cancelable = false</dt><dd></dd>
 					<!-- Attributes from UIEvent -->
 					<dt>AbstractView? view = null</dt><dd></dd>
 					<dt>long detail = 0</dt><dd></dd>
-					<!-- Attributes from MouseEvent -->
-					<dt>long screenX = 0</dt><dd></dd>
-					<dt>long screenY = 0</dt><dd></dd>
-					<dt>long clientX = 0</dt><dd></dd>
-					<dt>long clientY = 0</dt><dd></dd>
+					<!-- Attributes from KeyboardEvent -->
+					<dt>DOMString char = ""</dt><dd></dd>
+					<dt>DOMString key = ""</dt><dd></dd>
+					<dt>unsigned long location = 0</dt><dd></dd>
 					<dt>boolean ctrlKey = false</dt><dd></dd>
 					<dt>boolean shiftKey = false</dt><dd></dd>
 					<dt>boolean altKey = false</dt><dd></dd>
 					<dt>boolean metaKey = false</dt><dd></dd>
-					<dt>unsigned short button = 0</dt><dd></dd>
-					<dt>unsigned short buttons = 0</dt><dd></dd>
-					<dt>EventTarget? relatedTarget = null</dt><dd></dd>
-					<!-- Attributes from WheelEvent -->
-					<dt>double deltaX = 0.0</dt><dd></dd>
-					<dt>double deltaY = 0.0</dt><dd></dd>
-					<dt>double deltaZ = 0.0</dt><dd></dd>
-					<dt>unsigned long deltaMode = 0</dt><dd></dd>
+					<dt>boolean repeat = false</dt><dd></dd>
+					<dt>DOMString locale = ""</dt><dd></dd>
+					<!-- Legacy attributes for KeyboardEvent -->
+					<dt>unsigned long charCode = 0</dt><dd></dd>
+					<dt>unsigned long keyCode = 0</dt><dd></dd>
+					<dt>unsigned long which = 0</dt><dd></dd>
 				</dl>
-			</section>
-
-			<section id="idl-interface-KeyboardEvent-initializers">
-				<h3>Initializers for interface KeyboardEvent</h3>
 				<dl class="idl" title="[Constructor(DOMString typeArg, optional KeyboardEventInit keyboardEventInitDict] partial interface KeyboardEvent">
 					<dt>// Originally introduced (and deprecated) in DOM Level 3</dt>
 					<dd></dd>
@@ -8096,33 +8112,21 @@
 						</dl>
 					</dd>
 				</dl>
-				
-				<dl class="idl" title="dictionary KeyboardEventInit">
+			</section>
+
+			<section id="idl-interface-CompositionEvent-initializers">
+				<h3>Initializers for interface CompositionEvent</h3>
+				<dl class="idl" title="dictionary CompositionEventInit">
 					<!-- Attributes from Event -->
 					<dt>boolean bubbles = false</dt><dd></dd>
 					<dt>boolean cancelable = false</dt><dd></dd>
 					<!-- Attributes from UIEvent -->
 					<dt>AbstractView? view = null</dt><dd></dd>
 					<dt>long detail = 0</dt><dd></dd>
-					<!-- Attributes from KeyboardEvent -->
-					<dt>DOMString char = ""</dt><dd></dd>
-					<dt>DOMString key = ""</dt><dd></dd>
-					<dt>unsigned long location = 0</dt><dd></dd>
-					<dt>boolean ctrlKey = false</dt><dd></dd>
-					<dt>boolean shiftKey = false</dt><dd></dd>
-					<dt>boolean altKey = false</dt><dd></dd>
-					<dt>boolean metaKey = false</dt><dd></dd>
-					<dt>boolean repeat = false</dt><dd></dd>
+					<!-- Attributes from CompositionEvent -->
+					<dt>DOMString? data = null</dt><dd></dd>
 					<dt>DOMString locale = ""</dt><dd></dd>
-					<!-- Legacy attributes for KeyboardEvent -->
-					<dt>unsigned long charCode = 0</dt><dd></dd>
-					<dt>unsigned long keyCode = 0</dt><dd></dd>
-					<dt>unsigned long which = 0</dt><dd></dd>
 				</dl>
-			</section>
-
-			<section id="idl-interface-CompositionEvent-initializers">
-				<h3>Initializers for interface CompositionEvent</h3>
 				<dl class="idl" title="[Constructor(DOMString typeArg, optional CompositionEventInit compositionEventInitDict] partial interface CompositionEvent">
 					<dt>// Originally introduced (and deprecated) in DOM Level 3</dt>
 					<dd></dd>
@@ -8155,18 +8159,6 @@
 						</dl>
 					</dd>
 				</dl>
-				
-				<dl class="idl" title="dictionary CompositionEventInit">
-					<!-- Attributes from Event -->
-					<dt>boolean bubbles = false</dt><dd></dd>
-					<dt>boolean cancelable = false</dt><dd></dd>
-					<!-- Attributes from UIEvent -->
-					<dt>AbstractView? view = null</dt><dd></dd>
-					<dt>long detail = 0</dt><dd></dd>
-					<!-- Attributes from CompositionEvent -->
-					<dt>DOMString? data = null</dt><dd></dd>
-					<dt>DOMString locale = ""</dt><dd></dd>
-				</dl>
 			</section>
 
 		</section>
--- a/html/override.css	Tue Jun 04 13:15:03 2013 -0700
+++ b/html/override.css	Tue Jun 04 13:19:06 2013 -0700
@@ -61,3 +61,43 @@
 	margin: -1em 0em 1em -1em;
 	padding: 0.2em 0.2em 0.1em 0.4em;
 }
+
+/* Suppress auto-generated IDL sections in the Appendix.
+   These tables simply restate the info in the IDL so they're not needed.
+ */
+
+#event-initializers > section > section > h5 {
+	display: none;
+}
+
+#idl-interface-Event-initializers > h4 + pre + section {
+	display: none;
+}
+
+#idl-interface-CustomEvent-initializers > h4 + pre + section {
+	display: none;
+}
+
+#idl-interface-UIEvent-initializers > h4 + pre + section {
+	display: none;
+}
+
+#idl-interface-FocusEvent-initializers > h4 + pre + section {
+	display: none;
+}
+
+#idl-interface-MouseEvent-initializers > h4 + pre + section {
+	display: none;
+}
+
+#idl-interface-WheelEvent-initializers > h4 + pre + section {
+	display: none;
+}
+
+#idl-interface-KeyboardEvent-initializers > h4 + pre + section {
+	display: none;
+}
+
+#idl-interface-CompositionEvent-initializers > h4 + pre + section {
+	display: none;
+}