Skip to content

Commit

Permalink
Bug 641853: Tabs documentation uses .innerText property r=myk
Browse files Browse the repository at this point in the history
  • Loading branch information
ochameau committed Mar 16, 2011
1 parent 398f4d6 commit 94b814e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/addon-kit/docs/tabs.md
Expand Up @@ -239,7 +239,7 @@ Makes this tab active, which will bring this tab to the foreground.
tabs.activeTab.attach({
contentScript:
'document.body.style.border="5px solid black";' +
'postMessage(document.getElementById("#my-watched-element").innerText);',
'postMessage(document.getElementById("#my-watched-element").textContent);',
onMessage: function (data) {
// data is equal to the text of my DOM element with ID "#my-watched-element"
Expand Down

0 comments on commit 94b814e

Please sign in to comment.