Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve docs for getNative parameter in dataTransfer.getData #1121

Open
mlewand opened this issue Nov 6, 2017 · 0 comments
Open

Improve docs for getNative parameter in dataTransfer.getData #1121

mlewand opened this issue Nov 6, 2017 · 0 comments
Labels
status:confirmed An issue confirmed by the development team. type:task Any other issue (refactoring, typo fix, etc).

Comments

@mlewand
Copy link
Contributor

mlewand commented Nov 6, 2017

Are you reporting a feature request or a bug?

Other

Provide detailed reproduction steps (if any)

The getNative parameter was added solely for text/html type, and should be documented that way.

It should add a clear example, e.g. from Windows env what is it used for, namely getting:

<html>
<body link=blue vlink=purple>

<table border=0 cellpadding=0 cellspacing=0 width=130 style='border-collapse:
 collapse;width:130pt'>
<!--StartFragment-->
 <col width=65 span=2 style='width:65pt'>
 <tr height=15 style='height:15.0pt'>
  <td height=15 width=65 style='height:15.0pt;width:65pt'>Foo</td>
  <td width=65 style='width:65pt'></td>
 </tr>
 <tr height=15 style='height:15.0pt'>
  <td height=15 style='height:15.0pt'></td>
  <td>Bar</td>
 </tr>
<!--EndFragment-->
</table>

</body>
</html>

Instead of:

 <col width=65 span=2 style='width:65pt'>
 <tr height=15 style='height:15.0pt'>
  <td height=15 width=65 style='height:15.0pt;width:65pt'>Foo</td>
  <td width=65 style='width:65pt'></td>
 </tr>
 <tr height=15 style='height:15.0pt'>
  <td height=15 style='height:15.0pt'></td>
  <td>Bar</td>
 </tr>
@msamsel msamsel added status:confirmed An issue confirmed by the development team. type:task Any other issue (refactoring, typo fix, etc). labels Nov 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:confirmed An issue confirmed by the development team. type:task Any other issue (refactoring, typo fix, etc).
Projects
None yet
Development

No branches or pull requests

2 participants