725: CodePen 2.0, Templates on the Web, The Year of HTML? CodePen 2.0 is out now and we're talking about the launch, the idea of templating on the web, and how HTML could look very interesting in the future.
Post
shoptalkshow.com725: CodePen 2.0, Templates on the Web, The Year of HTML?CodePen 2.0 is out now and we're talking about the launch, the idea of templating on the web, and how HTML could look very interesting in the future.
If you used a <div> or <span> then you’d nest the contents. Which would break the DOM structure (like in this table example). Or if you used <tr> in this example, you could only insert one row. Or have to really mangled the DOM which is not good!
0 reposts0 likes
Earlier iterations DID use HTML nodes btw but we switched to these Processing Instructions to support these use cases. It’s does look a little weird at first I’ll admit, especially for PHP developers, but these exist in XML (developer.mozilla.org/en-US/docs/W...) — we’ve just brought them to HTML!
developer.mozilla.orgProcessingInstruction - Web APIs | MDNThe ProcessingInstruction interface represents a processing instruction; that is, a Node which embeds an instruction targeting a specific application but that can be ignored by any other applications ...