Closed (works as designed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
search.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
13 Aug 2015 at 21:45 UTC
Updated:
28 Aug 2015 at 13:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kgoel commentedThis partial patch is from #2501757: Remove SafeMarkup::set in NodeSearch::prepareResults()-55 to show the work in the test coverage for returning the keyword inside the script tag. Testing manually for keyword inside script works as expected with #2501757: Remove SafeMarkup::set in NodeSearch::prepareResults()-55 but running test file on local returns the keyword inside the script tag.
Comment #4
yesct commentedas part of this issue, we should also test some tags besides just script.
Comment #5
jhodgdonOK, I'm a bit confused here.
You're saying that if you do this manually:
- Add a comment to a node, with a script tag with "rainbow" in it, in Full HTML
- Run cron to index
- Search for "rainbow"
that the result if you test manually is "no results", but the result in this test apparently isn't?
Comment #6
kgoel commented@jhodgdon, that is correct. If I test manually then there is no result for keyword search with keyword inside script tag but if I run SearchCommentTest.php locally then search does find keyword inside script tag which it shouldn't.
Comment #7
jhodgdonIs it possible that in the test, instead of it being an actual tag, it is something like
that is getting into the source? In other words, some kind of double-escaping that is an artifact of how the information is saved in the comment in the test?
Comment #8
jhodgdonI really think this is a non-issue. If the test doesn't match what happens in an actual site, then there is a problem with the test, not a Drupal bug or missing test coverage. Until proven otherwise, I'm closing this issue... See #7 for the probable problem with the test.