Show More
@@ -329,6 +329,13 function makeRequest(url, method, onstar | |||||
329 | return xfr; |
|
329 | return xfr; | |
330 | } |
|
330 | } | |
331 |
|
331 | |||
|
332 | function removeByClassName(className) { | |||
|
333 | var nodes = document.getElementsByClassName(className); | |||
|
334 | while (nodes.length) { | |||
|
335 | nodes[0].parentNode.removeChild(nodes[0]); | |||
|
336 | } | |||
|
337 | } | |||
|
338 | ||||
332 | function docFromHTML(html) { |
|
339 | function docFromHTML(html) { | |
333 | var doc = document.implementation.createHTMLDocument(''); |
|
340 | var doc = document.implementation.createHTMLDocument(''); | |
334 | doc.documentElement.innerHTML = html; |
|
341 | doc.documentElement.innerHTML = html; |
General Comments 0
You need to be logged in to leave comments.
Login now