Comments (4)
ampproject/amphtml/issues/1967 may help with this.
from ampbin.
ampproject/amphtml#999 (comment)
from ampbin.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<div id="validatorOutput"></div>
<script src="https://cdn.ampproject.org/v0/validator.js"></script>
<script>
const document_src = "<!doctype html><html amp><body>hello world</body></html>";
const results = amp.validator.validateString(document_src);
var output = amp.validator.renderValidationResult(
results, /*filename=*/ 'web_input').join('<br>');
document.getElementById('validatorOutput').innerHTML = output;
</script>
</body>
</html>
from ampbin.
Highlight errors
ace_line
class. n-th selector.
from ampbin.
Related Issues (20)
- auth/app-not-authorized HOT 1
- Custom bin names
- Create Modal
- How to run ampbin locally? HOT 3
- Failed to execute 'define' on 'CustomElementRegistry'
- Load bins faster HOT 1
- Have Cloud Function write AMP HTML to Cloud Storage
- Create another share button HOT 1
- toastr popups
- Toaster - Message
- Notify user when they have unsaved changes
- Save over an existing bin
- List user bins
- Document API
- Darkmode
- Support AMPHTML ad HOT 5
- Viewport Size HOT 7
- Toaster notifications
- Missing or insufficient permissions
- Static Assets HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ampbin.