About the https://github.com/borkdude/html library: > actually I still have to think about the default :) > hiccup/hiccup outputs XHTML by default and personally I never felt inclined to change this default, so perhaps borkdude.html should do the same Any feedback on this?
π§΅
what is your goal with the library? there's already clojure.xml and clojure.data.xml for dealing with xml. presumably, most uses of bk.html will be generating html for use in websites for modern browsers, all of which follow html5.
The goal is to port squint's html feature to JVM (and ClojureScript). So far I've had no complaints about squint outputting xhtml since setInnerHTML doesn't care about it
I thought xhtml wasn't being developed anymore and html was? I mean browsers will forever parse both so maybe it doesn't matter since this is producing html and not parsing it? I know some elements are new in html and I'm not sure if they're valid xhtml
@corasaurus-hex Like which ones?
If you have any resources on this, appreciated
for sure! so from the https://en.wikipedia.org/wiki/XHTML:
> In 2009, the W3C allowed the XHTML 2.0 Working Group's charter to expire, acknowledging that HTML5 would be the sole next-generation HTML standard, including both XML and non-XML serializations
You can search in the https://www.w3.org/TR/xhtml11/xhtml11_schema.html#a_xhtml11_schema for new html elements like article or section and you'll see that it's not there. You can contrast that with the https://html.spec.whatwg.org/ where you'll find many new elements not present in the XHTML spec.
That said, there's now "https://en.wikipedia.org/wiki/HTML5#XHTML5_(XML-serialized_HTML5)" which is an XML-serialization of HTML5, which is just HTML5 with XML formatting and a different Content-Type header, essentially. More on that here: https://html.spec.whatwg.org/multipage/xhtml.html#xhtml -- but if you open that link you'll see this warning from the spec:
> Using the XML syntax is not recommended, for reasons which include the fact that there is no specification which defines the rules for how an XML parser must map a string of bytes or characters into a Document object, as well as the fact that the XML syntax is essentially unmaintained β in that, itβs not expected that any further features will ever be added to the XML syntax (even when such features have been added to the https://html.spec.whatwg.org/multipage/syntax.html#syntax).
all signs, from what I can tell, point to the world having moved on from xhtml to html
thanks
HTML5 it is: https://github.com/borkdude/html?tab=readme-ov-file#complete-document
I'd vote for html as well.