DEV: Remove xlink hrefs (#15059)

This commit is contained in:
Natalie Tay
2021-11-25 12:22:43 +08:00
committed by GitHub
parent 09260148b1
commit 4c46c7e334
20 changed files with 44 additions and 50 deletions

View File

@ -406,9 +406,6 @@ class UploadCreator
if use_el.attr('href')
use_el.remove_attribute('href') unless use_el.attr('href').starts_with?('#')
end
if use_el.attr('xlink:href')
use_el.remove_attribute('xlink:href') unless use_el.attr('xlink:href').starts_with?('#')
end
end
File.write(@file.path, doc.to_s)
@file.rewind