Opened 11 years ago
Closed 11 years ago
#9847 closed defect (fixed)
Whitespace around attribute names and data values can affect HtmlStore
Reported by: | Jared Jurkiewicz | Owned by: | Jared Jurkiewicz |
---|---|---|---|
Priority: | high | Milestone: | 1.4 |
Component: | DojoX Data | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Whitespace around attribute names and data values can affect HtmlStore?
This is because it uses all the text content under the target nodes (whether it is a <th>, <td>. or <li>. So reformatting a table can potentially break usage of it.
The fix is to add an option to allow users to tell the store to trim off whitespace around the values of those fields so that only non-whitespace characters are left. The default should be false for backwards compat.
This was found with the new demo viewer because it reformats user supplied HTML and the reformatting broke it.
Attachments (1)
Note: See
TracTickets for help on using
tickets.
Adding new option (trimWhitespace) to the store to allow for triming off surrounding whitespace under targetted item nodes.