Today in the production of Firefox to support the replication of the JS code, the use of innertext, the test found that the original Firefox support innerHTML but does not support innertext.
test.innerhtml:
That is, the entire contents of the object from its starting position to the terminating position, including the HTML tag.
The value of test.innerhtml in the example above is "<span style=" color:red ">test1</span> test2".
Test.innertext:
The content from the starting position to the terminating position, but it removes the HTML tag
The value of text.innertest in the example above is "Test1 test2", where the span tag is removed.
test.outerhtml:
In addition to the entire contents of the innerHTML, the object label itself is included.
The value of text.outerhtml in the above example is <div id= "test" ><span style= "color:red" >test1</span> test2</div>
This section is added to your JS file can be used under the Mozilla/firefox innertext
htmlelement.prototype.__definegetter__ ("InnerText", function () {var AnyString = ""; var ChildS = this.childnodes; for (var i=0; i<childs.length; i++) {if (childs[i].nodetype==1) anystring + = childs[i].tagname== "BR"? ' \ n ': childs[i].innertext; else if (childs[i].nodetype==3) anystring + = Childs[i].nodevalue; } return anystring; } );