Commit 8262793d authored by KitaitiMakoto's avatar KitaitiMakoto

Use attribute_with_prefix to extract attribute values

parent 3f04fb21
Pipeline #34718178 passed with stages
in 1 minute and 26 seconds
......@@ -66,7 +66,7 @@ module EPUB
metadata.content = content
return metadata
end
super(doc.root, doc.root['unique-identifier'], 'metadata')
super(doc.root, doc.root.attribute_with_prefix('unique-identifier'), 'metadata')
end
def parse_rights(content)
......
......@@ -44,7 +44,7 @@ module EPUB
end
def parse_metadata(doc)
super(doc.each_element_by_xpath('/opf:package/opf:metadata', EPUB::NAMESPACES).first, doc.root['unique-identifier'], 'opf')
super(doc.each_element_by_xpath('/opf:package/opf:metadata', EPUB::NAMESPACES).first, doc.root.attribute_with_prefix('unique-identifier'), 'opf')
end
def parse_manifest(doc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment