Use consistent formatting for "Introduced in DOM Level <n>" messages
authorGary Kacmarcik <garykac@google.com>
Tue, 04 Jun 2013 13:23:08 -0700
changeset 421 47248706ce47
parent 420 e922a8fff209
child 422 66f2a67a5de9
Use consistent formatting for "Introduced in DOM Level <n>" messages
html/DOM3-Events.html
html/override.css
--- a/html/DOM3-Events.html	Tue Jun 04 13:21:11 2013 -0700
+++ b/html/DOM3-Events.html	Tue Jun 04 13:23:08 2013 -0700
@@ -1009,7 +1009,7 @@
 		<section id="interface-Event">
 			<h2>Interface Event</h2>
 
-			<p><em>Introduced in DOM Level 2</em></p>
+			<p class="intro-dom">Introduced in DOM Level 2</p>
 
 			<p>The <code>Event</code> interface provides basic contextual information about an event to all registered <a class="def" href="#glossary-event-handler">event handlers</a>.
 				Specific events can also implement other derived interfaces, for example the <a href="#events-UIEvent"><code>UIEvent</code></a> and <a href="#events-MouseEvent">
@@ -1179,7 +1179,7 @@
 
 				<dt>void stopImmediatePropagation()</dt>
 				<dd>
-					<p><em>Introduced in DOM Level 3</em></p>
+					<p class="intro-dom">Introduced in DOM Level 3</p>
 
 					<p>Prevents all other <a class="def" href="#glossary-event-handler">event listeners</a> from being triggered for this event dispatch, including any remaining
 						<a class="def" href="#glossary-candidate-event-handlers">candiate event listeners</a>. Once it has been called, further calls to this method have no additional
@@ -1191,7 +1191,7 @@
 
 				<dt>readonly attribute boolean defaultPrevented</dt>
 				<dd>
-					<p><em>Introduced in DOM Level 3</em></p>
+					<p class="intro-dom">Introduced in DOM Level 3</p>
 					
 					<p>Used to indicate whether this event has been cancelled or not. <code>Event.defaultPrevented</code> <span class="must">must</span> return true if both <a href="#events-event-type-canCancel">
 						<code>Event.cancelable</code></a> is <code>true</code> and <a href="#events-event-type-preventDefault"><code>Event.preventDefault()</code></a> has been called for
@@ -1205,7 +1205,7 @@
 
 				<dt>readonly attribute boolean isTrusted</dt>
 				<dd>
-					<p><em>Introduced in DOM Level 3</em></p>
+					<p class="intro-dom">Introduced in DOM Level 3</p>
 
 					<p>Used to indicate whether this event was generated by the <a class="def" href="#glossary-user-agent">user agent</a> (trusted) or by script (untrusted).  See <a
 						href="#trusted-events">trusted events</a> for more details.</p>
@@ -1218,7 +1218,7 @@
 		<section id="interface-CustomEvent">
 			<h2>Interface CustomEvent</h2>
 
-			<p><em>Introduced in DOM Level 2</em></p>
+			<p class="intro-dom">Introduced in DOM Level 2</p>
 
 			<p>The <a href="#events-CustomEvent"><code>CustomEvent</code></a> interface is the <span class="recommended">recommended</span> interface for application-specific event types. Unlike the <a href="#events-Event">
 				<code>Event</code></a> interface, it allows applications to provide contextual information about the event type.</p>
@@ -1245,7 +1245,7 @@
 		<section id="interface-EventTarget">
 			<h2>Interface EventTarget</h2>
 
-			<p><em>Introduced in DOM Level 3</em></p>
+			<p class="intro-dom">Introduced in DOM Level 3</p>
 
 			<p>The <code>EventTarget</code> interface allows registration and removal of event listeners, and dispatch of events to an event target.</p>
 
@@ -1386,7 +1386,7 @@
 		<section id="interface-EventListener">
 			<h2>Interface EventListener</h2>
 
-			<p><em>Introduced in DOM Level 2</em></p>
+			<p class="intro-dom">Introduced in DOM Level 2</p>
 
 			<p>The <code>EventListener</code> interface is the primary way to handle events. <code>EventListener</code> represents the callback object that the user agent will
 				invoke when dispatching an <code>Event</code> to an <a href="#events-EventTarget"><code>EventTarget</code></a>.</p>
@@ -1423,7 +1423,7 @@
 		<section id="interface-DocumentEvent">
 			<h2>Interface DocumentEvent</h2>
 
-			<p><em>Introduced in DOM Level 2</em></p>
+			<p class="intro-dom">Introduced in DOM Level 2</p>
 
 			<p>The <code>DocumentEvent</code> interface provides a mechanism by which the user can create an <a href="#events-Event"><code>Event</code></a> object of a type supported
 				by the implementation. The <code>DocumentEvent</code> interface <span class="must">must</span> be implemented on the same object that implements the <code>Document</code> interface.</p>
@@ -1925,7 +1925,7 @@
 				<section id="interface-UIEvent">
 					<h4>Interface UIEvent</h4>
 
