Not really. To continue the analogy, in HTML doesn't really have keywords, but has syntax in the form of brackets, quotes, =, etc. Tags are like function calls, and the built in tags are like the standard library. Until custom elements you couldn't declare "functions".
Why not define an actual subset of HTML? You know, like XHTML Strict Mode?
Why must everything be a JavaScript library?!