cross-browser

a:active vs mousedown event preventDefault()-ed

梦想的初衷 提交于 2019-12-12 16:12:28
问题 The case we have an <a> element with :active state specified in CSS in JavaScript code we listen to mousedown event and call event.preventDefault() for some reasons :) As a result: in Firefox when I move mouse cursor over the anchor and click it -- anchor is not displayed as :active I have also tested this issue in some Chrome / Opera / IE versions -- all that browsers had decorated the anchor as if it was :active . Here is a test for the case: http://jsbin.com/azajex/4 The question On W3C

Safari jquery compatibility

爱⌒轻易说出口 提交于 2019-12-12 14:43:15
问题 I have 2 files I'm dealing with. The first file is the main page and it uses .load() to display the second file. Safari runs the jquery on the first page just fine but it doesn't seem to be running the jquery in the file that is retrieved through .load(). I tried putting an alert() as the first line in $(document).ready(function(){}); and it simply isn't run in Safari. In Chrome, all the jquery runs as expected. Any clue what might be causing this? edit: here is a small example of the problem

KnockoutJS + Polymer: bindings break (Outside of Chrome)

此生再无相见时 提交于 2019-12-12 14:40:49
问题 EDIT: This only appears outside of Chrome I'm using KO to fill in elements using foreach bindings. On the other side of the coin, I've got Polymer loaded up to make use of Google's Material Design styling. The issue is that there seems to be an assertion in the platform.js file (Polymer) that is trying to take over the data-bind even though Polymer doesn't use the data-bind attribute. Wondering if anybody has had any experience using both of these, or any suggestions? Error is below: Error:

Chrome appears to ignore user-select in a contenteditable div

大憨熊 提交于 2019-12-12 14:27:19
问题 I need to make it so some elements inside a contenteditable div are not selectable, so that the user will skip over them if they try to move the caret around where they are. The obvious solution appears to be to style these sections using user-select: none . This works really well in Firefox, but, unfortunately, completely fails in Google Chrome. .ok { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; } .nope { -webkit-user-select: none; -moz-user

Compatibility issues with IE7?

谁说我不能喝 提交于 2019-12-12 14:26:16
问题 I'm working on a site and having compatibility issues with IE7 (not working) vs IE8/Firefox (working). Can someone take a look at the following CSS and Screenshots and tell me why my site is broken in IE7 and what I can do to fix it? The site in question is live here: CollectionTree and my css part for that view is #landingMainContainer { padding-left:10px; margin: 0 auto; text-align: center; min-height: 400px; width: 960px; } .landingTop { width:100%; min-height:400px; background:url('

Problem passing parameters via Iframe in IE

£可爱£侵袭症+ 提交于 2019-12-12 14:25:12
问题 I'm trying to execute an HTTP GET from my website to another website that is brought in via iframe. On Firefox, you can see in the source that the correct url is in the iframe src along with it's correct parameters-- and it works. On IE, you can see in the source that the correct url is in the iframe src along with it's correct parameters-- and it doesn't work... Is there something about IE that doesn't let you pass parameters through an iframe in the querystring? I've tried refreshing the

Cross-browser event handling

眉间皱痕 提交于 2019-12-12 13:36:49
问题 I need a cross-browser function for registering event handlers and a (mostly) consistent handler experience. I don't need the full weight or functionality of a library such as jQuery, so I've written my own. I believe I've accomplished my goals with the code below, and so far my testing has been successful, but I've been staring at it for too long. Are there any flaws in my logic or gotchas that I'm missing? EDIT 1: Commented each block with browser intent for clarity. Updated IE block to not

Which css hacks for IE 6 and 7 are future proof?

两盒软妹~` 提交于 2019-12-12 13:34:04
问题 Which css hacks for IE 6 and 7 are future proof? i mean if i use then then they would never create any problem and their patch will never be implemented? manage 2 css one for all and one for IE is time consuming and it adds one extra style sheet also. and if any hack can solve problem within main css then it's a timesaver and when multiple people work on same project then most of time we forgot to make change in conditional css too. i'm not asking about condition stylesheet 回答1: none. Use IE

How to make min-width in percentage work in in IE7?

好久不见. 提交于 2019-12-12 12:43:43
问题 How to make {min-width:100%} work in in IE7? working fine in IE8+ and other browsers. I'm using a dropdown menu where width of dropdown should depend on longest text in dropdown but not less then the parent's link width. So I added min-width:100% to dropdown. But it's working for other browsers but not for IE7. How I can make it work? Demo is here to fork and play with it. Check this in IE7 http://codepen.io/jitendravyas/pen/AheDs 回答1: Please check This i think its exactly what you are

IE11 Ignoring @page rule?

徘徊边缘 提交于 2019-12-12 12:13:31
问题 I'm trying to set the margins on a page that I am printing. In chrome, it looks great. IE not so much. I'm trying to set the margins like so: @media print { @page { margin: -0.5cm; margin-left: -1.5cm; margin-right: -1.5cm; } } I'm referencing the css file like this in the head: <link rel="stylesheet" href="Content/print.css" type="text/css" media="print"> I'm able to adjust the margins just fine in chrome by tweaking the margin values, but in IE11, it seems to be completely ignoring this....