innertext.json 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  1. {
  2. "title":"HTMLElement.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/HTMLElement/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. "bugs":[
  25. {
  26. "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/)."
  27. }
  28. ],
  29. "categories":[
  30. "DOM"
  31. ],
  32. "stats":{
  33. "ie":{
  34. "5.5":"u",
  35. "6":"y",
  36. "7":"y",
  37. "8":"y",
  38. "9":"y",
  39. "10":"y",
  40. "11":"y"
  41. },
  42. "edge":{
  43. "12":"y",
  44. "13":"y",
  45. "14":"y",
  46. "15":"y",
  47. "16":"y",
  48. "17":"y",
  49. "18":"y",
  50. "79":"y",
  51. "80":"y",
  52. "81":"y",
  53. "83":"y",
  54. "84":"y",
  55. "85":"y",
  56. "86":"y",
  57. "87":"y",
  58. "88":"y",
  59. "89":"y",
  60. "90":"y",
  61. "91":"y",
  62. "92":"y",
  63. "93":"y",
  64. "94":"y",
  65. "95":"y",
  66. "96":"y",
  67. "97":"y",
  68. "98":"y",
  69. "99":"y"
  70. },
  71. "firefox":{
  72. "2":"n",
  73. "3":"n",
  74. "3.5":"n",
  75. "3.6":"n",
  76. "4":"n",
  77. "5":"n",
  78. "6":"n",
  79. "7":"n",
  80. "8":"n",
  81. "9":"n",
  82. "10":"n",
  83. "11":"n",
  84. "12":"n",
  85. "13":"n",
  86. "14":"n",
  87. "15":"n",
  88. "16":"n",
  89. "17":"n",
  90. "18":"n",
  91. "19":"n",
  92. "20":"n",
  93. "21":"n",
  94. "22":"n",
  95. "23":"n",
  96. "24":"n",
  97. "25":"n",
  98. "26":"n",
  99. "27":"n",
  100. "28":"n",
  101. "29":"n",
  102. "30":"n",
  103. "31":"n",
  104. "32":"n",
  105. "33":"n",
  106. "34":"n",
  107. "35":"n",
  108. "36":"n",
  109. "37":"n",
  110. "38":"n",
  111. "39":"n",
  112. "40":"n",
  113. "41":"n",
  114. "42":"n",
  115. "43":"n",
  116. "44":"n",
  117. "45":"y",
  118. "46":"y",
  119. "47":"y",
  120. "48":"y",
  121. "49":"y",
  122. "50":"y",
  123. "51":"y",
  124. "52":"y",
  125. "53":"y",
  126. "54":"y",
  127. "55":"y",
  128. "56":"y",
  129. "57":"y",
  130. "58":"y",
  131. "59":"y",
  132. "60":"y",
  133. "61":"y",
  134. "62":"y",
  135. "63":"y",
  136. "64":"y",
  137. "65":"y",
  138. "66":"y",
  139. "67":"y",
  140. "68":"y",
  141. "69":"y",
  142. "70":"y",
  143. "71":"y",
  144. "72":"y",
  145. "73":"y",
  146. "74":"y",
  147. "75":"y",
  148. "76":"y",
  149. "77":"y",
  150. "78":"y",
  151. "79":"y",
  152. "80":"y",
  153. "81":"y",
  154. "82":"y",
  155. "83":"y",
  156. "84":"y",
  157. "85":"y",
  158. "86":"y",
  159. "87":"y",
  160. "88":"y",
  161. "89":"y",
  162. "90":"y",
  163. "91":"y",
  164. "92":"y",
  165. "93":"y",
  166. "94":"y",
  167. "95":"y",
  168. "96":"y",
  169. "97":"y",
  170. "98":"y",
  171. "99":"y",
  172. "100":"y"
  173. },
  174. "chrome":{
  175. "4":"y",
  176. "5":"y",
  177. "6":"y",
  178. "7":"y",
  179. "8":"y",
  180. "9":"y",
  181. "10":"y",
  182. "11":"y",
  183. "12":"y",
  184. "13":"y",
  185. "14":"y",
  186. "15":"y",
  187. "16":"y",
  188. "17":"y",
  189. "18":"y",
  190. "19":"y",
  191. "20":"y",
  192. "21":"y",
  193. "22":"y",
  194. "23":"y",
  195. "24":"y",
  196. "25":"y",
  197. "26":"y",
  198. "27":"y",
  199. "28":"y",
  200. "29":"y",
  201. "30":"y",
  202. "31":"y",
  203. "32":"y",
  204. "33":"y",
  205. "34":"y",
  206. "35":"y",
  207. "36":"y",
  208. "37":"y",
  209. "38":"y",
  210. "39":"y",
  211. "40":"y",
  212. "41":"y",
  213. "42":"y",
  214. "43":"y",
  215. "44":"y",
  216. "45":"y",
  217. "46":"y",
  218. "47":"y",
  219. "48":"y",
  220. "49":"y",
  221. "50":"y",
  222. "51":"y",
  223. "52":"y",
  224. "53":"y",
  225. "54":"y",
  226. "55":"y",
  227. "56":"y",
  228. "57":"y",
  229. "58":"y",
  230. "59":"y",
  231. "60":"y",
  232. "61":"y",
  233. "62":"y",
  234. "63":"y",
  235. "64":"y",
  236. "65":"y",
  237. "66":"y",
  238. "67":"y",
  239. "68":"y",
  240. "69":"y",
  241. "70":"y",
  242. "71":"y",
  243. "72":"y",
  244. "73":"y",
  245. "74":"y",
  246. "75":"y",
  247. "76":"y",
  248. "77":"y",
  249. "78":"y",
  250. "79":"y",
  251. "80":"y",
  252. "81":"y",
  253. "83":"y",
  254. "84":"y",
  255. "85":"y",
  256. "86":"y",
  257. "87":"y",
  258. "88":"y",
  259. "89":"y",
  260. "90":"y",
  261. "91":"y",
  262. "92":"y",
  263. "93":"y",
  264. "94":"y",
  265. "95":"y",
  266. "96":"y",
  267. "97":"y",
  268. "98":"y",
  269. "99":"y",
  270. "100":"y",
  271. "101":"y",
  272. "102":"y",
  273. "103":"y"
  274. },
  275. "safari":{
  276. "3.1":"u",
  277. "3.2":"y",
  278. "4":"y",
  279. "5":"y",
  280. "5.1":"y",
  281. "6":"y",
  282. "6.1":"y",
  283. "7":"y",
  284. "7.1":"y",
  285. "8":"y",
  286. "9":"y",
  287. "9.1":"y",
  288. "10":"y",
  289. "10.1":"y",
  290. "11":"y",
  291. "11.1":"y",
  292. "12":"y",
  293. "12.1":"y",
  294. "13":"y",
  295. "13.1":"y",
  296. "14":"y",
  297. "14.1":"y",
  298. "15":"y",
  299. "15.1":"y",
  300. "15.2-15.3":"y",
  301. "15.4":"y",
  302. "TP":"y"
  303. },
  304. "opera":{
  305. "9":"u",
  306. "9.5-9.6":"y",
  307. "10.0-10.1":"y",
  308. "10.5":"y",
  309. "10.6":"y",
  310. "11":"y",
  311. "11.1":"y",
  312. "11.5":"y",
  313. "11.6":"y",
  314. "12":"y",
  315. "12.1":"y",
  316. "15":"y",
  317. "16":"y",
  318. "17":"y",
  319. "18":"y",
  320. "19":"y",
  321. "20":"y",
  322. "21":"y",
  323. "22":"y",
  324. "23":"y",
  325. "24":"y",
  326. "25":"y",
  327. "26":"y",
  328. "27":"y",
  329. "28":"y",
  330. "29":"y",
  331. "30":"y",
  332. "31":"y",
  333. "32":"y",
  334. "33":"y",
  335. "34":"y",
  336. "35":"y",
  337. "36":"y",
  338. "37":"y",
  339. "38":"y",
  340. "39":"y",
  341. "40":"y",
  342. "41":"y",
  343. "42":"y",
  344. "43":"y",
  345. "44":"y",
  346. "45":"y",
  347. "46":"y",
  348. "47":"y",
  349. "48":"y",
  350. "49":"y",
  351. "50":"y",
  352. "51":"y",
  353. "52":"y",
  354. "53":"y",
  355. "54":"y",
  356. "55":"y",
  357. "56":"y",
  358. "57":"y",
  359. "58":"y",
  360. "60":"y",
  361. "62":"y",
  362. "63":"y",
  363. "64":"y",
  364. "65":"y",
  365. "66":"y",
  366. "67":"y",
  367. "68":"y",
  368. "69":"y",
  369. "70":"y",
  370. "71":"y",
  371. "72":"y",
  372. "73":"y",
  373. "74":"y",
  374. "75":"y",
  375. "76":"y",
  376. "77":"y",
  377. "78":"y",
  378. "79":"y",
  379. "80":"y",
  380. "81":"y",
  381. "82":"y",
  382. "83":"y"
  383. },
  384. "ios_saf":{
  385. "3.2":"u",
  386. "4.0-4.1":"y",
  387. "4.2-4.3":"y",
  388. "5.0-5.1":"y",
  389. "6.0-6.1":"y",
  390. "7.0-7.1":"y",
  391. "8":"y",
  392. "8.1-8.4":"y",
  393. "9.0-9.2":"y",
  394. "9.3":"y",
  395. "10.0-10.2":"y",
  396. "10.3":"y",
  397. "11.0-11.2":"y",
  398. "11.3-11.4":"y",
  399. "12.0-12.1":"y",
  400. "12.2-12.5":"y",
  401. "13.0-13.1":"y",
  402. "13.2":"y",
  403. "13.3":"y",
  404. "13.4-13.7":"y",
  405. "14.0-14.4":"y",
  406. "14.5-14.8":"y",
  407. "15.0-15.1":"y",
  408. "15.2-15.3":"y",
  409. "15.4":"y"
  410. },
  411. "op_mini":{
  412. "all":"y"
  413. },
  414. "android":{
  415. "2.1":"u",
  416. "2.2":"u",
  417. "2.3":"y",
  418. "3":"y",
  419. "4":"y",
  420. "4.1":"y",
  421. "4.2-4.3":"y",
  422. "4.4":"y",
  423. "4.4.3-4.4.4":"y",
  424. "99":"y"
  425. },
  426. "bb":{
  427. "7":"y",
  428. "10":"y"
  429. },
  430. "op_mob":{
  431. "10":"y",
  432. "11":"y",
  433. "11.1":"y",
  434. "11.5":"y",
  435. "12":"y",
  436. "12.1":"y",
  437. "64":"y"
  438. },
  439. "and_chr":{
  440. "100":"y"
  441. },
  442. "and_ff":{
  443. "98":"y"
  444. },
  445. "ie_mob":{
  446. "10":"y",
  447. "11":"y"
  448. },
  449. "and_uc":{
  450. "12.12":"y"
  451. },
  452. "samsung":{
  453. "4":"y",
  454. "5.0-5.4":"y",
  455. "6.2-6.4":"y",
  456. "7.2-7.4":"y",
  457. "8.2":"y",
  458. "9.2":"y",
  459. "10.1":"y",
  460. "11.1-11.2":"y",
  461. "12.0":"y",
  462. "13.0":"y",
  463. "14.0":"y",
  464. "15.0":"y",
  465. "16.0":"y"
  466. },
  467. "and_qq":{
  468. "10.4":"y"
  469. },
  470. "baidu":{
  471. "7.12":"y"
  472. },
  473. "kaios":{
  474. "2.5":"y"
  475. }
  476. },
  477. "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`HTMLElement.innerText` is similar to, but has some important differences from, the standard [`Node.textContent`](https://caniuse.com/#feat=textcontent) property.",
  478. "notes_by_num":{
  479. },
  480. "usage_perc_y":97.62,
  481. "usage_perc_a":0,
  482. "ucprefix":false,
  483. "parent":"",
  484. "keywords":"inner,text,content",
  485. "ie_id":"",
  486. "chrome_id":"",
  487. "firefox_id":"",
  488. "webkit_id":"",
  489. "shown":true
  490. }