Giter Club home page Giter Club logo

bugged_form-win7_ie11's Introduction

概要

このフォーム

  • Windows7
  • Internet Explorer 11 (11.0.9600.18617)

において、

  • dl,dt,ddの子要素にフォームの部品があるフォーム

で、上から順番にTabでフォーカスを移動させると、ラジオボタンの直後のテキストボックスの表示がおかしくなる現象の検証用のフォームです。

なお、当現象はWin10のIE11や、他のブラウザでは発生しませんでした。

現象

通常、フォーカスが当たった場合、focustest.jsによりfocusクラスが付与され、styletest.cssのinput[type="text"].focusまたはinput[type="email"].focusによる、青いエフェクトが付与される(下図1)のが正常な動作ですが、上記の条件(Win7のIE11で、ラジオボタンの直後のテキストボックスにTabで移動する)では白抜けしてしまいます(下図2)。しかも、この状態でテキストを入力すると文字も白(透明?)になってしまい、何が入力されたか分からなくなるという少し困った現象になります。なお、この状態は他のテキストボックスなどにフォーカスを移動させると直ります。

フォーカスの当たったテキストボックス(正常な場合)

図1:フォーカスの当たったテキストボックス(正常な場合)

フォーカスの当たったテキストボックス(問題の現象発生時)

図2:フォーカスの当たったテキストボックス(問題の現象発生時)

対処

下記対処により現象が回避できることが確認できました。

  • dl,dt,ddタグを使用しない(ラジオボタン直後のテキストボックスの親要素のddだけdivタグに変更するなど)
  • フォーム全体を囲っているdivタグに指定されたwidth:960px;を960px以外の数値に変更する
  • ddに適用されるmargin-left, border-top, paddingのいずれか1つをやめる

ただし、何故これで現象が回避できるのか理由が分かりませんでした。

bugged_form-win7_ie11's People

Contributors

arm-band avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.