Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

ステージ1のnth-childが意図通り動作しない(Chrome)? #31

Description

@mesh1nek0x0

こちらのコードに問題があるわけではないのですが、
Chrome前提の教材?で動作しない箇所があったため、ご報告致します。

▼概要
Chrome側のバグなのか、意図する要素が取得できませんでした。。。

AssertionError: expected <li id="firebrick" title="firebrick">1</li> to have a property 'id' of 'brown', but got 'firebrick'
    at Context.<anonymous> (tests.js:227:31)

▼詳細
chromeバージョン: 52.0.2743.116 (64-bit)
にて以下の要素取得に失敗してしまうようです。

'7 番の赤色の要素を ID セレクタを使わずに1つ取得できる'
https://github.com/mixi-inc/JavaScriptTraining/blob/2015/public/stage1/tests.js#L221

※firefoxでは意図通り動作します。

selector chrome(52.0.2743.116 (64-bit)) firefox(48.0)
.js-training:nth-child(2) li 失敗(?) 成功(正しい)
.js-training:nth-child(3) li 成功(?) 失敗(正しい)
.js-training + .js-training li 成功 成功

img

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions