使用属于HTML5的新doctype和元素,您如何xdmp:tidy()识别HTML5中的那些?
如果我有一个包含以下内容的html页面:
<!DOCTYPE html>
<html>
<header>blah</header>
<section>blah</section>
Run Code Online (Sandbox Code Playgroud)
然后尝试类似的东西:
xdmp:tidy(xdmp:document-get("home.html"))
我得到的错误如下:
<section> is not recognized! discarding unexpected <section>
<header> is not recognized! discarding unexpected <header>
Run Code Online (Sandbox Code Playgroud)
我可以发送一些选项xdmp:tidy()让它来处理它吗?