Jelajahi Sumber

remove attribute on selected node

Gildas 7 tahun lalu
induk
melakukan
237a1cb2d3
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      extension/core/scripts/content/client.js

+ 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) {