Skip to content

Commit 64d98ba

Browse files
author
Simon Pieters
committed
[cssom*] Add validation of HTML and IDL
1 parent 1fddb1e commit 64d98ba

6 files changed

Lines changed: 43 additions & 15 deletions

File tree

cssom-values/Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
ANOLIS = anolis
2+
SED = sed
3+
CURL = curl
24
SPECSTOP = ..
35
GENDIR = $(SPECSTOP)/cssom
46
XREF = data
57
XREFS = $(XREF)/xrefs/css/cssom-values.json
8+
SRCFILE = Overview.src.html
9+
VNUFILE = Overview.src.vnu.html
610
EDFILE = Overview.html
711
TRFILE = TR/Overview.html
812

@@ -14,7 +18,12 @@ $(XREFS): Overview.src.html Makefile
1418
$(EDFILE): Overview.src.html $(XREF) Makefile
1519
$(ANOLIS) --output-encoding=utf-8 --omit-optional-tags --quote-attr-values \
1620
--w3c-compat --enable=xspecxref --enable=refs --w3c-shortname="cssom-values" \
17-
--force-html4-id --filter=".publish" $< $@
21+
--force-html4-id --filter=".publish" $< $@; \
22+
$(SED) 's/\[/\(/g;s/\]/\)/g' <$(SRCFILE) >$(VNUFILE); \
23+
$(CURL) -F out=gnu -F content=@$(VNUFILE) http://validator.nu/; \
24+
$(RM) $(VNUFILE); \
25+
$(CURL) 'http://www.w3.org/2009/07/webidl-check?doc=http%3A%2F%2Fdev.w3.org%2Fcsswg%2Fcssom-values%2F&output=text'
26+
#$(CURL) -F output=text -F input=@$(SRCFILE) http://www.w3.org/2009/07/webidl-check
1827

1928
draft: $(EDFILE)
2029

cssom-values/Overview.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@
2929

3030
<h1 id="cssom-values">CSSOM Values Module</h1>
3131

32-
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 21 May 2013</h2>
32+
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 22 May 2013</h2>
3333

3434
<dl>
3535

3636
<dt>This Version:</dt>
3737
<dd class="dontpublish"><a href="http://dev.w3.org/csswg/cssom-values/">http://dev.w3.org/csswg/cssom-values/</a></dd>
3838
<dt class="dontpublish">Participate:</dt>
3939
<dd class="dontpublish"><a href="mailto:www-style@w3.org?subject==%5Bcssom-values%5D%20">www-style@w3.org</a> (<a href="http://lists.w3.org/Archives/Public/www-style/">archives</a>)
40-
<dd class="dontpublish"><a href="https://www.w3.org/Bugs/Public/enter_bug.cgi?product=CSS&amp;component=CSSOM&amp;20Values">File a bug</a> (<a href="https://www.w3.org/Bugs/Public/buglist.cgi?component=CSSOM%20Values&amp;product=CSS&amp;resolution=---">open bugs</a>) <script async="" src="https://w3c-test.org/resources.whatwg.org/file-bug.js"></script>
40+
<dd class="dontpublish"><a href="https://www.w3.org/Bugs/Public/enter_bug.cgi?product=CSS&amp;component=CSSOM%20Values">File a bug</a> (<a href="https://www.w3.org/Bugs/Public/buglist.cgi?component=CSSOM%20Values&amp;product=CSS&amp;resolution=---">open bugs</a>) <script async="" src="https://w3c-test.org/resources.whatwg.org/file-bug.js"></script>
4141
<dd class="dontpublish"><a href="irc://irc.w3.org:6665/css">IRC: #css on W3C</a></dd>
4242

4343
<dt class="dontpublish">Previous Version:</dt>
@@ -77,15 +77,15 @@ <h2 class="no-num no-toc" id="sotd">Status of this Document</h2>
7777
can be found in the
7878
<a href="http://www.w3.org/TR/">W3C technical reports index at http://www.w3.org/TR/.</a></em>
7979

