I'm writing an extension that adds a small link to the right of a
Google search result. But whenever I try to manipulate the elements
returned I get the error:
"Uncaught Error: INVALID_STATE_ERR: DOM Exception 11"

I've looked everywhere and I'm getting desperate. I cna't work this
out on my own so any help would be much appreciated.

The code is shown below:

function addArchiveLinks() {
  var result = document.evaluate('//h3', document, null,
XPathResult.ANY_TYPE, null);
  while(item = result.iterateNext()){
    console.log(item);
    resLink = item.childNodes[0];
    resLink.innerHTML += 'Testing';
  }
}

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to