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
super(doc.root, doc.root['unique-identifier'], 'metadata')
super(doc.root, doc.root.attribute_with_prefix('unique-identifier'), 'metadata')
def parse_rights(content)
......@@ -44,7 +44,7 @@ module EPUB
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')
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