Skip to content

Commit

Permalink
[Bug 23835]: [Shadow] Removes meta tags used by bug-assist to suppres…
Browse files Browse the repository at this point in the history
…s errors of the validator.
  • Loading branch information
hayatoito committed Nov 15, 2013
1 parent 2b051a6 commit 7a513f5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
9 changes: 6 additions & 3 deletions assets/scripts/bug-assist.js
Expand Up @@ -19,10 +19,13 @@ Sample use and configuration:
*/

document.addEventListener('DOMContentLoaded', function() {
var BUGS_PREFIX = 'bug.';

var inputs = { comment: '' };

if (window.bugAssistConfig) {
for (var name in window.bugAssistConfig) {
inputs[name] = window.bugAssistConfig[name];
}
}
var BUGS_PREFIX = 'bug.';
[].forEach.call(document.querySelectorAll('meta'), function(meta) {
if (meta.name.indexOf(BUGS_PREFIX) == 0)
inputs[meta.name.substr(BUGS_PREFIX.length)] = meta.content;
Expand Down
10 changes: 6 additions & 4 deletions spec/shadow/index.html
Expand Up @@ -38,12 +38,14 @@
}
}
}
var bugAssistConfig = {
blocked: '14978',
short_desc: '[Shadow]',
product: 'WebAppsWG',
component: 'Component Model'
}
</script>
<script src="../../assets/scripts/bug-assist.js" class="remove"></script>
<meta name="bug.blocked" content="14978" class="remove" />
<meta name="bug.short_desc" content="[Shadow]: " class="remove" />
<meta name="bug.product" content="WebAppsWG" class="remove" />
<meta name="bug.component" content="Component Model" class="remove" />
</head>
<body>
<section id='abstract'>
Expand Down

0 comments on commit 7a513f5

Please sign in to comment.