innertext.json 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. {
  2. "title":"Node.innerText",
  3. "description":"A property representing the text within a DOM element and its descendants. 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.",
  4. "spec":"https://html.spec.whatwg.org/multipage/dom.html#the-innertext-idl-attribute",
  5. "status":"ls",
  6. "links":[
  7. {
  8. "url":"https://developer.mozilla.org/en-US/docs/Web/API/Node/innerText",
  9. "title":"MDN Web Docs - innerText"
  10. },
  11. {
  12. "url":"https://github.com/whatwg/compat/issues/5",
  13. "title":"WHATWG Compatibility Standard issue #5: spec innerText"
  14. },
  15. {
  16. "url":"https://github.com/timdown/rangy",
  17. "title":"Rangy, a JS range and selection library which contains an innerText implementation"
  18. },
  19. {
  20. "url":"http://discourse.wicg.io/t/standardizing-innertext/799",
  21. "title":"Standardizing innerText \u2013 Web Incubator Community Group (WICG) discussion"
  22. },
  23. {
  24. "url":"https://msdn.microsoft.com/library/ms533899(v=vs.85).aspx",
  25. "title":"MSDN documentation"
  26. }
  27. ],
  28. "bugs":[
  29. {
  30. "description":"In IE10 and IE11, when using `innerText` (and also `innerHTML` or `outerHTML`) on a `textarea` which has a `placeholder` attribute, the returned HTML/text also uses the `placeholder`'s value as the actual `textarea`'s value. [See bug](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/101525/)."
  31. }
  32. ],
  33. "categories":[
  34. "DOM"
  35. ],
  36. "stats":{
  37. "ie":{
  38. "5.5":"u",
  39. "6":"y",
  40. "7":"y",
  41. "8":"y",
  42. "9":"y",
  43. "10":"y",
  44. "11":"y"
  45. },
  46. "edge":{
  47. "12":"y",
  48. "13":"y",
  49. "14":"y",
  50. "15":"y",
  51. "16":"y",
  52. "17":"y",
  53. "18":"y"
  54. },
  55. "firefox":{
  56. "2":"n",
  57. "3":"n",
  58. "3.5":"n",
  59. "3.6":"n",
  60. "4":"n",
  61. "5":"n",
  62. "6":"n",
  63. "7":"n",
  64. "8":"n",
  65. "9":"n",
  66. "10":"n",
  67. "11":"n",
  68. "12":"n",
  69. "13":"n",
  70. "14":"n",
  71. "15":"n",
  72. "16":"n",
  73. "17":"n",
  74. "18":"n",
  75. "19":"n",
  76. "20":"n",
  77. "21":"n",
  78. "22":"n",
  79. "23":"n",
  80. "24":"n",
  81. "25":"n",
  82. "26":"n",
  83. "27":"n",
  84. "28":"n",
  85. "29":"n",
  86. "30":"n",
  87. "31":"n",
  88. "32":"n",
  89. "33":"n",
  90. "34":"n",
  91. "35":"n",
  92. "36":"n",
  93. "37":"n",
  94. "38":"n",
  95. "39":"n",
  96. "40":"n",
  97. "41":"n",
  98. "42":"n",
  99. "43":"n",
  100. "44":"n",
  101. "45":"y",
  102. "46":"y",
  103. "47":"y",
  104. "48":"y",
  105. "49":"y",
  106. "50":"y",
  107. "51":"y",
  108. "52":"y",
  109. "53":"y",
  110. "54":"y",
  111. "55":"y",
  112. "56":"y",
  113. "57":"y",
  114. "58":"y",
  115. "59":"y",
  116. "60":"y",
  117. "61":"y",
  118. "62":"y"
  119. },
  120. "chrome":{
  121. "4":"y",
  122. "5":"y",
  123. "6":"y",
  124. "7":"y",
  125. "8":"y",
  126. "9":"y",
  127. "10":"y",
  128. "11":"y",
  129. "12":"y",
  130. "13":"y",
  131. "14":"y",
  132. "15":"y",
  133. "16":"y",
  134. "17":"y",
  135. "18":"y",
  136. "19":"y",
  137. "20":"y",
  138. "21":"y",
  139. "22":"y",
  140. "23":"y",
  141. "24":"y",
  142. "25":"y",
  143. "26":"y",
  144. "27":"y",
  145. "28":"y",
  146. "29":"y",
  147. "30":"y",
  148. "31":"y",
  149. "32":"y",
  150. "33":"y",
  151. "34":"y",
  152. "35":"y",
  153. "36":"y",
  154. "37":"y",
  155. "38":"y",
  156. "39":"y",
  157. "40":"y",
  158. "41":"y",
  159. "42":"y",
  160. "43":"y",
  161. "44":"y",
  162. "45":"y",
  163. "46":"y",
  164. "47":"y",
  165. "48":"y",
  166. "49":"y",
  167. "50":"y",
  168. "51":"y",
  169. "52":"y",
  170. "53":"y",
  171. "54":"y",
  172. "55":"y",
  173. "56":"y",
  174. "57":"y",
  175. "58":"y",
  176. "59":"y",
  177. "60":"y",
  178. "61":"y",
  179. "62":"y",
  180. "63":"y",
  181. "64":"y",
  182. "65":"y",
  183. "66":"y",
  184. "67":"y",
  185. "68":"y",
  186. "69":"y"
  187. },
  188. "safari":{
  189. "3.1":"u",
  190. "3.2":"y",
  191. "4":"y",
  192. "5":"y",
  193. "5.1":"y",
  194. "6":"y",
  195. "6.1":"y",
  196. "7":"y",
  197. "7.1":"y",
  198. "8":"y",
  199. "9":"y",
  200. "9.1":"y",
  201. "10":"y",
  202. "10.1":"y",
  203. "11":"y",
  204. "11.1":"y",
  205. "TP":"y"
  206. },
  207. "opera":{
  208. "9":"u",
  209. "9.5-9.6":"y",
  210. "10.0-10.1":"y",
  211. "10.5":"y",
  212. "10.6":"y",
  213. "11":"y",
  214. "11.1":"y",
  215. "11.5":"y",
  216. "11.6":"y",
  217. "12":"y",
  218. "12.1":"y",
  219. "15":"y",
  220. "16":"y",
  221. "17":"y",
  222. "18":"y",
  223. "19":"y",
  224. "20":"y",
  225. "21":"y",
  226. "22":"y",
  227. "23":"y",
  228. "24":"y",
  229. "25":"y",
  230. "26":"y",
  231. "27":"y",
  232. "28":"y",
  233. "29":"y",
  234. "30":"y",
  235. "31":"y",
  236. "32":"y",
  237. "33":"y",
  238. "34":"y",
  239. "35":"y",
  240. "36":"y",
  241. "37":"y",
  242. "38":"y",
  243. "39":"y",
  244. "40":"y",
  245. "41":"y",
  246. "42":"y",
  247. "43":"y",
  248. "44":"y",
  249. "45":"y",
  250. "46":"y",
  251. "47":"y",
  252. "48":"y",
  253. "49":"y",
  254. "50":"y",
  255. "51":"y",
  256. "52":"y"
  257. },
  258. "ios_saf":{
  259. "3.2":"u",
  260. "4.0-4.1":"y",
  261. "4.2-4.3":"y",
  262. "5.0-5.1":"y",
  263. "6.0-6.1":"y",
  264. "7.0-7.1":"y",
  265. "8":"y",
  266. "8.1-8.4":"y",
  267. "9.0-9.2":"y",
  268. "9.3":"y",
  269. "10.0-10.2":"y",
  270. "10.3":"y",
  271. "11.0-11.2":"y",
  272. "11.3":"y"
  273. },
  274. "op_mini":{
  275. "all":"y"
  276. },
  277. "android":{
  278. "2.1":"u",
  279. "2.2":"u",
  280. "2.3":"y",
  281. "3":"y",
  282. "4":"y",
  283. "4.1":"y",
  284. "4.2-4.3":"y",
  285. "4.4":"y",
  286. "4.4.3-4.4.4":"y",
  287. "62":"y"
  288. },
  289. "bb":{
  290. "7":"y",
  291. "10":"y"
  292. },
  293. "op_mob":{
  294. "10":"y",
  295. "11":"y",
  296. "11.1":"y",
  297. "11.5":"y",
  298. "12":"y",
  299. "12.1":"y",
  300. "37":"y"
  301. },
  302. "and_chr":{
  303. "66":"y"
  304. },
  305. "and_ff":{
  306. "57":"y"
  307. },
  308. "ie_mob":{
  309. "10":"y",
  310. "11":"y"
  311. },
  312. "and_uc":{
  313. "11.8":"y"
  314. },
  315. "samsung":{
  316. "4":"y",
  317. "5":"y",
  318. "6.2":"y"
  319. },
  320. "and_qq":{
  321. "1.2":"y"
  322. },
  323. "baidu":{
  324. "7.12":"y"
  325. }
  326. },
  327. "notes":"This test only checks that the property exists and works correctly in a very simple case.\r\n[This blog post by kangax](http://perfectionkills.com/the-poor-misunderstood-innerText/) explains the history of this property, gives much more detailed cross-browser compatibility information, and gives a detailed strawman specification for the property.\r\n`Node.innerText` is similar to, but has some important differences from, the standard [`Node.textContent`](https://caniuse.com/#feat=textcontent) property.",
  328. "notes_by_num":{
  329. },
  330. "usage_perc_y":97.33,
  331. "usage_perc_a":0,
  332. "ucprefix":false,
  333. "parent":"",
  334. "keywords":"inner,text,content",
  335. "ie_id":"",
  336. "chrome_id":"",
  337. "firefox_id":"",
  338. "webkit_id":"",
  339. "shown":true
  340. }