Skip to content

Commit

Permalink
Merge pull request #29 from Ms2ger/idl
Browse files Browse the repository at this point in the history
Take the excludefromidl attribute into account.
  • Loading branch information
heycam committed Dec 3, 2015
2 parents 5c0e935 + 411a135 commit 428336c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tools/publish/processing.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,11 @@ function doCompleteIDL(conf, page, n) {
utils.forEachNode(doc, function(n) {
if (n.nodeType == n.ELEMENT_NODE &&
n.localName == "pre" &&
n.getAttribute("class") == "idl" &&
n.getAttributeNS(namespaces.edit, "excludefromidl") != "true") {
n.getAttribute("class") == "idl") {
if (n.svg_excludefromidl) {
delete n.svg_excludefromidl;
return;
}
if (idl.length) {
idl.push(n.ownerDocument.createTextNode("\n\n"));
}
Expand Down Expand Up @@ -845,7 +848,10 @@ exports.formatMarkup = function(conf, page, doc) {
}
}
n.removeAttribute("edit:toc");
n.removeAttribute("edit:excludefromidl");
if (n.hasAttribute("edit:excludefromidl")) {
n.svg_excludefromidl = true;
n.removeAttribute("edit:excludefromidl");
}
}
});

Expand Down

0 comments on commit 428336c

Please sign in to comment.