This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26786 - <article> "Stocks" example invalid
Summary: <article> "Stocks" example invalid
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-12 09:24 UTC by Simon Pieters
Modified: 2014-09-12 16:54 UTC (History)
2 users (show)

See Also:


Attachments

Description Simon Pieters 2014-09-12 09:24:24 UTC
http://html5.org/r/8759#diff

[[
+   <pre>&lt;DOCTYPE HTML>
+&lt;title>eHome Portal&lt;/title>
+&lt;link rel=stylesheet href="/styles/main.js">
+&lt;article>
+ &lt;h1>Stocks&lt;/h1>
+ &lt;style scoped> @import url(/widgets/stocks/look.css); &lt;/style>
+ &lt;script src="/widgets/stocks/core.js">&lt;/script>
+ &lt;table>
+  &lt;thead> &lt;tr> &lt;th> Stock &lt;th> Value &lt;th> Delta
+  &lt;tbody> &lt;template> &lt;tr> &lt;td> &lt;td> &lt;td> &lt;/template>
+ &lt;/table>
+ &lt;p> &lt;input type=button value="Refresh" onclick="stocks.refresh()">
+&lt;/article>
+&lt;article>
+ &lt;h1>News&lt;/h1>
+ &lt;style scoped> @import url(/widgets/news/look.css); &lt;/style>
+ &lt;script src="/widgets/news/core.js">&lt;/script>
+ &lt;ul>
+  &lt;template>
+   &lt;li>
+    &lt;p>&lt;img src alt title> &lt;strong>&lt;/strong>
+    &lt;p>
+  &lt;/template>
+ &lt;/ul>
+ &lt;p> &lt;input type=button value="Refresh" onclick="news.refresh()">
+&lt;/article></pre>
]]

* <DOCTYPE HTML> missing !
* <style scoped> needs to be first child
* </template> gives a parse error
* <img src> requires non-empty value
Comment 1 contributor 2014-09-12 16:54:25 UTC
Checked in as WHATWG revision r8761.
Check-in comment: Fix syntax errors in this example
http://html5.org/tools/web-apps-tracker?from=8760&to=8761