What's the rule of the xhtml?
YtihalX opened this issue · 6 comments
What's the rule of the xhtml file, like preferences.xhtml
? I've looked up the MDN and it seems to be non standard xml, and I didn't find it in the repo's document or anywhere else.
https://developer.mozilla.org/en-US/docs/Glossary/XHTML
It is/can be privileged with support to XUL elements (https://docs.huihoo.com/xul/xul-element-reference/) in Zotero, compared to HTML, which is non-privileged.
So it's XUL instead of HTML?
Well thanks, I'll pick up some XUL then.
It supports both XUL and HTML elements, to be clear
Sorry I don't get it, then won't these two cause conflicts?
I mean, can preferences.xhtml
be interpreted both as XUL and as HTML?
nothing will be interpreted; xhtml
is natively supported. and there won't be conflicts, XUL and HTML are under different namespace.
In preferences.xhtml I think it defaults to XUL and you can create HTML elements with <html:div></html:div>
:
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
gotcha, thanks for your patient explanations 👍