-					<p><em>Introduced in DOM Level 2</em></p>
+					<p class="intro-dom">Introduced in DOM Level 2</p>
 
 					<p>The <code>UIEvent</code> interface provides specific contextual information associated with User Interface events.</p>
 
@@ -2491,7 +2491,7 @@
 				<section id="interface-FocusEvent">
 					<h4>Interface FocusEvent</h4>
 
-					<p><em>Introduced in DOM Level 3</em></p>
+					<p class="intro-dom">Introduced in DOM Level 3</p>
 
 					<p>The <code>FocusEvent</code> interface provides specific contextual information associated with Focus events.</p>
 
@@ -2940,7 +2940,7 @@
 				<section id="interface-MouseEvent">
 					<h4>Interface MouseEvent</h4>
 
-					<p><em>Introduced in DOM Level 2, modified in DOM Level 3</em></p>
+					<p class="intro-dom">Introduced in DOM Level 2, modified in DOM Level 3</p>
 
 					<p>The <code>MouseEvent</code> interface provides specific contextual information associated with Mouse events.</p>
 
@@ -3165,7 +3165,7 @@
 
 						<dt>boolean getModifierState()</dt>
 						<dd>
-							<p><em>Introduced in DOM Level 3</em></p>
+							<p class="intro-dom">Introduced in DOM Level 3</p>
 
 							<p>Queries the state of a modifier using a key value. See also <a href="#keys-Modifiers">Modifier keys</a>.</p>
 
@@ -4077,7 +4077,7 @@
 				<section id="interface-WheelEvent">
 					<h4>Interface WheelEvent</h4>
 
-					<p><em>Introduced in DOM Level 3</em></p>
+					<p class="intro-dom">Introduced in DOM Level 3</p>
 
 					<p>The <code>WheelEvent</code> interface provides specific contextual information associated with <a class="eventtype" href="#event-type-wheel"><code>wheel</code></a> events.</p>
 
@@ -4254,7 +4254,7 @@
 				<section id="interface-KeyboardEvent">
 					<h4>Interface KeyboardEvent</h4>
 
-					<p><em>Introduced in DOM Level 3</em></p>
+					<p class="intro-dom">Introduced in DOM Level 3</p>
 
 					<p>The <code>KeyboardEvent</code> interface provides specific contextual information associated with keyboard devices. Each keyboard event references a key using a
 						value. Keyboard events are commonly directed at the element that has the focus.</p>
@@ -4794,7 +4794,7 @@
 				<section id="interface-CompositionEvent">
 					<h4>Interface CompositionEvent</h4>
 
-					<p><em>Introduced in DOM Level 3</em></p>
+					<p class="intro-dom">Introduced in DOM Level 3</p>
 
 					<p>The <code>CompositionEvent</code> interface provides specific contextual information associated with Composition Events.</p>
 
@@ -5077,7 +5077,7 @@
 				<section id="interface-MutationEvent">
 					<h4>Interface MutationEvent</h4>
 
-					<p><em>Introduced in DOM Level 2, deprecated in DOM Level 3</em></p>
+					<p class="intro-dom">Introduced in DOM Level 2, deprecated in DOM Level 3</p>
 
 					<p>The <code>MutationEvent</code> interface provides specific contextual information associated with Mutation events.</p>
 
@@ -8196,9 +8196,10 @@
 		<section id="KeyboardEvent-supplemental-interface">
 			<h2>Legacy KeyboardEvent supplemental interface</h2>
 			<dl>
-				<dt><strong>Interface <em><a id="events-KeyboardEvent-supplemental">KeyboardEvent (supplemental)</a></em></strong> (introduced
-					in <strong class="since">DOM Level 3</strong>)</dt>
+				<dt><strong>Interface <em><a id="events-KeyboardEvent-supplemental">KeyboardEvent (supplemental)</a></em></strong></dt>
 				<dd>
+					<p class="intro-dom">Introduced in DOM Level 3</p>
+					
 					<p>The partial <code>KeyboardEvent</code> interface is an informative extension of the <a href="#events-KeyboardEvent">KeyboardEvent</a> interface, which adds the
 						<a href="#events-KeyboardEvent-supplemental-charCode">charCode</a>, <a href="#events-KeyboardEvent-supplemental-keyCode">keyCode</a>, and <a href="#events-KeyboardEvent-supplemental-which">
 						which</a> attributes.</p>
--- a/html/override.css	Tue Jun 04 13:21:11 2013 -0700
+++ b/html/override.css	Tue Jun 04 13:23:08 2013 -0700
@@ -86,7 +86,14 @@
 	margin: 0 0;
 }
 
-/* Suppress auto-generated IDL sections in the Appendix.
+/* "Introduced in DOM Level n" */
+
+.intro-dom {
+	font-size: 0.9em;
+	font-style: italic;
+}
+
+	/* Suppress auto-generated IDL sections in the Appendix.
    These tables simply restate the info in the IDL so they're not needed.
  */