Hacker News new | past | comments | ask | show | jobs | submit login

This isn't an HTML subset, it's some freakish pseudo-HTML JS library weirdness.

Why not define an actual subset of HTML? You know, like XHTML Strict Mode?

Why must everything be a JavaScript library?!




It _is_ an HTML (and CSS) subset.

JavaScript is used to implement custom elements, like amp-image. That's just how custom elements work.


It's not a subset, it's not a superset. It lacks some HTML things and adds new ones.


Custom elements are a part of HTML, they can be part of a subset.

Disqualifying custom elements from an HTML subset would be like claiming function declarations can't be in subsets of JavaScript.


That's not really the same... HTML elements are more like keywords than functions.


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".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: