Node.innerText is similar to, but has some important differences from, the standard Node.textContent property.Resources: MDN Web Docs - innerText, WHATWG Compatibility Standard issue #5: spec innerText, Rangy, a JS range and selection library which contains an innerText implementation, Standardizing innerText – Web Incubator Community Group (WICG) discussion, MSDN documentation. ![]() This blog post by kangax explains the history of this property, gives much more detailed cross-browser compatibility information, and gives a detailed strawman specification for the property. This test only checks that the property exists and works correctly in a very simple case. As a getter, it approximates the text the user would get if they highlighted the contents of the element with the cursor and then copied to the clipboard. ![]() A property representing the text within a DOM element and its descendants.
0 Comments
Leave a Reply. |