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 21916 - bug-assist should use data-* attributes instead of <meta name>
Summary: bug-assist should use data-* attributes instead of <meta name>
Status: RESOLVED MOVED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 15013
  Show dependency treegraph
 
Reported: 2013-05-02 22:45 UTC by Simon Pieters
Modified: 2015-07-06 08:07 UTC (History)
3 users (show)

See Also:


Attachments

Description Simon Pieters 2013-05-02 22:45:49 UTC
<meta name=bug.foo> is not valid HTML without registring bug.foo. Since these fields are only intended to be read by the script, it seems more appropriate to use data-* attributes (e.g. on the root element or the script element).
Comment 1 Robin Berjon 2013-06-05 22:31:43 UTC
We have that: http://www.w3.org/TR/html51/bug-assist.js
Comment 2 Dominic Cooney 2013-06-06 06:06:21 UTC
I have updated the Explainer in <https://dvcs.w3.org/hg/webcomponents/rev/3f951ae02c0a>
Comment 3 Philip Jägenstedt 2014-01-26 17:28:52 UTC
What's the canonical source for bug-assist.js? I want to get rid of the <meta> stuff in WebVTT, and http://w3c.github.io/webcomponents/explainer/bug-assist.js is what I can find.
Comment 4 Dimitri Glazkov 2014-01-27 05:14:14 UTC
(In reply to Philip Jägenstedt from comment #3)
> What's the canonical source for bug-assist.js? I want to get rid of the
> <meta> stuff in WebVTT, and
> http://w3c.github.io/webcomponents/explainer/bug-assist.js is what I can
> find.

https://github.com/w3c/webcomponents/blob/gh-pages/assets/scripts/spec-assist.js

:)
Comment 5 Philip Jägenstedt 2014-01-27 07:18:30 UTC
(In reply to Dimitri Glazkov from comment #4)
> (In reply to Philip Jägenstedt from comment #3)
> > What's the canonical source for bug-assist.js? I want to get rid of the
> > <meta> stuff in WebVTT, and
> > http://w3c.github.io/webcomponents/explainer/bug-assist.js is what I can
> > find.
> 
> https://github.com/w3c/webcomponents/blob/gh-pages/assets/scripts/spec-
> assist.js
> 
> :)

That's spec-assist.js, but the bug-assist.js in the same place still relies on <meta>, so I guess the canonical source is not what I'm looking for :/
Comment 6 Robin Berjon 2014-01-27 08:49:32 UTC
(In reply to Philip Jägenstedt from comment #5)
> (In reply to Dimitri Glazkov from comment #4)
> > (In reply to Philip Jägenstedt from comment #3)
> > > What's the canonical source for bug-assist.js? I want to get rid of the
> > > <meta> stuff in WebVTT, and
> > > http://w3c.github.io/webcomponents/explainer/bug-assist.js is what I can
> > > find.
> > 
> > https://github.com/w3c/webcomponents/blob/gh-pages/assets/scripts/spec-
> > assist.js
> > 
> > :)
> 
> That's spec-assist.js, but the bug-assist.js in the same place still relies
> on <meta>, so I guess the canonical source is not what I'm looking for :/

The one in:

    https://github.com/w3c/html/tree/master/js

uses data-*. You can steal it from there. There is currently no canonical version that I know of, people just copy it. I plan to incorporate the functionality into:

    https://github.com/darobin/specstatic

but at this point that's on standby until I have a day or two's time to hack.
Comment 7 Philip Jägenstedt 2014-01-27 08:57:30 UTC
OK, thanks Robin!
Comment 8 Hayato Ito 2015-07-06 08:07:17 UTC
Moved to https://github.com/w3c/webcomponents/issues/229