Skip to content

Commit

Permalink
Fix presentational attributes
Browse files Browse the repository at this point in the history
Previously, presentational attributes were not represented
on any of the elements that allowed them.

Closes GH-1.
  • Loading branch information
wooorm committed Dec 29, 2017
1 parent 2b028fe commit 0b60f63
Show file tree
Hide file tree
Showing 2 changed files with 2,981 additions and 24 deletions.
9 changes: 5 additions & 4 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ https.get('https://www.w3.org/TR/SVG/attindex.html', function (res) {
done(map);

function each(node) {
var name = q.select('.attr-name', node);
var elements = q.selectAll('.element-name', node);

if (name) {
q
.selectAll('.element-name', node)
q.selectAll('.attr-name', node).forEach(every);

function every(name) {
elements
.map(toString)
.map(clean)
.forEach(add(map, clean(toString(name))));
Expand Down
Loading

0 comments on commit 0b60f63

Please sign in to comment.