mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
full SVG support: symbol element fixed, attributes search improved
#WEB-12667 fixed
This commit is contained in:
@@ -94,7 +94,9 @@ public class RelaxedHtmlFromRngElementDescriptor implements XmlElementDescriptor
|
||||
|
||||
@Override
|
||||
public XmlAttributeDescriptor getAttributeDescriptor(String attributeName, final XmlTag context) {
|
||||
final XmlAttributeDescriptor descriptor = myDelegate.getAttributeDescriptor(attributeName.toLowerCase(), context);
|
||||
XmlAttributeDescriptor descriptor = myDelegate.getAttributeDescriptor(attributeName.toLowerCase(), context);
|
||||
// some elements in HTML5 schema (e.g. SVG) are case sensitive
|
||||
descriptor = descriptor == null ? myDelegate.getAttributeDescriptor(attributeName, context) : descriptor;
|
||||
if (descriptor != null) return descriptor;
|
||||
|
||||
return RelaxedHtmlFromSchemaElementDescriptor.getAttributeDescriptorFromFacelets(attributeName, context);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
namespace svg = "http://www.w3.org/2000/svg"
|
||||
namespace math = "http://www.w3.org/1998/Math/MathML"
|
||||
|
||||
include "svg11/svg11-tiny-inc.rnc"
|
||||
include "svg11/svg11-inc.rnc"
|
||||
include "mml3/mathml3-inc.rnc"
|
||||
|
||||
common.elem.phrasing |= svg
|
||||
|
||||
@@ -2,7 +2,7 @@ namespace svg = "http://www.w3.org/2000/svg"
|
||||
namespace math = "http://www.w3.org/1998/Math/MathML"
|
||||
namespace rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
|
||||
include "svg11/svg11-tiny-inc.rnc"
|
||||
include "svg11/svg11-inc.rnc"
|
||||
include "inkscape/inkscape.rnc"
|
||||
include "mml3/mathml3-inc.rnc"
|
||||
include "rdf/rdf.rnc"
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- /Users/denofevil/Code/sandbox/checker/validator/schema/html5-svg-mathml.rnc 2014-01-24 12:18:54.000000000 +0400
|
||||
+++ html5-svg-mathml.rnc 2014-01-25 15:32:10.000000000 +0400
|
||||
@@ -1,7 +1,7 @@
|
||||
namespace svg = "http://www.w3.org/2000/svg"
|
||||
namespace math = "http://www.w3.org/1998/Math/MathML"
|
||||
|
||||
-include "svg11/svg11-inc.rnc"
|
||||
+include "svg11/svg11-tiny-inc.rnc"
|
||||
include "mml3/mathml3-inc.rnc"
|
||||
|
||||
common.elem.phrasing |= svg
|
||||
@@ -1,11 +0,0 @@
|
||||
--- /Users/denofevil/Code/sandbox/checker/validator/schema/xhtml5-svg-mathml.rnc 2014-01-24 12:18:54.000000000 +0400
|
||||
+++ xhtml5-svg-mathml.rnc 2014-01-25 15:50:41.000000000 +0400
|
||||
@@ -2,7 +2,7 @@
|
||||
namespace math = "http://www.w3.org/1998/Math/MathML"
|
||||
namespace rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
|
||||
-include "svg11/svg11-inc.rnc"
|
||||
+include "svg11/svg11-tiny-inc.rnc"
|
||||
include "inkscape/inkscape.rnc"
|
||||
include "mml3/mathml3-inc.rnc"
|
||||
include "rdf/rdf.rnc"
|
||||
Reference in New Issue
Block a user