David Passmore
David Passmore

Reputation: 6099

Internet Explorer 10 ::-ms-clear within compatibility mode

I am trying to hide the input clear button within IE10 when it is in compatibility mode.

I have used this:

input[type=text]::-ms-clear, input[type=text]::-ms-reveal {
    display: none;
}

This works for IE10 Standards mode but not compatibility mode.

Any ideas how i can do this? Is there any way to disable it using JavaScript?

Upvotes: 4

Views: 2863

Answers (1)

Chris Spittles
Chris Spittles

Reputation: 15359

I know this isn't the answer you are perhaps looking for but Microsoft have said that this is "by design" and "is a feature" of the browser and will not fix it.

http://connect.microsoft.com/IE/feedback/details/783743/disable-ie10-clear-field-button-when-rendering-in-compatibility-mode

The product team believes this item works according to its intended design.

Some people have tried setting line-height: 0; height: 0; padding: 8px; padding-bottom: 8px; with some degree of success as per the following post:

How to remove clear button ( 'X' button ) from IE10 textboxes in compatibility mode?

Upvotes: 2

Related Questions