Index: chrome/common/extensions/docs/js/api_page_generator.js |
diff --git a/chrome/common/extensions/docs/js/api_page_generator.js b/chrome/common/extensions/docs/js/api_page_generator.js |
index ee1d51a8644822b78a0c703c7948e459d7e16917..cb5bb82c188bcb7e35450490c7ed0f4a8562695f 100644 |
--- a/chrome/common/extensions/docs/js/api_page_generator.js |
+++ b/chrome/common/extensions/docs/js/api_page_generator.js |
@@ -422,9 +422,11 @@ function cleanupJstemplateMess(root) { |
// Delete nodes which are hidden. There are lots of these since jsdisplay |
// just hides nodes, not deletes them. |
- if (n.style && n.style.display === 'none') { |
+ if (!n.hasAttribute('volatile') && n.style && n.style.display === 'none') { |
displayNone.push(n); |
continue; |
+ } else { |
+ n.removeAttribute('volatile'); |
} |
// Delete empty style attributes (this can happen when jsdisplay causes |