I have this:
var targetTitle = targetElement.getElementsByTagName('title').item(0);
Am i passing a plain string into targetTitle? or what am i passing exactly?
Which element would be item(1), item(2), etc... in here:
<title>title1</title>
<title><title2</title>
Does it just look for ALL the title
tags on the page and return the 0,1,2/?
Would this return 'title2':
targetElement.getElementsByTagName(‘title’).item(1)