80-
<p>This is the 21 May 2013 Editor's Draft of CSSOM. Please send
80+
<p>This is the 22 May 2013 Editor's Draft of CSSOM. Please send
8181
comments to
8282
<a href="mailto:www-style@w3.org?subject=%5Bcssom%5D%20">www-style@w3.org</a>
8383
(<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
8484
with <samp>[cssom-values]</samp> at the start of the subject line.
8585

8686

8787
<!-- XXX include this text upon FPWD publishing
88-
<p>This is the 21 May 2013 First Public Working Draft of CSSOM, produced by the
88+
<p>This is the 22 May 2013 First Public Working Draft of CSSOM, produced by the
8989
<a href="http://www.w3.org/Style/CSS/members">CSS Working Group</a> (part
9090
of the <a href="http://www.w3.org/Style/">Style Activity</a>).
9191
-->

cssom-view/Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
ANOLIS = anolis
2+
SED = sed
3+
CURL = curl
24
SPECSTOP = ..
35
GENDIR = $(SPECSTOP)/cssom
46
XREF = data
57
XREFS = $(XREF)/xrefs/css/cssom-view.json
8+
SRCFILE = Overview.src.html
9+
VNUFILE = Overview.src.vnu.html
610
EDFILE = Overview.html
711
TRFILE = TR/Overview.html
812

@@ -14,7 +18,12 @@ $(XREFS): Overview.src.html Makefile
1418
$(EDFILE): Overview.src.html $(XREF) Makefile
1519
$(ANOLIS) --output-encoding=utf-8 --omit-optional-tags --quote-attr-values \
1620
--w3c-compat --enable=xspecxref --enable=refs --w3c-shortname="cssom-view" \
17-
--force-html4-id --filter=".publish" $< $@
21+
--force-html4-id --filter=".publish" $< $@; \
22+
$(SED) 's/\[/\(/g;s/\]/\)/g' <$(SRCFILE) >$(VNUFILE); \
23+
$(CURL) -F out=gnu -F content=@$(VNUFILE) http://validator.nu/; \
24+
$(RM) $(VNUFILE); \
25+
$(CURL) 'http://www.w3.org/2009/07/webidl-check?doc=http%3A%2F%2Fdev.w3.org%2Fcsswg%2Fcssom-view%2F&output=text'
26+
#$(CURL) -F output=text -F input=@$(SRCFILE) http://www.w3.org/2009/07/webidl-check
1827

1928
draft: $(EDFILE)
2029

cssom-view/Overview.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
<h1>CSSOM View Module</h1>
3131

32-
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 21 May 2013</h2>
32+
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 22 May 2013</h2>
3333

3434
<dl>
3535

@@ -85,7 +85,7 @@ <h2 class="no-num no-toc" id="sotd">Status of this Document</h2>
8585
can be found in the <a href="http://www.w3.org/TR/">W3C technical reports
8686
index at http://www.w3.org/TR/.</a></em>
8787

88-
<p>This is the 21 May 2013 Editor's Draft of CSSOM View. Please send
88+
<p>This is the 22 May 2013 Editor's Draft of CSSOM View. Please send
8989
comments to
9090
<a href="mailto:www-style@w3.org?subject=%5Bcssom-view%5D%20">www-style@w3.org</a>
9191
(<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
@@ -795,7 +795,7 @@ <h3 id="element-scrolling-members"><span class="secno">6.2 </span><code title=""
795795
view with the bottom of the scrolling box.</li>
796796

797797
<li><p>Align the left of the border box of the element to be scrolled
798-
into view with the left of the scrolling box.
798+
into view with the left of the scrolling box.</li>
799799
<!-- RTL is not special cased in implementations?! -->
800800

801801
<li><p>If the aligning did not cause content to move terminate these

cssom/Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
ANOLIS = anolis
2+
SED = sed
3+
CURL = curl
24
SPECSTOP = ..
35
GENDIR = $(SPECSTOP)/cssom
46
XREF = data
57
XREFS = $(XREF)/xrefs/css/cssom.json
8+
SRCFILE = Overview.src.html
9+
VNUFILE = Overview.src.vnu.html
610
EDFILE = Overview.html
711
TRFILE = TR/Overview.html
812

@@ -14,7 +18,12 @@ $(XREFS): Overview.src.html Makefile
1418
$(EDFILE): Overview.src.html $(XREF) Makefile
1519
$(ANOLIS) --output-encoding=utf-8 --omit-optional-tags --quote-attr-values \
1620
--w3c-compat --enable=xspecxref --enable=refs --w3c-shortname="cssom" \
17-
--force-html4-id --filter=".publish" $< $@
21+
--force-html4-id --filter=".publish" $< $@; \
22+
$(SED) 's/\[/\(/g;s/\]/\)/g' <$(SRCFILE) >$(VNUFILE); \
23+
$(CURL) -F out=gnu -F content=@$(VNUFILE) http://validator.nu/; \
24+
$(RM) $(VNUFILE); \
25+
$(CURL) 'http://www.w3.org/2009/07/webidl-check?doc=http%3A%2F%2Fdev.w3.org%2Fcsswg%2Fcssom%2F&output=text'
26+
#$(CURL) -F output=text -F input=@$(SRCFILE) http://www.w3.org/2009/07/webidl-check
1827

1928
draft: $(EDFILE)
2029

cssom/Overview.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<link href="https://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet">
2222
</head>
2323
<body class="draft">
24+
2425
<div class="head">
2526

2627
<!--begin-logo-->
@@ -31,7 +32,7 @@
3132
<h1 id="cssom">CSS Object Model (CSSOM)</h1>
3233

3334

34-
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 21 May 2013</h2>
35+
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 22 May 2013</h2>
3536

3637
<dl>
3738

@@ -94,7 +95,7 @@ <h2 class="no-num no-toc" id="sotd">Status of this Document</h2>
9495
can be found in the
9596
<a href="http://www.w3.org/TR/">W3C technical reports index at http://www.w3.org/TR/.</a></em>
9697

97-
<p class="dontpublish">This is the 21 May 2013 Editor's Draft of CSSOM. Please send comments to
98+
<p class="dontpublish">This is the 22 May 2013 Editor's Draft of CSSOM. Please send comments to
9899
<a href="mailto:www-style@w3.org?subject=%5Bcssom%5D%20">www-style@w3.org</a>
99100
(<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
100101
with <samp>[cssom]</samp> at the start of the subject line.
@@ -424,9 +425,9 @@ <h3 id="serializing-media-queries"><span class="secno">4.2 </span>Serializing Me
424425
<p>Then, for each media feature:</p>
425426

426427
<ol>
427-
<li>Append a "<code>(</code>" (U+0028), followed by the media feature
428+
<li><p>Append a "<code>(</code>" (U+0028), followed by the media feature
428429
name, <a class="external" href="http://dom.spec.whatwg.org/#converted-to-ascii-lowercase">converted to ASCII lowercase</a>,
429-
to <var>s</var>.<p></li>
430+
to <var>s</var>.</li>
430431

431432
<li><p>If a value is given append a "<code>:</code>" (U+003A), followed
432433
by a single SPACE (U+0020), followed by the
@@ -1911,7 +1912,7 @@ <h4 id="the-cssmediarule-interface"><span class="secno">6.4.6 </span>The <code t
19111912
<pre class="idl">interface <dfn id="cssmediarule">CSSMediaRule</dfn> : <a href="#cssrule">CSSRule</a> {
19121913
[PutForwards=mediaText] readonly attribute <a href="#medialist">MediaList</a> <a href="#dom-cssmediarule-media" title="dom-CSSMediaRule-media">media</a>;
19131914
readonly attribute <a href="#cssrulelist">CSSRuleList</a> <a href="#dom-cssmediarule-cssrules" title="dom-CSSMediaRule-cssRules">cssRules</a>;
1914-
unsigned long <a href="#dom-cssmediarule-insertrule" title="dom-CSSMediaRule-insertRule">insertRule</a>(DOMString rule, in unsigned long index);
1915+
unsigned long <a href="#dom-cssmediarule-insertrule" title="dom-CSSMediaRule-insertRule">insertRule</a>(DOMString rule, unsigned long index);
19151916
void <a href="#dom-cssmediarule-deleterule" title="dom-CSSMediaRule-deleteRule">deleteRule</a>(unsigned long index);
19161917
};</pre>
19171918

0 commit comments

Comments
 (0)