1
0
Эх сурвалжийг харах

remove attribute on selected node

Gildas 7 жил өмнө
parent
commit
237a1cb2d3

+ 1 - 0
extension/core/scripts/content/client.js

@@ -33,6 +33,7 @@
 				markSelectedContent();
 			}
 			options.content = getDoctype(document) + document.documentElement.outerHTML;
+			document.querySelectorAll("[" + SELECTED_CONTENT_ATTRIBUTE_NAME + "]").forEach(selectedContent => selectedContent.removeAttribute(SELECTED_CONTENT_ATTRIBUTE_NAME));
 			options.jsEnabled = true;
 			options.onprogress = event => {
 				if (event.type == event.RESOURCES_INITIALIZED) {