Conversation
Codecov Report
@@ Coverage Diff @@
## master #162 +/- ##
==========================================
- Coverage 97.96% 97.96% -0.01%
==========================================
Files 57 57
Lines 1963 1962 -1
==========================================
- Hits 1923 1922 -1
Misses 40 40
Continue to review full report at Codecov.
|
|
Is it possible to tag them with |
|
Unfortunately this HTML is not under my control. What about extend condition in |
|
Would it work for you to add a # Assuming plain roadie here; check roadie-rails's config if you are using that.
document.before_transformation = MarkInvalidStylesheetsAsIgnored.newclass MarkInvalidStylesheetsAsIgnored
def call(dom, _document)
dom.css('link[rel="stylesheet"][href^="?"]').each do |link|
link["data-roadie-ignore"] = "data-roadie-ignore"
end
end
end(Using a callable object to make it easier for you to unit test this.) |
Hi,
we have situation that our outgoing mails contains some part of HTML page which contains a link to stylesheets in query string form
Roadie raise error
in
build_file_pathmethod.I change this method to prevent this exception.
find_stylesheet!will raise CssNotFound when no real CSS file exist in href.