W3C home > Mailing lists > Public > public-svg-wg@w3.org > July to September 2012

svg2-tools: Don't list attribute categories as elements in element su...

From: SVG Working Group repository <cam@mcc.id.au>
Date: Mon, 20 Aug 2012 22:34:19 -0700
Message-Id: <hg.6deaf3de95bd.1345527259.2168319282941016272@ps58493.dreamhostps.com>
To: public-svg-wg@w3.org
details:   https://svgwg.org/hg/svg2-tools/rev/6deaf3de95bd
branches:  
changeset: 59:6deaf3de95bd
user:      Cameron McCormack <cam@mcc.id.au>
date:      Tue Aug 21 15:34:52 2012 +1000
description:
Don't list attribute categories as elements in element summary boxes.

diffstat:

 publish/processing.js |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (22 lines):

diff --git a/publish/processing.js b/publish/processing.js
--- a/publish/processing.js
+++ b/publish/processing.js
@@ -450,17 +450,17 @@ function formatElementAttributes(conf, e
   var ul = utils.parse('<ul class="no-bullets"></ul>');
   element.attributeCategories.forEach(function(name) {
     var cat = conf.definitions.attributeCategories[name];
     if (!cat) {
       return utils.parse('<li><a href="data:," style="background: red; color: white">@@ unknown attribute category "{{name}}"</a><li>', { name: name });
     }
     var attributes = cat.commonAttributes.concat(cat.attributes.map(function(a) { return a.name }));
     // map(function(name) { return element.commonAttributes[name] }).concat(cat.attributes);
-    var li = utils.parse('<li><a href="{{href}}">{{name}} elements</a><span class="expanding"> €” {{attributes}}</span></li>',
+    var li = utils.parse('<li><a href="{{href}}">{{name}} attributes</a><span class="expanding"> €” {{attributes}}</span></li>',
                          { href: cat.href,
                            name: cat.name,
                            attributes: utils.fragment(attributes.map(function(a) { return conf.definitions.formatElementAttributeLink(element.name, a, n) }), ', ') });
     ul.appendChild(li);
   });
 
   element.commonAttributes.forEach(function(name) {
     var li = utils.parse('<li>{{attribute}}</li>',
Received on Tuesday, 21 August 2012 05:35:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 21 August 2012 05:35:23 GMT