Wednesday, May 04, 2016

References Cited on %Stack Question Yet-to-be-Published

[[methods dismissed essentially immediately due to reliance on objects unavailable: 

http://stackoverflow.com/questions/7931446/using-javascript-to-modify-html-element-and-create-new-element

]]

Script Mentioned: 

https://github.com/padolsey/findAndReplaceDOMText

Other method/function?

http://www.w3schools.com/jquery/html_replacewith.asp

[[ and another

http://www.w3schools.com/jsref/jsref_replace.asp ]]

References cited in the summarization of my saga trying 

(A) to get Javascript to add an ID to an element, 

OR


(B) to get Javascript to replace a string including several node types (HTML elements, attributes, and content text):

  [1]: http://stackoverflow.com/questions/5558613/javascript-replace-text-in-the-html-body
  [2]: https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML
  [3]: http://stackoverflow.com/questions/34559256/how-to-replace-all-occurrences-of-a-string-in-a-html-page-using-javascript
  [4]: http://www.w3schools.com/jsref/prop_node_nodetype.asp
  [5]: http://stackoverflow.com/a/236659
  [6]: http://stackoverflow.com/questions/236624/how-to-access-html-element-without-id
  [7]: http://meta.stackoverflow.com/questions/268469/why-cant-users-with-less-than-10-reputation-points-add-images-while-asking-ques

Additional Finds After Post: 

Relevant to the method in reference 3, https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName 

No comments: