Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure fragment caching is only happening on nodes in the main doc…
…ument. Fixes #5978.
- Loading branch information
Showing
1 changed file
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4f2e209
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yay for more descriptive comments, nom nom I eat that stuff up.
4f2e209
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@john : erm, if it is a string, maybe you want to trim the args[0] before checking is it shorter than 512 ?
4f2e209
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DBJDBJ: We can't really reasonably trim the string since the whitespace is frequently important. It's better to just leave it as is.
4f2e209
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@john : I believe you ;o) ... and I do not have the full picture I guess ... but how can be preceeding and trailing white space important ... when building a frament ?
4f2e209
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example: .append(" test") is different from .append("test") (hope the spacing comes through in the comments). If we trimmed the whitespace they would be considered to be equal - even though they definitely aren't.