Skip to content

Allow option attribute for children of amp-selector in templates#9585

Merged
cvializ merged 1 commit intoampproject:masterfrom
cvializ:cv-option
May 26, 2017
Merged

Allow option attribute for children of amp-selector in templates#9585
cvializ merged 1 commit intoampproject:masterfrom
cvializ:cv-option

Conversation

@cvializ
Copy link
Copy Markdown
Contributor

@cvializ cvializ commented May 26, 2017

Even though this change is in #9553, I want to merge this piece specifically to allow the workaround in #9536 to work.

@cvializ cvializ merged commit 938e076 into ampproject:master May 26, 2017
@cvializ cvializ deleted the cv-option branch May 26, 2017 19:46
10xjs added a commit to metalabdesign/ampstart that referenced this pull request Jul 14, 2017
Validation currently fails due to ampproject/amphtml#9536 (comment).

```html
<amp-list>
  <template type="amp-mustache">
    <amp-selector>
      <!-- `option` on the next line fails amp validation -->
      <div option="a">A<div>
    </amp-selector>
  </template>
<amp-list>
```

Once ampproject/amphtml#9585 lands, this will no longer be a validation error.
10xjs added a commit to metalabdesign/ampstart that referenced this pull request Jul 19, 2017
Validation currently fails due to ampproject/amphtml#9536 (comment).

```html
<amp-list>
  <template type="amp-mustache">
    <amp-selector>
      <!-- `option` on the next line fails amp validation -->
      <div option="a">A<div>
    </amp-selector>
  </template>
<amp-list>
```

Once ampproject/amphtml#9585 lands, this will no longer be a validation error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants