ampproject / ampproject/amp.dev

Add documentation on using script amp-onerror

Open
#5,442 0 comments 0 reactions 0 assignees View on GitHub
Status: Pending Triage Type: Feature
Dominant language
HTML
Stars
600
Forks
675
PR merge metrics
No merged PRs in 30d

Description

## 🚀 Feature Request

Add documentation for ``.

### Problem
The validator will shortly allow `<script amp-onerror>document.querySelector("script[src*='/v0.js']").onerror=function(){document.querySelector('style[amp-boilerplate]').textContent=''}` and we do not have any documentation for it.

See [ampproject/amphtml #22543](https://github.com/ampproject/amphtml/issues/22543#issuecomment-673603872) for background.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.