I'm simply setting a custom attribute in the document.ready function in the following way:
$(document).ready(function(){
$("div.para, pre.screen, div.figure, pre.programlisting").attr("data-test-ID", "hello");
});
When I reload the HTML and look at the source, there is no trace of such attribute anywhere. Any ideas? I'm really stuck on this and can't figure it out.
inspect elementin your browser's context menu) the HTML source of the page isn't, and can't, be touched by JavaScript.