amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

amp-accordion: Uncaught TypeError: Cannot read property 'setAttribute' of undefined

Open devnullzero opened this issue 10 years ago • 1 comments

Short description of your issue:

Currently, when using amp-accordion, I'm getting the following error when a html tag is present and clicked in the first child of a <section>. It was working flawlessly in the afternoon (EDT).

amp-accordion.js:80 Uncaught TypeError: Cannot read property 'setAttribute' of undefined

How do we reproduce the issue?

Using the following snippet:

<amp-accordion>
  <section>
    <h1>1) Click me first... two time - <i>2) Click me now ... two time</i></h1>
    <p>Bunch of awesome content</p>
  </section>
</amp-accordion>

Click on "1) Click me first..." part of the h1 -> Working Click on "2) Click me now...." part of the h1 -> Error triggered by clicking the <i> tag.

What browsers are affected?

Affecting all browsers / devices.

Which AMP version is affected?

  • 1462999126709
  • 1463071969513

devnullzero avatar May 13 '16 01:05 devnullzero

/to @sriramkrish85

dvoytenko avatar May 13 '16 15:05 dvoytenko