Re:How to Hack APIs in 2021
by wizzwizz4 on Tuesday August 10, 2021 @11:18AM
(#28129871)
? What's wrong with XHTML? <img /> is clearer than <img> for anyone familiar with XML, and XHTML documents are easier to parse (e.g. can be processed with XSLT stylesheets).
[ Parent
| on HN ]
Re:How to Hack APIs in 2021
by tannhaeuser on Tuesday August 10, 2021 @12:11PM
(#28130619)
Nothing wrong with XHTML per se (did an internal site using XSLT in early/mid 2000s), but XML/XHTML has been on the way out for the better part of this millenium on the web at least. If you're developing web content and/or browser apps, you should know HTML IMO, and XML is the least of your concerns. Not looking forward to apps mixing XSLT and JavaScript ;)
Can't stand "<bla />" though with that pointless/clueless space. The only place where I've encountered these are older JSP, FreeMarker, or Thymeleaf/Spring MVC apps (ugh).
Re:How to Hack APIs in 2021
by debaserab2 on Tuesday August 10, 2021 @12:28PM
(#28130831)
JSX (React's default markup language) expects all tags to be closed, and self closing tags are valid. If you spend a significant time writing React apps (with JSX) then it becomes pretty second nature to write self closing tags. It's not exactly XHTML (I can't think of any other of XHTML's idioms it uses).