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.
Hey! Thanks for covering Declarative Partial Updates! The reason we use Processing Instructions (<?marker>, <?start>, and <?end>) rather than HTML elements is to allow you to insert content without breaking existing HTML. For example, if you wanted to optionally add new row(s) (<tr>) to a table.
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 ...