@@ -38,8 +38,7 @@ class Writer
3838 - if expanded_type.start_with?('_:')
3939 - haml_tag(get_qname(RDF.type), "rdf:nodeID" => expanded_type[2..-1])
4040 -else
41- - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
42- - haml_tag(get_qname(RDF.type), "", "rdf:resource" => expanded_type)
41+ - haml_tag(get_qname(RDF.type), "rdf:resource" => expanded_type)
4342 - predicates.each do |p|
4443 = yield(p)
4544 ) ,
@@ -60,11 +59,9 @@ class Writer
6059 - haml_tag(property, :"<", "xml:lang" => object.language, "rdf:datatype" => (object.datatype unless object.plain?)) do
6160 = object.value.to_s.encode(xml: :text)
6261 - elsif object.node?
63- - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
64- - haml_tag(property, "", "rdf:nodeID" => object.id)
62+ - haml_tag(property, :"/", "rdf:nodeID" => object.id)
6563 - else
66- - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
67- - haml_tag(property, "", "rdf:resource" => relativize(object))
64+ - haml_tag(property, :"/", "rdf:resource" => relativize(object))
6865 ) ,
6966
7067 # Outpust for a list
@@ -78,11 +75,9 @@ class Writer
7875 - if recurse && res = yield(object)
7976 = res
8077 - elsif object.node?
81- - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
82- - haml_tag(get_qname(RDF.Description), "", "rdf:nodeID" => (object.id if ref_count(object) > 1))
78+ - haml_tag(get_qname(RDF.Description), :"/", "rdf:nodeID" => (object.id if ref_count(object) > 1))
8379 - else
84- - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
85- - haml_tag(get_qname(RDF.Description), "", "rdf:about" => relativize(object))
80+ - haml_tag(get_qname(RDF.Description), :"/", "rdf:about" => relativize(object))
8681 ) ,
8782 }
8883 HAML_TEMPLATES = { base : BASE_HAML }
0 commit comments