User-Select
-ms-user-select is a new CSS property that lets web developers control where users are able to
select text within their web pages.
#blog {
-ms-user-select:none;
-webkit-user-select:none;
-moz-user-select:-moz-none;
}
#blog, #blog input, #blog textarea,
#blog *[contenteditable=true] {
-ms-user-select:none;
-webkit-user-select:none;
-moz-user-select: -moz-none;
}
#blogPost {
-ms-user-select:element;
-webkit-user-select:text;
-moz-user-select: text;
}
#blog{
-ms-user-select:none;
-webkit-user-select:none;
-moz-user-select: -moz-none;
}
.comment {
-ms-user-select:element;
-moz-user-select:text;
-webkit-user-select:text;
}
#blog{
-ms-user-select:none;
-moz-user-select:-moz-none;
-webkit-user-select:none;
}
#blogPost, .comment {
-ms-user-select:text;
}
#blog {
-ms-user-select:none;
}
HTML5 History in IE10
ieblog 31 Oct 2011 3:42 PM
Building fast and functional sites is a challenge with which most Web developers are familiar. Loading a new page every time the user clicks a link is slow. Fetching all content dynamically effectively disables the back button. Working with hashes is better, but still not ideal. Internet Explorer 10 in the Windows Developer Preview eliminates the compromise by adding support for HTML5 History. The pushState, replaceState, and popstate APIs provide fine-grained control over the behavior of the back button and the URL presented to the user for dynamic content. Together these APIs help you improve the performance of your site without sacrificing usability.
...
Comments
Will
Thank you!!!
Leave a Comment
-ms-user-select: none
-ms-user-select:none will block selection from starting on that element. It will not block an
existing selection from entering the element.
This paragraph blocks selection from starting here.
-ms-user-select: element
-ms-user-select:element enables selection to start within the element, however, the selection
will
be contained by the bounds of that element.
This paragraph limits selection to within it's bounds.
-ms-user-select: text
-ms-user-select:text enables selection to start within the element and extend past the element's
bounds.
This paragraph allows unbounded selection.
Interop Notes
user-select is not currently part of any W3C CSS specification. It was originally proposed in
the User Interface for CSS3 module; this module has since been superseded by CSS3 Basic User Interface Module which does not define the
user-select
property. Both Mozilla and Webkit
support their own prefixed versions of this property. There are minor differences between the three
implementations so be sure to test your application across browsers.
Paul
Excellent and much needed feature!