Opened 11 years ago

Closed 11 years ago

#13243 closed defect (invalid)

dojox.html._snartStyles(..) function does not properly parse attributes

Reported by: tbeauvais Owned by: Mike Wilcox
Priority: high Milestone: tbd
Component: Dojox Version: 1.6.0
Keywords: Cc:
Blocked By: Blocking:


We ran into a problem initially when using the dojox.layout.ContentPane? where the "type" in a <link> element was not being processed correctly. We tracked the root cause down to the dojox.html._snartStyles(..) function. This function seems to run into trouble under certain situation when a <link> tag contains attributes after the "href". We put together a simple test page(attached) that shows the issue where in this case the _snartStyles(..) function thinks the value for the "type" attribute is "text/css'id".

Similarly we ran into a issue with this same _snartStyles(..) function if the <link> contains an attribute where the value contains a space. For example data-test="some value". In this case you end up with an exception. I have attached a sample showing that as well.

Attachments (2)

dojox_snarf_styles.html (1.6 KB) - added by tbeauvais 11 years ago.
dojox_snarf_styles2.html (1.7 KB) - added by tbeauvais 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by tbeauvais

Attachment: dojox_snarf_styles.html added

Changed 11 years ago by tbeauvais

Attachment: dojox_snarf_styles2.html added

comment:1 Changed 11 years ago by bill

Component: GeneralDojox
Owner: set to Mike Wilcox

comment:2 Changed 11 years ago by Mike Wilcox

Resolution: invalid
Status: newclosed

I looked, but can't find snarf anywhere. *snarf*.

Note: See TracTickets for help on using tickets.