Opened 10 years ago

Closed 10 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)

Whitespace.patch (11.5 KB) - added by Jared Jurkiewicz 10 years ago.
Adding new option (trimWhitespace) to the store to allow for triming off surrounding whitespace under targetted item nodes.

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by Jared Jurkiewicz

Attachment: Whitespace.patch added

Adding new option (trimWhitespace) to the store to allow for triming off surrounding whitespace under targetted item nodes.

comment:1 Changed 10 years ago by Jared Jurkiewicz

Resolution: fixed
Status: newclosed

Fixed in [20043].

Note: See TracTickets for help on using tickets.