Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevinburke/tecate
Figure out when your HTML is busted
https://github.com/kevinburke/tecate
Last synced: 29 days ago
JSON representation
Figure out when your HTML is busted
- Host: GitHub
- URL: https://github.com/kevinburke/tecate
- Owner: kevinburke
- License: mit
- Created: 2013-02-11T03:14:15.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-06-03T16:22:31.000Z (over 9 years ago)
- Last Synced: 2024-05-01T23:57:52.544Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 252 KB
- Stars: 110
- Watchers: 6
- Forks: 8
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tecate.js
Writing HTML is hard. Let's go shopping
### Usage
You have an HTML file and you want to check if you made a mistake writing the
HTML tags. Drop `tecate.js` into the <head> of your HTML document, like
this:```html
```
Then if there's a problem with your HTML, you'll start getting nice error
messages, like this:### But you shouldn't put Javascript in the <head>
[I agree][footer]. The problem is if you load the `tecate.js` file after, say,
an unclosed link tag:```html
```It won't load properly and you'll never get the message telling you it didn't
load! That's why I recommend putting `tecate.js` in the <head> of your HTML
file.[footer]: http://stackoverflow.com/a/5329895/329700
### Catching Bugs
Tecate will display an error message straight to the page if you messed up your
HTML. Here are some of the bugs it can catch for you:##### Missing a Closing Bracket
Say you forgot to end a tag with a bracket, or closed it badly:
```html
```##### Missing Equals Sign For Attribute
```html
Some text
```##### Missing Opening or Closing Attribute Quotes
These are some of the most pernicious.
```html