Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#8151 closed defect (fixed) - creating dynamic stylesheets causes bogus server request in IE

Reported by: Sam Foster Owned by: Mike Wilcox
Priority: high Milestone: 1.3
Component: Dojox Version: 1.2.1
Keywords: Cc: [email protected]
Blocked By: Blocking:


In IE, when you load the test page and create a dynamic stylesheet, a LINK node is injected into the HEAD, and given a href attribute whose value is the title given. This results in a server request being made to {currentPage}/{styleSheetTitle}.

There should either be no href attribute value, or it should be given value that doesnt cause a server request to be made.

Change History (5)

comment:1 Changed 14 years ago by Sam Foster

Cc: Mike Wilcox added

The relevant MSDN page: createStyleSheet Method. The limit off 31 stylesheets is scary/silly - I dont know the history to this module, is that a known limitation, something already worked around?

comment:2 Changed 14 years ago by Sam Foster

Cc: [email protected] added

comment:3 Changed 14 years ago by Adam Peller

Cc: Mike Wilcox removed
Owner: changed from Adam Peller to Mike Wilcox

@sfoster: I'm confused. The 31 limit isn't related to this ticket, is it? Yes, that limit was a huge problem back in the 0.4 days when this code was part of core Dojo. It was worked around by making a 31-ary tree of @import statements.

comment:4 Changed 14 years ago by Mike Wilcox

Resolution: fixed
Status: newclosed

Fixes #8151 - I was inserting the title through the method which is incorrect - that is where the link goes. Removing that makes everything work correctly, with one strange side effect that the styles don't show up in IE Developer Toolbar.

Committed revision 15907.

comment:5 Changed 13 years ago by Adam Peller

Milestone: tbd1.3

batch move of tickets marked 'tbd' fixed in the 1.3 timeframe

Note: See TracTickets for help on using tickets.