- From: <bugzilla@jessica.w3.org>
 - Date: Mon, 05 May 2014 20:22:56 +0000
 - To: public-webapps-bugzilla@w3.org
 
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25561
            Bug ID: 25561
           Summary: [Explainer]: Use of template in example would result
                    in multiple matching ID tags being generated in the
                    DOM
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Component Model
          Assignee: dglazkov@chromium.org
          Reporter: dcaldwell@grinn.net
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-webapps@w3.org
            Blocks: 14949
In the "tick-tock-clock-template" example, id tags are used inside of the
template. The intended use of this code is to make a reusable component, but
reusing this template would result in multiple "hh", "sep" and "mm" tags being
inserted into the DOM - something that breaks HTML standards. A fix would be to
instead use another attribute, such as class.
So this:
<template id="tick-tock-clock-template">
  <span id="hh"></span>
  <span id="sep">:</span>
  <span id="mm"></span>
</template>
...becomes this:
<template id="tick-tock-clock-template">
  <span class="hh"></span>
  <span class="sep">:</span>
  <span class="mm"></span>
</template>
-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 5 May 2014 20:23:00 UTC