mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-27 14:48:19 +00:00
Style tweaks for #6755
This commit is contained in:
parent
76bc2f7524
commit
ceec7b5737
@ -42,8 +42,8 @@ ElementWidget.prototype.render = function(parent,nextSibling) {
|
|||||||
this.tag = "h" + headingLevel;
|
this.tag = "h" + headingLevel;
|
||||||
}
|
}
|
||||||
// Select the namespace for the tag
|
// Select the namespace for the tag
|
||||||
var XHTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
|
var XHTML_NAMESPACE = "http://www.w3.org/1999/xhtml",
|
||||||
var tagNamespaces = {
|
tagNamespaces = {
|
||||||
svg: "http://www.w3.org/2000/svg",
|
svg: "http://www.w3.org/2000/svg",
|
||||||
math: "http://www.w3.org/1998/Math/MathML",
|
math: "http://www.w3.org/1998/Math/MathML",
|
||||||
body: XHTML_NAMESPACE
|
body: XHTML_NAMESPACE
|
||||||
@ -52,7 +52,7 @@ ElementWidget.prototype.render = function(parent,nextSibling) {
|
|||||||
if(this.namespace) {
|
if(this.namespace) {
|
||||||
this.setVariable("namespace",this.namespace);
|
this.setVariable("namespace",this.namespace);
|
||||||
} else {
|
} else {
|
||||||
if (this.hasAttribute("xmlns")) {
|
if(this.hasAttribute("xmlns")) {
|
||||||
this.namespace = this.getAttribute("xmlns");
|
this.namespace = this.getAttribute("xmlns");
|
||||||
this.setVariable("namespace",this.namespace);
|
this.setVariable("namespace",this.namespace);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user