dojox.html._snartStyles(..) function does not properly parse attributes
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.
Change History (4)
Component: |
General →
Dojox
|
Owner: |
set to Mike Wilcox
|
Resolution: |
→ invalid
|
Status: |
new →
closed
|
I looked, but can't find snarf anywhere. *snarf*.