Skip to content

Commit 1fdad13

Browse files
committed
example fail
1 parent 8978bbb commit 1fdad13

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

cssom-view/Overview.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727

2828
<h1 id=cssom-view-module>CSSOM View Module</h1>
2929

30-
<h2 class="no-num no-toc" id=w3c-doctype>Editor's Draft 25 August 2010</h2>
30+
<h2 class="no-num no-toc" id=w3c-doctype>Editor's Draft 26 August 2010</h2>
3131

3232
<dl>
3333
<dt>This Version:
3434

3535
<dd><a
36-
href="http://www.w3.org/TR/2010/ED-cssom-view-20100825/">http://www.w3.org/TR/2010/ED-cssom-view-20100825/</a>
36+
href="http://www.w3.org/TR/2010/ED-cssom-view-20100826/">http://www.w3.org/TR/2010/ED-cssom-view-20100826/</a>
3737

3838
<dt>Latest Version:
3939

@@ -499,8 +499,8 @@ <h3 id=the-mediaquerylist-interface><span class=secno>3.1. </span>The <code
499499
<p>A simple piece of code that detects changes in the orientation of the
500500
viewport can be written as follows:</p>
501501

502-
<pre><code>function handleOrientationChange(landscape) {
503-
if(landscape)
502+
<pre><code>function handleOrientationChange(mql) {
503+
if(mql.matches) // landscape
504504
&hellip;
505505
else
506506
&hellip;

cssom-view/Overview.src.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ <h3 id="the-mediaquerylist-interface">The <code title="">MediaQueryList</code> I
354354
<div class="example">
355355
<p>A simple piece of code that detects changes in the orientation of the
356356
viewport can be written as follows:</p>
357-
<pre><code>function handleOrientationChange(landscape) {
358-
if(landscape)
357+
<pre><code>function handleOrientationChange(mql) {
358+
if(mql.matches) // landscape
359359
&hellip;
360360
else
361361
&hellip;

0 commit comments

Comments
 (0)