Skip to content

Instantly share code, notes, and snippets.

@robflaherty
Created November 8, 2011 17:35
Show Gist options
  • Select an option

  • Save robflaherty/1348477 to your computer and use it in GitHub Desktop.

Select an option

Save robflaherty/1348477 to your computer and use it in GitHub Desktop.
IE styles copying to clipboard

In IE8 and IE9, copy/pasting into Microsoft Word produces different results depending on the order of the class names specified in the HTML. In the first case, the display: none declaration is copied to the Clipboard; in the second case it is omitted.

JSFiddle: http://jsfiddle.net/sBthg/4/

Thoughts?

@mathiasbynens

Copy link
Copy Markdown

Woah.

@robflaherty

Copy link
Copy Markdown
Author

I added a third class (changing font size) and this is also ignored. Really appears that only the first class is recognized. http://jsfiddle.net/MNNAd/1/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment