With the new doctype and elements that are part of HTML5, how do you get xdmp:tidy()
to recognize those in HTML5?
If I have an html page that contains something like:
<!DOCTYPE html>
<html>
<header>blah</header>
<section>blah</section>
and then try something like:
xdmp:tidy(xdmp:document-get("home.html"))
I get errors like:
<section> is not recognized! discarding unexpected <section>
<header> is not recognized! discarding unexpected <header>
Are there some options I can send to xdmp:tidy()
to get it to handle it?