- From: Viktor <notifications@github.com>
- Date: Fri, 20 Mar 2015 01:04:23 -0700
- To: w3c/selection-api <selection-api@noreply.github.com>
- Message-ID: <w3c/selection-api/issues/7/83945870@github.com>
``` Test case: <input type="text" value="input" /><img src="http://www.w3.org/html/logo/badge/html5-badge-h-solo.png" alt="HTML5 Powered"/><div style="display:none;">display:none</div><div style="visibility:hidden;">visibility:hidden</div><table><caption>caption</caption><tr><td>1</td><td>2</td></tr><tr><td>3</td><td>4</td></tr></table><ol><li>item 1</li><li>item 2</li></ol><p>paragraph 1</p><p>paragraph 2</p> All browsers: element.textContent: "display:nonevisibility:hiddencaption1234item 1item 2paragraph 1paragraph 2" Chrome 41 selection.toString(): "\ncaption\n1\t2\n3\t4\nitem 1\nitem 2\nparagraph 1\n\nparagraph 2" element.innerText: "\ncaption\n1\t2\n3\t4\nitem 1\nitem 2\nparagraph 1\n\nparagraph 2" clipboardData: "HTML5 Powered\r\ncaption\r\n1\t2\r\n3\t4\r\nitem 1\r\nitem 2\r\nparagraph 1\r\n\r\nparagraph 2" dataTransfer: "HTML5 Powered\r\ncaption\r\n1\t2\r\n3\t4\r\nitem 1\r\nitem 2\r\nparagraph 1\r\n\r\nparagraph 2" Firefox 37 selection.toString(): "HTML5 Powered\r\ncaption1\t2\r\n3\t4\r\n\r\n item 1\r\n item 2\r\n\r\nparagraph 1\r\n\r\nparagraph 2" element.innerText: undefined clipboardData: "\nHTML5 Powered\ncaption1\t2\n3\t4\n\n item 1\n item 2\n\nparagraph 1\n\nparagraph 2" dataTransfer: "\r\nHTML5 Powered\r\ncaption1\t2\r\n3\t4\r\n\r\n item 1\r\n item 2\r\n\r\nparagraph 1\r\n\r\nparagraph 2" IE 11 selection.toString(): "display:nonevisibility:hiddencaption1234item 1item 2paragraph 1paragraph 2" element.innerText: "display:none\r\n\r\nvisibility:hidden\r\n\r\ncaption\r\n\r\n12\r\n34\r\nitem 1\r\nitem 2\r\n\r\nparagraph 1\r\n\r\nparagraph 2" clipboardData: "HTML5 Powered\r\n\r\n\r\n\r\n\r\ncaption\r\n\r\n1 2 \r\n3 4 \r\n1.item 1\r\n2.item 2\r\n\r\nparagraph 1\r\n\r\nparagraph 2\r\n" dataTransfer: "HTML5 Powered\r\n\r\n\r\n\r\n\r\ncaption\r\n\r\n1 2 \r\n3 4 \r\nitem 1\r\nitem 2\r\n\r\nparagraph 1\r\n\r\nparagraph 2\r\n" Opera 12 selection.toString(): "display:nonevisibility:hiddencaption1234item 1item 2paragraph 1paragraph 2" element.innerText: "display:nonevisibility:hiddencaption1234item 1item 2paragraph 1paragraph 2" clipboardData: "\r\ncaption1\t2\r\n3\t4\r\n\r\nitem 1\r\nitem 2\r\n\r\nparagraph 1\r\n\r\nparagraph 2" dataTransfer: "\ncaption1\t2\n3\t4\n\nitem 1\nitem 2\n\nparagraph 1\n\nparagraph 2" ``` --- Reply to this email directly or view it on GitHub: https://github.com/w3c/selection-api/issues/7#issuecomment-83945870
Received on Friday, 20 March 2015 08:04:53 UTC